Communi  3.4.0
A cross-platform IRC framework written with Qt
Namespaces | Enumerations | Functions
irc.h File Reference

#include <Irc> More...

Go to the source code of this file.

Namespaces

 Irc
 Miscellaneous identifiers used throughout the library.
 

Enumerations

enum  Irc::Code {
  Irc::RPL_WELCOME = 1, Irc::RPL_YOURHOST = 2, Irc::RPL_CREATED = 3, Irc::RPL_MYINFO = 4,
  Irc::RPL_ISUPPORT = 5, Irc::RPL_SNOMASK = 8, Irc::RPL_STATMEMTOT = 9, Irc::RPL_BOUNCE = 10,
  Irc::RPL_STATMEM = 10, Irc::RPL_YOURCOOKIE = 14, Irc::RPL_YOURID = 42, Irc::RPL_SAVENICK = 43,
  Irc::RPL_ATTEMPTINGJUNC = 50, Irc::RPL_ATTEMPTINGREROUTE = 51, Irc::RPL_TRACELINK = 200, Irc::RPL_TRACECONNECTING = 201,
  Irc::RPL_TRACEHANDSHAKE = 202, Irc::RPL_TRACEUNKNOWN = 203, Irc::RPL_TRACEOPERATOR = 204, Irc::RPL_TRACEUSER = 205,
  Irc::RPL_TRACESERVER = 206, Irc::RPL_TRACESERVICE = 207, Irc::RPL_TRACENEWTYPE = 208, Irc::RPL_TRACECLASS = 209,
  Irc::RPL_TRACERECONNECT = 210, Irc::RPL_STATS = 210, Irc::RPL_STATSLINKINFO = 211, Irc::RPL_STATSCOMMANDS = 212,
  Irc::RPL_STATSCLINE = 213, Irc::RPL_STATSNLINE = 214, Irc::RPL_STATSILINE = 215, Irc::RPL_STATSKLINE = 216,
  Irc::RPL_STATSQLINE = 217, Irc::RPL_STATSYLINE = 218, Irc::RPL_ENDOFSTATS = 219, Irc::RPL_UMODEIS = 221,
  Irc::RPL_MODLIST = 222, Irc::RPL_SQLINE_NICK = 222, Irc::RPL_STATSZLINE = 225, Irc::RPL_STATSCOUNT = 226,
  Irc::RPL_SERVICEINFO = 231, Irc::RPL_ENDOFSERVICES = 232, Irc::RPL_SERVICE = 233, Irc::RPL_SERVLIST = 234,
  Irc::RPL_SERVLISTEND = 235, Irc::RPL_STATSVERBOSE = 236, Irc::RPL_STATSENGINE = 237, Irc::RPL_STATSIAUTH = 239,
  Irc::RPL_STATSVLINE = 240, Irc::RPL_STATSLLINE = 241, Irc::RPL_STATSUPTIME = 242, Irc::RPL_STATSOLINE = 243,
  Irc::RPL_STATSHLINE = 244, Irc::RPL_STATSSLINE = 245, Irc::RPL_STATSPING = 246, Irc::RPL_STATSBLINE = 247,
  Irc::RPL_STATSDEFINE = 248, Irc::RPL_STATSDEBUG = 249, Irc::RPL_STATSDLINE = 250, Irc::RPL_STATSCONN = 250,
  Irc::RPL_LUSERCLIENT = 251, Irc::RPL_LUSEROP = 252, Irc::RPL_LUSERUNKNOWN = 253, Irc::RPL_LUSERCHANNELS = 254,
  Irc::RPL_LUSERME = 255, Irc::RPL_ADMINME = 256, Irc::RPL_ADMINLOC1 = 257, Irc::RPL_ADMINLOC2 = 258,
  Irc::RPL_ADMINEMAIL = 259, Irc::RPL_TRACELOG = 261, Irc::RPL_TRACEPING = 262, Irc::RPL_TRACEEND = 262,
  Irc::RPL_TRYAGAIN = 263, Irc::RPL_LOCALUSERS = 265, Irc::RPL_GLOBALUSERS = 266, Irc::RPL_START_NETSTAT = 267,
  Irc::RPL_NETSTAT = 268, Irc::RPL_END_NETSTAT = 269, Irc::RPL_PRIVS = 270, Irc::RPL_SILELIST = 271,
  Irc::RPL_ENDOFSILELIST = 272, Irc::RPL_NOTIFY = 273, Irc::RPL_ENDNOTIFY = 274, Irc::RPL_STATSDELTA = 274,
  Irc::RPL_VCHANEXIST = 276, Irc::RPL_VCHANLIST = 277, Irc::RPL_VCHANHELP = 278, Irc::RPL_GLIST = 280,
  Irc::RPL_ENDOFGLIST = 281, Irc::RPL_ACCEPTLIST = 281, Irc::RPL_ENDOFACCEPT = 282, Irc::RPL_JUPELIST = 282,
  Irc::RPL_ENDOFJUPELIST = 283, Irc::RPL_FEATURE = 284, Irc::RPL_GLIST_HASH = 285, Irc::RPL_CHANINFO_HANDLE = 285,
  Irc::RPL_NEWHOSTIS = 285, Irc::RPL_CHANINFO_USERS = 286, Irc::RPL_CHKHEAD = 286, Irc::RPL_CHANINFO_CHOPS = 287,
  Irc::RPL_CHANUSER = 287, Irc::RPL_CHANINFO_VOICES = 288, Irc::RPL_PATCHHEAD = 288, Irc::RPL_CHANINFO_AWAY = 289,
  Irc::RPL_PATCHCON = 289, Irc::RPL_CHANINFO_OPERS = 290, Irc::RPL_HELPHDR = 290, Irc::RPL_DATASTR = 290,
  Irc::RPL_CHANINFO_BANNED = 291, Irc::RPL_HELPOP = 291, Irc::RPL_ENDOFCHECK = 291, Irc::RPL_CHANINFO_BANS = 292,
  Irc::RPL_HELPTLR = 292, Irc::RPL_CHANINFO_INVITE = 293, Irc::RPL_HELPHLP = 293, Irc::RPL_CHANINFO_INVITES = 294,
  Irc::RPL_HELPFWD = 294, Irc::RPL_CHANINFO_KICK = 295, Irc::RPL_HELPIGN = 295, Irc::RPL_CHANINFO_KICKS = 296,
  Irc::RPL_END_CHANINFO = 299, Irc::RPL_NONE = 300, Irc::RPL_AWAY = 301, Irc::RPL_USERHOST = 302,
  Irc::RPL_ISON = 303, Irc::RPL_TEXT = 304, Irc::RPL_UNAWAY = 305, Irc::RPL_NOWAWAY = 306,
  Irc::RPL_WHOISREGNICK = 307, Irc::RPL_SUSERHOST = 307, Irc::RPL_NOTIFYACTION = 308, Irc::RPL_WHOISADMIN = 308,
  Irc::RPL_NICKTRACE = 309, Irc::RPL_WHOISSADMIN = 309, Irc::RPL_WHOISHELPER = 309, Irc::RPL_WHOISSVCMSG = 310,
  Irc::RPL_WHOISHELPOP = 310, Irc::RPL_WHOISSERVICE = 310, Irc::RPL_WHOISUSER = 311, Irc::RPL_WHOISSERVER = 312,
  Irc::RPL_WHOISOPERATOR = 313, Irc::RPL_WHOWASUSER = 314, Irc::RPL_ENDOFWHO = 315, Irc::RPL_WHOISCHANOP = 316,
  Irc::RPL_WHOISIDLE = 317, Irc::RPL_ENDOFWHOIS = 318, Irc::RPL_WHOISCHANNELS = 319, Irc::RPL_WHOISVIRT = 320,
  Irc::RPL_WHOIS_HIDDEN = 320, Irc::RPL_WHOISSPECIAL = 320, Irc::RPL_LISTSTART = 321, Irc::RPL_LIST = 322,
  Irc::RPL_LISTEND = 323, Irc::RPL_CHANNELMODEIS = 324, Irc::RPL_UNIQOPIS = 325, Irc::RPL_CHANNELPASSIS = 325,
  Irc::RPL_NOCHANPASS = 326, Irc::RPL_CHPASSUNKNOWN = 327, Irc::RPL_CHANNEL_URL = 328, Irc::RPL_CREATIONTIME = 329,
  Irc::RPL_WHOWAS_TIME = 330, Irc::RPL_WHOISACCOUNT = 330, Irc::RPL_NOTOPIC = 331, Irc::RPL_TOPIC = 332,
  Irc::RPL_TOPICWHOTIME = 333, Irc::RPL_LISTUSAGE = 334, Irc::RPL_COMMANDSYNTAX = 334, Irc::RPL_LISTSYNTAX = 334,
  Irc::RPL_CHANPASSOK = 338, Irc::RPL_WHOISACTUALLY = 338, Irc::RPL_BADCHANPASS = 339, Irc::RPL_INVITING = 341,
  Irc::RPL_SUMMONING = 342, Irc::RPL_INVITED = 345, Irc::RPL_INVITELIST = 346, Irc::RPL_ENDOFINVITELIST = 347,
  Irc::RPL_EXCEPTLIST = 348, Irc::RPL_ENDOFEXCEPTLIST = 349, Irc::RPL_VERSION = 351, Irc::RPL_WHOREPLY = 352,
  Irc::RPL_NAMREPLY = 353, Irc::RPL_WHOSPCRPL = 354, Irc::RPL_NAMREPLY_ = 355, Irc::RPL_KILLDONE = 361,
  Irc::RPL_CLOSING = 362, Irc::RPL_CLOSEEND = 363, Irc::RPL_LINKS = 364, Irc::RPL_ENDOFLINKS = 365,
  Irc::RPL_ENDOFNAMES = 366, Irc::RPL_BANLIST = 367, Irc::RPL_ENDOFBANLIST = 368, Irc::RPL_ENDOFWHOWAS = 369,
  Irc::RPL_INFO = 371, Irc::RPL_MOTD = 372, Irc::RPL_INFOSTART = 373, Irc::RPL_ENDOFINFO = 374,
  Irc::RPL_MOTDSTART = 375, Irc::RPL_ENDOFMOTD = 376, Irc::RPL_KICKEXPIRED = 377, Irc::RPL_SPAM = 377,
  Irc::RPL_BANEXPIRED = 378, Irc::RPL_WHOISHOST = 378, Irc::RPL_KICKLINKED = 379, Irc::RPL_WHOISMODES = 379,
  Irc::RPL_BANLINKED = 380, Irc::RPL_YOURHELPER = 380, Irc::RPL_YOUREOPER = 381, Irc::RPL_REHASHING = 382,
  Irc::RPL_YOURESERVICE = 383, Irc::RPL_MYPORTIS = 384, Irc::RPL_NOTOPERANYMORE = 385, Irc::RPL_QLIST = 386,
  Irc::RPL_IRCOPS = 386, Irc::RPL_ENDOFQLIST = 387, Irc::RPL_ENDOFIRCOPS = 387, Irc::RPL_ALIST = 388,
  Irc::RPL_ENDOFALIST = 389, Irc::RPL_TIME = 391, Irc::RPL_USERSSTART = 392, Irc::RPL_USERS = 393,
  Irc::RPL_ENDOFUSERS = 394, Irc::RPL_NOUSERS = 395, Irc::RPL_HOSTHIDDEN = 396, Irc::ERR_UNKNOWNERROR = 400,
  Irc::ERR_NOSUCHNICK = 401, Irc::ERR_NOSUCHSERVER = 402, Irc::ERR_NOSUCHCHANNEL = 403, Irc::ERR_CANNOTSENDTOCHAN = 404,
  Irc::ERR_TOOMANYCHANNELS = 405, Irc::ERR_WASNOSUCHNICK = 406, Irc::ERR_TOOMANYTARGETS = 407, Irc::ERR_NOSUCHSERVICE = 408,
  Irc::ERR_NOCOLORSONCHAN = 408, Irc::ERR_NOORIGIN = 409, Irc::ERR_NORECIPIENT = 411, Irc::ERR_NOTEXTTOSEND = 412,
  Irc::ERR_NOTOPLEVEL = 413, Irc::ERR_WILDTOPLEVEL = 414, Irc::ERR_BADMASK = 415, Irc::ERR_TOOMANYMATCHES = 416,
  Irc::ERR_QUERYTOOLONG = 416, Irc::ERR_LENGTHTRUNCATED = 419, Irc::ERR_UNKNOWNCOMMAND = 421, Irc::ERR_NOMOTD = 422,
  Irc::ERR_NOADMININFO = 423, Irc::ERR_FILEERROR = 424, Irc::ERR_NOOPERMOTD = 425, Irc::ERR_TOOMANYAWAY = 429,
  Irc::ERR_EVENTNICKCHANGE = 430, Irc::ERR_NONICKNAMEGIVEN = 431, Irc::ERR_ERRONEUSNICKNAME = 432, Irc::ERR_NICKNAMEINUSE = 433,
  Irc::ERR_SERVICENAMEINUSE = 434, Irc::ERR_NORULES = 434, Irc::ERR_SERVICECONFUSED = 435, Irc::ERR_BANONCHAN = 435,
  Irc::ERR_NICKCOLLISION = 436, Irc::ERR_UNAVAILRESOURCE = 437, Irc::ERR_BANNICKCHANGE = 437, Irc::ERR_NICKTOOFAST = 438,
  Irc::ERR_DEAD = 438, Irc::ERR_TARGETTOOFAST = 439, Irc::ERR_SERVICESDOWN = 440, Irc::ERR_USERNOTINCHANNEL = 441,
  Irc::ERR_NOTONCHANNEL = 442, Irc::ERR_USERONCHANNEL = 443, Irc::ERR_NOLOGIN = 444, Irc::ERR_SUMMONDISABLED = 445,
  Irc::ERR_USERSDISABLED = 446, Irc::ERR_NONICKCHANGE = 447, Irc::ERR_NOTIMPLEMENTED = 449, Irc::ERR_NOTREGISTERED = 451,
  Irc::ERR_IDCOLLISION = 452, Irc::ERR_NICKLOST = 453, Irc::ERR_HOSTILENAME = 455, Irc::ERR_ACCEPTFULL = 456,
  Irc::ERR_ACCEPTEXIST = 457, Irc::ERR_ACCEPTNOT = 458, Irc::ERR_NOHIDING = 459, Irc::ERR_NOTFORHALFOPS = 460,
  Irc::ERR_NEEDMOREPARAMS = 461, Irc::ERR_ALREADYREGISTERED = 462, Irc::ERR_NOPERMFORHOST = 463, Irc::ERR_PASSWDMISMATCH = 464,
  Irc::ERR_YOUREBANNEDCREEP = 465, Irc::ERR_YOUWILLBEBANNED = 466, Irc::ERR_KEYSET = 467, Irc::ERR_INVALIDUSERNAME = 468,
  Irc::ERR_ONLYSERVERSCANCHANGE = 468, Irc::ERR_LINKSET = 469, Irc::ERR_LINKCHANNEL = 470, Irc::ERR_KICKEDFROMCHAN = 470,
  Irc::ERR_CHANNELISFULL = 471, Irc::ERR_UNKNOWNMODE = 472, Irc::ERR_INVITEONLYCHAN = 473, Irc::ERR_BANNEDFROMCHAN = 474,
  Irc::ERR_BADCHANNELKEY = 475, Irc::ERR_BADCHANMASK = 476, Irc::ERR_NOCHANMODES = 477, Irc::ERR_NEEDREGGEDNICK = 477,
  Irc::ERR_BANLISTFULL = 478, Irc::ERR_BADCHANNAME = 479, Irc::ERR_LINKFAIL = 479, Irc::ERR_NOULINE = 480,
  Irc::ERR_CANNOTKNOCK = 480, Irc::ERR_NOPRIVILEGES = 481, Irc::ERR_CHANOPRIVSNEEDED = 482, Irc::ERR_CANTKILLSERVER = 483,
  Irc::ERR_RESTRICTED = 484, Irc::ERR_ISCHANSERVICE = 484, Irc::ERR_DESYNC = 484, Irc::ERR_ATTACKDENY = 484,
  Irc::ERR_UNIQOPRIVSNEEDED = 485, Irc::ERR_KILLDENY = 485, Irc::ERR_CANTKICKADMIN = 485, Irc::ERR_ISREALSERVICE = 485,
  Irc::ERR_NONONREG = 486, Irc::ERR_HTMDISABLED = 486, Irc::ERR_ACCOUNTONLY = 486, Irc::ERR_CHANTOORECENT = 487,
  Irc::ERR_MSGSERVICES = 487, Irc::ERR_TSLESSCHAN = 488, Irc::ERR_VOICENEEDED = 489, Irc::ERR_SECUREONLYCHAN = 489,
  Irc::ERR_NOOPERHOST = 491, Irc::ERR_NOSERVICEHOST = 492, Irc::ERR_NOFEATURE = 493, Irc::ERR_BADFEATURE = 494,
  Irc::ERR_BADLOGTYPE = 495, Irc::ERR_BADLOGSYS = 496, Irc::ERR_BADLOGVALUE = 497, Irc::ERR_ISOPERLCHAN = 498,
  Irc::ERR_CHANOWNPRIVNEEDED = 499, Irc::ERR_UMODEUNKNOWNFLAG = 501, Irc::ERR_USERSDONTMATCH = 502, Irc::ERR_GHOSTEDCLIENT = 503,
  Irc::ERR_VWORLDWARN = 503, Irc::ERR_USERNOTONSERV = 504, Irc::ERR_SILELISTFULL = 511, Irc::ERR_TOOMANYWATCH = 512,
  Irc::ERR_BADPING = 513, Irc::ERR_INVALID_ERROR = 514, Irc::ERR_TOOMANYDCC = 514, Irc::ERR_BADEXPIRE = 515,
  Irc::ERR_DONTCHEAT = 516, Irc::ERR_DISABLED = 517, Irc::ERR_NOINVITE = 518, Irc::ERR_LONGMASK = 518,
  Irc::ERR_ADMONLY = 519, Irc::ERR_TOOMANYUSERS = 519, Irc::ERR_OPERONLY = 520, Irc::ERR_MASKTOOWIDE = 520,
  Irc::ERR_WHOTRUNC = 520, Irc::ERR_LISTSYNTAX = 521, Irc::ERR_WHOSYNTAX = 522, Irc::ERR_WHOLIMEXCEED = 523,
  Irc::ERR_QUARANTINED = 524, Irc::ERR_OPERSPVERIFY = 524, Irc::ERR_REMOTEPFX = 525, Irc::ERR_PFXUNROUTABLE = 526,
  Irc::ERR_BADHOSTMASK = 550, Irc::ERR_HOSTUNAVAIL = 551, Irc::ERR_USINGSLINE = 552, Irc::ERR_STATSSLINE = 553,
  Irc::RPL_LOGON = 600, Irc::RPL_LOGOFF = 601, Irc::RPL_WATCHOFF = 602, Irc::RPL_WATCHSTAT = 603,
  Irc::RPL_NOWON = 604, Irc::RPL_NOWOFF = 605, Irc::RPL_WATCHLIST = 606, Irc::RPL_ENDOFWATCHLIST = 607,
  Irc::RPL_WATCHCLEAR = 608, Irc::RPL_ISOPER = 610, Irc::RPL_ISLOCOP = 611, Irc::RPL_ISNOTOPER = 612,
  Irc::RPL_ENDOFISOPER = 613, Irc::RPL_DCCSTATUS = 617, Irc::RPL_DCCLIST = 618, Irc::RPL_ENDOFDCCLIST = 619,
  Irc::RPL_WHOWASHOST = 619, Irc::RPL_DCCINFO = 620, Irc::RPL_ENDOFO = 626, Irc::RPL_SETTINGS = 630,
  Irc::RPL_ENDOFSETTINGS = 631, Irc::RPL_DUMPING = 640, Irc::RPL_DUMPRPL = 641, Irc::RPL_EODUMP = 642,
  Irc::RPL_TRACEROUTE_HOP = 660, Irc::RPL_TRACEROUTE_START = 661, Irc::RPL_MODECHANGEWARN = 662, Irc::RPL_CHANREDIR = 663,
  Irc::RPL_SERVMODEIS = 664, Irc::RPL_OTHERUMODEIS = 665, Irc::RPL_ENDOF_GENERIC = 666, Irc::RPL_WHOWASDETAILS = 670,
  Irc::RPL_WHOISSECURE = 671, Irc::RPL_UNKNOWNMODES = 672, Irc::RPL_CANNOTSETMODES = 673, Irc::RPL_LUSERSTAFF = 678,
  Irc::RPL_TIMEONSERVERIS = 679, Irc::RPL_NETWORKS = 682, Irc::RPL_YOURLANGUAGEIS = 687, Irc::RPL_LANGUAGE = 688,
  Irc::RPL_WHOISSTAFF = 689, Irc::RPL_WHOISLANGUAGE = 690, Irc::RPL_HELPSTART = 704, Irc::RPL_HELPTXT = 705,
  Irc::RPL_ENDOFHELP = 706, Irc::RPL_ETRACEFULL = 708, Irc::RPL_ETRACE = 709, Irc::RPL_KNOCK = 710,
  Irc::RPL_KNOCKDLVR = 711, Irc::ERR_TOOMANYKNOCK = 712, Irc::ERR_CHANOPEN = 713, Irc::ERR_KNOCKONCHAN = 714,
  Irc::ERR_KNOCKDISABLED = 715, Irc::RPL_TARGUMODEG = 716, Irc::RPL_TARGNOTIFY = 717, Irc::RPL_UMODEGMSG = 718,
  Irc::RPL_ENDOFOMOTD = 722, Irc::ERR_NOPRIVS = 723, Irc::RPL_TESTMARK = 724, Irc::RPL_TESTLINE = 725,
  Irc::RPL_NOTESTLINE = 726, Irc::RPL_MONONLINE = 730, Irc::RPL_MONOFFLINE = 731, Irc::RPL_MONLIST = 732,
  Irc::RPL_ENDOFMONLIST = 733 , Irc::RPL_XINFO = 771, Irc::RPL_XINFOSTART = 773, Irc::RPL_XINFOEND = 774,
  Irc::ERR_CANNOTDOCOMMAND = 972, Irc::ERR_CANNOTCHANGEUMODE = 973, Irc::ERR_CANNOTCHANGECHANMODE = 974, Irc::ERR_CANNOTCHANGESERVERMODE = 975,
  Irc::ERR_CANNOTSENDTONICK = 976, Irc::ERR_UNKNOWNSERVERMODE = 977, Irc::ERR_SERVERMODELOCK = 979, Irc::ERR_BADCHARENCODING = 980,
  Irc::ERR_TOOMANYLANGUAGES = 981, Irc::ERR_NOLANGUAGE = 982, Irc::ERR_TEXTTOOSHORT = 983, Irc::ERR_NUMERIC_ERR = 999
}
 
