You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
657 B
36 lines
657 B
#pragma once
|
|
|
|
#include "IRCMessageQueue.h"
|
|
#include "IRCApplication.h"
|
|
|
|
class IRCProtocol
|
|
{
|
|
public:
|
|
IRCProtocol(IRCApplication * app, const std::string &callsign, const std::string &password, const std::string &channel, const std::string &versionInfo);
|
|
|
|
~IRCProtocol();
|
|
|
|
void setNetworkReady(bool state);
|
|
|
|
bool processQueues(IRCMessageQueue *recvQ, IRCMessageQueue *sendQ);
|
|
|
|
private:
|
|
void chooseNewNick();
|
|
|
|
std::vector<std::string> nicks;
|
|
std::string password;
|
|
std::string channel;
|
|
std::string name;
|
|
std::string currentNick;
|
|
std::string versionInfo;
|
|
|
|
int state;
|
|
int timer;
|
|
int pingTimer;
|
|
|
|
std::string debugChannel;
|
|
|
|
IRCApplication *app;
|
|
|
|
};
|