ircprotocol.h

Go to the documentation of this file.
00001 /*
00002 #########################################################################
00003 #
00004 #  This file is part of trustyRC.
00005 #
00006 #  trustyRC, fully modular IRC robot 
00007 #  Copyright (C) 2006-2008 Nicoleau Fabien 
00008 #
00009 #  trustyRC is free software: you can redistribute it and/or modify
00010 #  it under the terms of the GNU General Public License as published by
00011 #  the Free Software Foundation, either version 3 of the License, or
00012 #  (at your option) any later version.
00013 #
00014 #  trustyRC is distributed in the hope that it will be useful,
00015 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017 #  GNU General Public License for more details.
00018 #
00019 #  You should have received a copy of the GNU General Public License
00020 #  along with trustyRC.  If not, see <http://www.gnu.org/licenses/>.
00021 #
00022 #########################################################################
00023 */
00024 
00029 #ifndef IRCPROTOCOL_H
00030 #define IRCPROTOCOL_H
00031 #include <string>
00032 #include <vector>
00033 using namespace std;
00034 
00044 class IRCProtocol {
00045 public:
00047    IRCProtocol();
00049    ~IRCProtocol();
00051    static vector<string> identify(string,string,string,string);         
00053    static string quitServer(string raison = "autokilled!") ;
00055    static string joinChannel(string) ;
00057    static string leaveChannel(string,string raison = "\\o_"); 
00059    static string changeNick(string); 
00061    static string ping(string);
00063    static string pong(string); 
00065    static string sendMsg(string,string); 
00067    static vector<string> sendMsg(string,vector<string>); 
00069    static string sendAction(string,string);
00071    static string changeTopic(string,string); 
00073    static vector<string> applyModes(string,vector<string>,char,char,unsigned int);
00075    static vector<string> op(vector<string>,string); 
00077    static string op(string,string); 
00079    static vector<string> unop(vector<string>,string); 
00081    static string unop(string,string); 
00083    static vector<string> voice(vector<string>,string); 
00085    static string voice(string,string);
00087    static vector<string> unvoice(vector<string>,string); 
00089    static string unvoice(string,string); 
00091    static string ban(string,string);
00093    static string unban(string,string);
00095    static string sendNotice(string,string); 
00097    static vector<string> sendNotices(string,vector<string>); 
00099    static string kick(string,string,string); 
00101         static string who(string,string);
00103    static string invite(string,string);
00104 };
00105 
00106 #endif

Generated on Sun Aug 16 15:28:27 2009 for trustyRC by  doxygen 1.5.8