10 #include <sys/select.h>
23 std::string nick = std::string(
"DaZeus"), std::string user = std::string(
"dazeus"),
24 std::string full = std::string(
"DaZeus"), std::string p = std::string(),
bool a =
55 virtual void ircEvent(
const std::string &event,
const std::string &origin,
56 const std::vector<std::string> ¶ms,
Network *n ) = 0;
70 networkListeners_.push_back(nl);
93 const std::vector<ServerConfig*> &
servers()
const;
94 std::string
nick()
const;
100 std::map<std::string,std::string>
topics()
const;
101 std::map<std::string,ChannelMode>
usersInChannel(std::string channel)
const;
110 void say( std::string destination, std::string message );
111 void action( std::string destination, std::string message );
112 void names( std::string channel );
113 void ctcp( std::string destination, std::string message );
114 void sendWhois( std::string destination );
120 static void run(std::vector<Network*> networks);
125 void operator=(
const Network&);
127 void connectToServer(
ServerConfig *conf,
bool reconnect );
131 std::map<const ServerConfig*,int> undesirables_;
133 std::vector<std::string> identifiedUsers_;
134 std::map<std::string,std::vector<std::string> > knownUsers_;
135 std::map<std::string,std::string> topics_;
136 std::vector<NetworkListener*> networkListeners_;
139 time_t nextPongDeadline_;
141 void onFailedConnection();
142 void joinedChannel(
const std::string &user,
const std::string &receiver);
143 void kickedChannel(
const std::string &user,
const std::string&,
const std::string&,
const std::string &receiver);
144 void partedChannel(
const std::string &user,
const std::string &,
const std::string &receiver);
145 void slotQuit(
const std::string &origin,
const std::string&,
const std::string &receiver);
146 void slotWhoisReceived(
const std::string &origin,
const std::string &
nick,
bool identified);
147 void slotNickChanged(
const std::string &origin,
const std::string &
nick,
const std::string &receiver );
148 void slotNamesReceived(
const std::string&,
const std::string&,
const std::vector<std::string> &
names,
const std::string &receiver );
149 void slotTopicChanged(
const std::string&,
const std::string&,
const std::string&);
150 void slotIrcEvent(
const std::string&,
const std::string&,
const std::vector<std::string>&);