enum  Irc::Color {
  Irc::White = 0, Irc::Black = 1, Irc::Blue = 2, Irc::Green = 3,
  Irc::Red = 4, Irc::Brown = 5, Irc::Purple = 6, Irc::Orange = 7,
  Irc::Yellow = 8, Irc::LightGreen = 9, Irc::Cyan = 10, Irc::LightCyan = 11,
  Irc::LightBlue = 12, Irc::Pink = 13, Irc::Gray = 14, Irc::LightGray = 15
}
 
enum  Irc::DataRole {
  Irc::UserRole = Qt::UserRole, Irc::BufferRole, Irc::ChannelRole, Irc::NameRole,
  Irc::PrefixRole, Irc::ModeRole, Irc::TitleRole
}
 
enum  Irc::SortMethod { Irc::SortByHand, Irc::SortByName, Irc::SortByTitle, Irc::SortByActivity }
 

Functions

Q_INVOKABLE QString Irc::codeToString (int code)
 
Q_INVOKABLE QString Irc::hostFromPrefix (const QString &prefix)
 
Q_INVOKABLE QString Irc::identFromPrefix (const QString &prefix)
 
Q_INVOKABLE QString Irc::nickFromPrefix (const QString &prefix)
 
Q_INVOKABLE void Irc::registerMetaTypes ()
 
Q_INVOKABLE QString Irc::version ()