mirror of
https://github.com/correl/mercenary.git
synced 2024-11-27 11:09:52 +00:00
Correl Roush
34b445fe87
git-svn-id: file:///srv/svn/ircclient/trunk@6 a9804ffe-773b-11dd-bd7c-89c3ef1d2733
45 lines
1.3 KiB
C++
45 lines
1.3 KiB
C++
#include <QTabWidget>
|
|
#include <QString>
|
|
#include <QStringList>
|
|
#include <QPointer>
|
|
#include <ircclient.h>
|
|
#include <dccserver.h>
|
|
#include <mirc.h>
|
|
#include "chatwindow.h"
|
|
|
|
class MessageHandler : public QTabWidget {
|
|
Q_OBJECT
|
|
private:
|
|
IRCClient *irc;
|
|
QHash< QString, ChatWindow* > windows;
|
|
QHash< QString, QVariant > variables;
|
|
int DCCPortMin;
|
|
int DCCPortMax;
|
|
bool DCCSendAhead;
|
|
QHash< int, DCCServer* > DCCServers;
|
|
QHash< QString, int > DCCNicks;
|
|
MIRCScriptManager *scriptManager;
|
|
|
|
void _addWindow( QString name, QString defaultCmd = "", bool focusOnOpen = false );
|
|
QString parseVar( QString text );
|
|
public:
|
|
MessageHandler( IRCClient *irc, QWidget *parent = 0 );
|
|
|
|
void alias_join(QStringList args);
|
|
void alias_msg(QStringList args);
|
|
public slots:
|
|
bool call_alias(QString alias, QStringList args);
|
|
void messageRcvd( QString type, QString src, QString dest, QStringList values, QString text );
|
|
void messageSentDCC( QString nickName, QString text );
|
|
void messageRcvdDCC( QString nickName, QString text );
|
|
void processCmd( QString cmdText );
|
|
void autoRun();
|
|
void startDCC( QString nickName, QString fileName = "" );
|
|
void connectedDCCChat( QString nickName );
|
|
|
|
void rcvdRAW( QString text );
|
|
void sentRAW( QString text );
|
|
signals:
|
|
void dispatchMessage( QString window, QString src, QString message );
|
|
};
|
|
|