33 #include <QtCore/qobject.h> 34 #include <QtCore/qstring.h> 35 #include <QtCore/qmetatype.h> 42 Q_PROPERTY(
bool secureSupported READ isSecureSupported CONSTANT)
43 Q_PROPERTY(
QStringList supportedSaslMechanisms READ supportedSaslMechanisms CONSTANT)
44 Q_PROPERTY(
QStringList supportedCapabilities READ supportedCapabilities CONSTANT)
48 Q_INVOKABLE static
QString version();
49 Q_INVOKABLE static
QString codeToString(
int code);
55 static
bool isSecureSupported();
79 UserRole = Qt::UserRole,
108 RPL_ATTEMPTINGJUNC = 50,
109 RPL_ATTEMPTINGREROUTE = 51,
111 RPL_TRACECONNECTING = 201,
112 RPL_TRACEHANDSHAKE = 202,
113 RPL_TRACEUNKNOWN = 203,
114 RPL_TRACEOPERATOR = 204,
116 RPL_TRACESERVER = 206,
117 RPL_TRACESERVICE = 207,
118 RPL_TRACENEWTYPE = 208,
119 RPL_TRACECLASS = 209,
120 RPL_TRACERECONNECT = 210,
122 RPL_STATSLINKINFO = 211,
123 RPL_STATSCOMMANDS = 212,
124 RPL_STATSCLINE = 213,
125 RPL_STATSNLINE = 214,
126 RPL_STATSILINE = 215,
127 RPL_STATSKLINE = 216,
128 RPL_STATSQLINE = 217,
129 RPL_STATSYLINE = 218,
130 RPL_ENDOFSTATS = 219,
133 RPL_SQLINE_NICK = 222,
134 RPL_STATSZLINE = 225,
135 RPL_STATSCOUNT = 226,
136 RPL_SERVICEINFO = 231,
137 RPL_ENDOFSERVICES = 232,
140 RPL_SERVLISTEND = 235,
141 RPL_STATSVERBOSE = 236,
142 RPL_STATSENGINE = 237,
143 RPL_STATSIAUTH = 239,
144 RPL_STATSVLINE = 240,
145 RPL_STATSLLINE = 241,
146 RPL_STATSUPTIME = 242,
147 RPL_STATSOLINE = 243,
148 RPL_STATSHLINE = 244,
149 RPL_STATSSLINE = 245,
151 RPL_STATSBLINE = 247,
152 RPL_STATSDEFINE = 248,
153 RPL_STATSDEBUG = 249,
154 RPL_STATSDLINE = 250,
156 RPL_LUSERCLIENT = 251,
158 RPL_LUSERUNKNOWN = 253,
159 RPL_LUSERCHANNELS = 254,
164 RPL_ADMINEMAIL = 259,
169 RPL_LOCALUSERS = 265,
170 RPL_GLOBALUSERS = 266,
171 RPL_START_NETSTAT = 267,
173 RPL_END_NETSTAT = 269,
176 RPL_ENDOFSILELIST = 272,
179 RPL_STATSDELTA = 274,
180 RPL_VCHANEXIST = 276,
184 RPL_ENDOFGLIST = 281,
185 RPL_ACCEPTLIST = 281,
186 RPL_ENDOFACCEPT = 282,
188 RPL_ENDOFJUPELIST = 283,
190 RPL_GLIST_HASH = 285,
191 RPL_CHANINFO_HANDLE = 285,
193 RPL_CHANINFO_USERS = 286,
195 RPL_CHANINFO_CHOPS = 287,
197 RPL_CHANINFO_VOICES = 288,
199 RPL_CHANINFO_AWAY = 289,
201 RPL_CHANINFO_OPERS = 290,
204 RPL_CHANINFO_BANNED = 291,
206 RPL_ENDOFCHECK = 291,
207 RPL_CHANINFO_BANS = 292,
209 RPL_CHANINFO_INVITE = 293,
211 RPL_CHANINFO_INVITES = 294,
213 RPL_CHANINFO_KICK = 295,
215 RPL_CHANINFO_KICKS = 296,
216 RPL_END_CHANINFO = 299,
224 RPL_WHOISREGNICK = 307,
226 RPL_NOTIFYACTION = 308,
227 RPL_WHOISADMIN = 308,
229 RPL_WHOISSADMIN = 309,
230 RPL_WHOISHELPER = 309,
231 RPL_WHOISSVCMSG = 310,
232 RPL_WHOISHELPOP = 310,
233 RPL_WHOISSERVICE = 310,
235 RPL_WHOISSERVER = 312,
236 RPL_WHOISOPERATOR = 313,
237 RPL_WHOWASUSER = 314,
239 RPL_WHOISCHANOP = 316,
241 RPL_ENDOFWHOIS = 318,
242 RPL_WHOISCHANNELS = 319,
244 RPL_WHOIS_HIDDEN = 320,
245 RPL_WHOISSPECIAL = 320,
249 RPL_CHANNELMODEIS = 324,
251 RPL_CHANNELPASSIS = 325,
252 RPL_NOCHANPASS = 326,
253 RPL_CHPASSUNKNOWN = 327,
254 RPL_CHANNEL_URL = 328,
255 RPL_CREATIONTIME = 329,
256 RPL_WHOWAS_TIME = 330,
257 RPL_WHOISACCOUNT = 330,
260 RPL_TOPICWHOTIME = 333,
262 RPL_COMMANDSYNTAX = 334,
263 RPL_LISTSYNTAX = 334,
264 RPL_CHANPASSOK = 338,
265 RPL_WHOISACTUALLY = 338,
266 RPL_BADCHANPASS = 339,
270 RPL_INVITELIST = 346,
271 RPL_ENDOFINVITELIST = 347,
272 RPL_EXCEPTLIST = 348,
273 RPL_ENDOFEXCEPTLIST = 349,
283 RPL_ENDOFLINKS = 365,
284 RPL_ENDOFNAMES = 366,
286 RPL_ENDOFBANLIST = 368,
287 RPL_ENDOFWHOWAS = 369,
294 RPL_KICKEXPIRED = 377,
296 RPL_BANEXPIRED = 378,
298 RPL_KICKLINKED = 379,
299 RPL_WHOISMODES = 379,
301 RPL_YOURHELPER = 380,
304 RPL_YOURESERVICE = 383,
306 RPL_NOTOPERANYMORE = 385,
309 RPL_ENDOFQLIST = 387,
310 RPL_ENDOFIRCOPS = 387,
312 RPL_ENDOFALIST = 389,
314 RPL_USERSSTART = 392,
316 RPL_ENDOFUSERS = 394,
318 RPL_HOSTHIDDEN = 396,
319 ERR_UNKNOWNERROR = 400,
320 ERR_NOSUCHNICK = 401,
321 ERR_NOSUCHSERVER = 402,
322 ERR_NOSUCHCHANNEL = 403,
323 ERR_CANNOTSENDTOCHAN = 404,
324 ERR_TOOMANYCHANNELS = 405,
325 ERR_WASNOSUCHNICK = 406,
326 ERR_TOOMANYTARGETS = 407,
327 ERR_NOSUCHSERVICE = 408,
328 ERR_NOCOLORSONCHAN = 408,
330 ERR_NORECIPIENT = 411,
331 ERR_NOTEXTTOSEND = 412,
332 ERR_NOTOPLEVEL = 413,
333 ERR_WILDTOPLEVEL = 414,
335 ERR_TOOMANYMATCHES = 416,
336 ERR_QUERYTOOLONG = 416,
337 ERR_LENGTHTRUNCATED = 419,
338 ERR_UNKNOWNCOMMAND = 421,
340 ERR_NOADMININFO = 423,
342 ERR_NOOPERMOTD = 425,
343 ERR_TOOMANYAWAY = 429,
344 ERR_EVENTNICKCHANGE = 430,
345 ERR_NONICKNAMEGIVEN = 431,
346 ERR_ERRONEUSNICKNAME = 432,
347 ERR_NICKNAMEINUSE = 433,
348 ERR_SERVICENAMEINUSE = 434,
350 ERR_SERVICECONFUSED = 435,
352 ERR_NICKCOLLISION = 436,
353 ERR_UNAVAILRESOURCE = 437,
354 ERR_BANNICKCHANGE = 437,
355 ERR_NICKTOOFAST = 438,
357 ERR_TARGETTOOFAST = 439,
358 ERR_SERVICESDOWN = 440,
359 ERR_USERNOTINCHANNEL = 441,
360 ERR_NOTONCHANNEL = 442,
361 ERR_USERONCHANNEL = 443,
363 ERR_SUMMONDISABLED = 445,
364 ERR_USERSDISABLED = 446,
365 ERR_NONICKCHANGE = 447,
366 ERR_NOTIMPLEMENTED = 449,
367 ERR_NOTREGISTERED = 451,
368 ERR_IDCOLLISION = 452,
370 ERR_HOSTILENAME = 455,
371 ERR_ACCEPTFULL = 456,
372 ERR_ACCEPTEXIST = 457,
375 ERR_NOTFORHALFOPS = 460,
376 ERR_NEEDMOREPARAMS = 461,
377 ERR_ALREADYREGISTERED = 462,
378 ERR_NOPERMFORHOST = 463,
379 ERR_PASSWDMISMATCH = 464,
380 ERR_YOUREBANNEDCREEP = 465,
381 ERR_YOUWILLBEBANNED = 466,
383 ERR_INVALIDUSERNAME = 468,
384 ERR_ONLYSERVERSCANCHANGE = 468,
386 ERR_LINKCHANNEL = 470,
387 ERR_KICKEDFROMCHAN = 470,
388 ERR_CHANNELISFULL = 471,
389 ERR_UNKNOWNMODE = 472,
390 ERR_INVITEONLYCHAN = 473,
391 ERR_BANNEDFROMCHAN = 474,
392 ERR_BADCHANNELKEY = 475,
393 ERR_BADCHANMASK = 476,
394 ERR_NOCHANMODES = 477,
395 ERR_NEEDREGGEDNICK = 477,
396 ERR_BANLISTFULL = 478,
397 ERR_BADCHANNAME = 479,
400 ERR_CANNOTKNOCK = 480,
401 ERR_NOPRIVILEGES = 481,
402 ERR_CHANOPRIVSNEEDED = 482,
403 ERR_CANTKILLSERVER = 483,
404 ERR_RESTRICTED = 484,
405 ERR_ISCHANSERVICE = 484,
407 ERR_ATTACKDENY = 484,
408 ERR_UNIQOPRIVSNEEDED = 485,
410 ERR_CANTKICKADMIN = 485,
411 ERR_ISREALSERVICE = 485,
413 ERR_HTMDISABLED = 486,
414 ERR_ACCOUNTONLY = 486,
415 ERR_CHANTOORECENT = 487,
416 ERR_MSGSERVICES = 487,
417 ERR_TSLESSCHAN = 488,
418 ERR_VOICENEEDED = 489,
419 ERR_SECUREONLYCHAN = 489,
420 ERR_NOOPERHOST = 491,
421 ERR_NOSERVICEHOST = 492,
423 ERR_BADFEATURE = 494,
424 ERR_BADLOGTYPE = 495,
426 ERR_BADLOGVALUE = 497,
427 ERR_ISOPERLCHAN = 498,
428 ERR_CHANOWNPRIVNEEDED = 499,
429 ERR_UMODEUNKNOWNFLAG = 501,
430 ERR_USERSDONTMATCH = 502,
431 ERR_GHOSTEDCLIENT = 503,
432 ERR_VWORLDWARN = 503,
433 ERR_USERNOTONSERV = 504,
434 ERR_SILELISTFULL = 511,
435 ERR_TOOMANYWATCH = 512,
437 ERR_INVALID_ERROR = 514,
438 ERR_TOOMANYDCC = 514,
445 ERR_TOOMANYUSERS = 519,
447 ERR_MASKTOOWIDE = 520,
449 ERR_LISTSYNTAX = 521,
451 ERR_WHOLIMEXCEED = 523,
452 ERR_QUARANTINED = 524,
453 ERR_OPERSPVERIFY = 524,
455 ERR_PFXUNROUTABLE = 526,
456 ERR_BADHOSTMASK = 550,
457 ERR_HOSTUNAVAIL = 551,
458 ERR_USINGSLINE = 552,
459 ERR_STATSSLINE = 553,
467 RPL_ENDOFWATCHLIST = 607,
468 RPL_WATCHCLEAR = 608,
472 RPL_ENDOFISOPER = 613,
475 RPL_ENDOFDCCLIST = 619,
476 RPL_WHOWASHOST = 619,
480 RPL_ENDOFSETTINGS = 631,
484 RPL_TRACEROUTE_HOP = 660,
485 RPL_TRACEROUTE_START = 661,
486 RPL_MODECHANGEWARN = 662,
488 RPL_SERVMODEIS = 664,
489 RPL_OTHERUMODEIS = 665,
490 RPL_ENDOF_GENERIC = 666,
491 RPL_WHOWASDETAILS = 670,
492 RPL_WHOISSECURE = 671,
493 RPL_UNKNOWNMODES = 672,
494 RPL_CANNOTSETMODES = 673,
495 RPL_LUSERSTAFF = 678,
496 RPL_TIMEONSERVERIS = 679,
498 RPL_YOURLANGUAGEIS = 687,
500 RPL_WHOISSTAFF = 689,
501 RPL_WHOISLANGUAGE = 690,
505 RPL_ETRACEFULL = 708,
509 ERR_TOOMANYKNOCK = 712,
511 ERR_KNOCKONCHAN = 714,
512 ERR_KNOCKDISABLED = 715,
513 RPL_TARGUMODEG = 716,
514 RPL_TARGNOTIFY = 717,
516 RPL_ENDOFOMOTD = 722,
520 RPL_NOTESTLINE = 726,
522 RPL_MONOFFLINE = 731,
524 RPL_ENDOFMONLIST = 733,
525 ERR_MONLISTFULL = 734,
527 RPL_XINFOSTART = 773,
529 ERR_CANNOTDOCOMMAND = 972,
530 ERR_CANNOTCHANGEUMODE = 973,
531 ERR_CANNOTCHANGECHANMODE = 974,
532 ERR_CANNOTCHANGESERVERMODE = 975,
533 ERR_CANNOTSENDTONICK = 976,
534 ERR_UNKNOWNSERVERMODE = 977,
535 ERR_SERVERMODELOCK = 979,
536 ERR_BADCHARENCODING = 980,
537 ERR_TOOMANYLANGUAGES = 981,
538 ERR_NOLANGUAGE = 982,
539 ERR_TEXTTOOSHORT = 983,
540 ERR_NUMERIC_ERR = 999
544 #ifndef QT_NO_DEBUG_STREAM 549 #endif // QT_NO_DEBUG_STREAM 553 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(
Irc*))
554 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(
Irc::
Code))
555 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(
Irc::
DataRole))
556 Q_DECLARE_METATYPE(IRC_PREPEND_NAMESPACE(
Irc::
Color))
Buffer/user name (QString)
Definition: irc.h:82
User mode (QString)
Definition: irc.h:84
Sort by name (Irc::NameRole)
Definition: irc.h:90
Channel/user prefix (QString)
Definition: irc.h:83
SortMethod
Definition: irc.h:88
DataRole
Definition: irc.h:78
Sort by hand by calling sort()
Definition: irc.h:89
IRC_CORE_EXPORT void registerMetaTypes()
Definition: irccore.cpp:51
Buffer object (IrcBuffer*)
Definition: irc.h:80
Color
Definition: irc.h:59
Sort by title (Irc::TitleRole)
Definition: irc.h:91
Channel object (IrcChannel*)
Definition: irc.h:81
Miscellaneous identifiers used throughout the library.
Definition: irc.h:39