ReplyConstants.h

00001 #ifndef PIRCBOT_REPLYCONSTANTS_H
00002 #define PIRCBOT_REPLYCONSTANTS_H
00003 
00004 /*
00005  * pircbotcpp, C++ port of the pircbot Java version
00006  * A IRC C++ software development kit. An Object 
00007  * Oriented client framework which lets you 
00008  * write quick and easy C++ IRC bots
00009  *
00010  * Copyright (C) 2006 Frank Hassanabad 
00011  * http://pircbotcpp.sourceforge.net/
00012  *
00013  * Java version 
00014  * Copyright Paul James Mutton, 2001-2004, http://www.jibble.org/
00015  *
00016  * This library is free software; you can redistribute it and/or
00017  * modify it under the terms of the GNU General Public
00018  * License as published by the Free Software Foundation; either
00019  * version 2.1 of the License, or (at your option) any later version.
00020  *
00021  * This library is distributed in the hope that it will be useful,
00022  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00023  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00024  * General Public License for more details.
00025  *
00026  * You should have received a copy of the GNU General Public
00027  * License along with this library; if not, write to the Free Software
00028  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00029  */
00030 
00031 
00032 //pircbot includes
00033 //To get the PIRCBOT_EXPORT macro
00034 #include <pircbot/exports.h>
00035 #include <pircbot/Exceptions.h>
00036 
00037 /* Disable Windows VC 7.x warning about 
00038  * it ignoring the throw specification
00039  */
00040 #ifdef _WIN32
00041 #    pragma warning ( push )
00042 #    pragma warning( disable : 4290 )
00043 #endif
00044 
00045 namespace pircbot
00046 {
00047 namespace impl
00048 {
00049 
00062 class PIRCBOT_EXPORT ReplyConstants
00063 {
00064     public:
00065 
00066         // Error Replies.
00067 
00074         static int ERR_NOSUCHNICK;
00075 
00082         static int ERR_NOSUCHSERVER;
00083 
00089         static int ERR_NOSUCHCHANNEL;
00090 
00099         static int ERR_CANNOTSENDTOCHAN;
00100 
00108         static int ERR_TOOMANYCHANNELS;
00109 
00116         static int ERR_WASNOSUCHNICK;
00117 
00125         static int ERR_TOOMANYTARGETS;
00126 
00134         static int ERR_NOORIGIN;
00135 
00139         static int ERR_NORECIPIENT;
00140 
00144         static int ERR_NOTEXTTOSEND;
00145 
00149         static int ERR_NOTOPLEVEL;
00150 
00154         static int ERR_WILDTOPLEVEL;
00155 
00162         static int ERR_UNKNOWNCOMMAND;
00163 
00169         static int ERR_NOMOTD;
00170 
00178         static int ERR_NOADMININFO;
00179 
00186         static int ERR_FILEERROR;
00187 
00194         static int ERR_NONICKNAMEGIVEN;
00195 
00203         static int ERR_ERRONEUSNICKNAME;
00204 
00212         static int ERR_NICKNAMEINUSE;
00213 
00220         static int ERR_NICKCOLLISION;
00221 
00227         static int ERR_USERNOTINCHANNEL;
00228 
00236         static int ERR_NOTONCHANNEL;
00237 
00244         static int ERR_USERONCHANNEL;
00245 
00253         static int ERR_NOLOGIN;
00254 
00261         static int ERR_SUMMONDISABLED;
00262 
00269         static int ERR_USERSDISABLED;
00270 
00278         static int ERR_NOTREGISTERED;
00279 
00287         static int ERR_NEEDMOREPARAMS;
00288 
00296         static int ERR_ALREADYREGISTRED;
00297 
00306         static int ERR_NOPERMFORHOST;
00307 
00315         static int ERR_PASSWDMISMATCH;
00316 
00324         static int ERR_YOUREBANNEDCREEP;
00325 
00329         static int ERR_KEYSET;
00330 
00334         static int ERR_CHANNELISFULL;
00335 
00339         static int ERR_UNKNOWNMODE;
00340 
00344         static int ERR_INVITEONLYCHAN;
00345 
00349         static int ERR_BANNEDFROMCHAN;
00350 
00354         static int ERR_BADCHANNELKEY;
00355 
00363         static int ERR_NOPRIVILEGES;
00364 
00372         static int ERR_CHANOPRIVSNEEDED;
00373 
00381         static int ERR_CANTKILLSERVER;
00382 
00391         static int ERR_NOOPERHOST;
00392 
00400         static int ERR_UMODEUNKNOWNFLAG;
00401 
00408         static int ERR_USERSDONTMATCH;
00409         
00410         
00411         // Command Responses.
00412 
00416         static int RPL_TRACELINK;
00417 
00421         static int RPL_TRACECONNECTING;
00422 
00426         static int RPL_TRACEHANDSHAKE;
00427 
00431         static int RPL_TRACEUNKNOWN;
00432 
00436         static int RPL_TRACEOPERATOR;
00437 
00441         static int RPL_TRACEUSER;
00442 
00446         static int RPL_TRACESERVER;
00447 
00451         static int RPL_TRACENEWTYPE;
00452 
00456         static int RPL_STATSLINKINFO;
00457 
00461         static int RPL_STATSCOMMANDS;
00462 
00466         static int RPL_STATSCLINE;
00467 
00471         static int RPL_STATSNLINE;
00472 
00476         static int RPL_STATSILINE;
00477 
00481         static int RPL_STATSKLINE;
00482 
00486         static int RPL_STATSYLINE;
00487 
00491         static int RPL_ENDOFSTATS;
00492 
00499         static int RPL_UMODEIS;
00500 
00504         static int RPL_STATSLLINE;
00505 
00509         static int RPL_STATSUPTIME;
00510 
00514         static int RPL_STATSOLINE;
00515 
00519         static int RPL_STATSHLINE;
00520 
00524         static int RPL_LUSERCLIENT;
00525 
00529         static int RPL_LUSEROP;
00530 
00534         static int RPL_LUSERUNKNOWN;
00535 
00539         static int RPL_LUSERCHANNELS;
00540 
00553         static int RPL_LUSERME;
00554 
00558         static int RPL_ADMINME;
00559 
00563         static int RPL_ADMINLOC1;
00564 
00568         static int RPL_ADMINLOC2;
00569 
00584         static int RPL_ADMINEMAIL;
00585 
00609         static int RPL_TRACELOG;
00610 
00614         static int RPL_NONE;
00615 
00619         static int RPL_AWAY;
00620 
00635         static int RPL_USERHOST;
00636 
00643         static int RPL_ISON;
00644 
00648         static int RPL_UNAWAY;
00649 
00660         static int RPL_NOWAWAY;
00661 
00665         static int RPL_WHOISUSER;
00666 
00670         static int RPL_WHOISSERVER;
00671 
00675         static int RPL_WHOISOPERATOR;
00676 
00680         static int RPL_WHOWASUSER;
00681 
00693         static int RPL_ENDOFWHO;
00694 
00698         static int RPL_WHOISIDLE;
00699 
00703         static int RPL_ENDOFWHOIS;
00704 
00723         static int RPL_WHOISCHANNELS;
00724 
00728         static int RPL_LISTSTART;
00729 
00733         static int RPL_LIST;
00734 
00744         static int RPL_LISTEND;
00745 
00749         static int RPL_CHANNELMODEIS;
00750 
00754         static int RPL_NOTOPIC;
00755 
00764         static int RPL_TOPIC;
00765 
00769         static int RPL_TOPICINFO;
00770 
00778         static int RPL_INVITING;
00779 
00786         static int RPL_SUMMONING;
00787 
00799         static int RPL_VERSION;
00800 
00804         static int RPL_WHOREPLY;
00805 
00809         static int RPL_NAMREPLY;
00810 
00814         static int RPL_LINKS;
00815 
00823         static int RPL_ENDOFLINKS;
00824 
00837         static int RPL_ENDOFNAMES;
00838 
00842         static int RPL_BANLIST;
00843 
00854         static int RPL_ENDOFBANLIST;
00855 
00866         static int RPL_ENDOFWHOWAS;
00867 
00871         static int RPL_INFO;
00872 
00876         static int RPL_MOTD;
00877 
00886         static int RPL_ENDOFINFO;
00887 
00891         static int RPL_MOTDSTART;
00892 
00903         static int RPL_ENDOFMOTD;
00904 
00912         static int RPL_YOUREOPER;
00913 
00921         static int RPL_REHASHING;
00922 
00932         static int RPL_TIME;
00933 
00937         static int RPL_USERSSTART;
00938 
00942         static int RPL_USERS;
00943 
00947         static int RPL_ENDOFUSERS;
00948 
00952         static int RPL_NOUSERS;
00953         
00954         
00955         // Reserved Numerics.
00956 
00960         static int RPL_TRACECLASS;
00961 
00965         static int RPL_STATSQLINE;
00966 
00970         static int RPL_SERVICEINFO;
00971 
00975         static int RPL_ENDOFSERVICES;
00976 
00980         static int RPL_SERVICE;
00981 
00985         static int RPL_SERVLIST;
00986 
00990         static int RPL_SERVLISTEND;
00991 
00995         static int RPL_WHOISCHANOP;
00996 
01000         static int RPL_KILLDONE;
01001 
01005         static int RPL_CLOSING;
01006 
01010         static int RPL_CLOSEEND;
01011 
01015         static int RPL_INFOSTART;
01016 
01020         static int RPL_MYPORTIS;
01021 
01025         static int ERR_YOUWILLBEBANNED;
01026 
01030         static int ERR_BADCHANMASK;
01031 
01035         static int ERR_NOSERVICEHOST;
01036 
01059         void operator delete(void* p);
01060 
01085         void *operator new(unsigned int size);
01086 
01090         virtual ~ReplyConstants();
01091 
01095         ReplyConstants()
01096             throw(Exception &);
01097 
01098     private: 
01099 
01106         ReplyConstants &operator=(const ReplyConstants &replyConstants);
01107 
01114         ReplyConstants(const ReplyConstants &replyConstants);
01115 
01116 };
01117 
01118 
01119 } //end of impl namespace
01120 
01121 //expose PircBot to the pircbot namespace
01122 using pircbot::impl::ReplyConstants;
01123 
01124 #ifdef _WIN32
01125 #    pragma warning( disable : 4290 )
01126 #endif
01127 
01128 } //end of pircbot namespace 
01129 
01130 
01131 #endif
01132 

Generated on Sun Sep 3 16:43:20 2006 for pircbotcpp by  doxygen 1.4.5