1 /***************************************************************************
2 * Copyright (C) 2005-07 by The Quassel IRC Development Team *
3 * devel@quassel-irc.org *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 2 of the License, or *
8 * (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
19 ***************************************************************************/
21 #ifndef _CORESESSION_H_
22 #define _CORESESSION_H_
28 #include "coreproxy.h"
33 class CoreSession : public QObject {
37 CoreSession(UserId, Storage *);
40 QList<BufferId> buffers() const;
41 UserId userId() const;
42 QVariant sessionState();
46 void connectToIrc(QStringList);
47 void processSignal(ClientSignal, QVariant, QVariant, QVariant);
48 void sendBacklog(BufferId, QVariant, QVariant);
49 void msgFromGui(BufferId, QString message);
50 void sendServerStates();
53 void proxySignal(CoreSignal, QVariant arg1 = QVariant(), QVariant arg2 = QVariant(), QVariant arg3 = QVariant());
55 void msgFromGui(QString net, QString buf, QString message);
56 void displayMsg(Message message);
57 void displayStatusMsg(QString, QString);
59 void connectToIrc(QString net);
60 void disconnectFromIrc(QString net);
61 void serverStateRequested();
63 void backlogData(BufferId, QList<QVariant>, bool done);
65 void bufferIdUpdated(BufferId);
68 //void recvProxySignal(CoreSignal, QVariant arg1 = QVariant(), QVariant arg2 = QVariant(), QVariant arg3 = QVariant());
69 void globalDataUpdated(UserId, QString);
70 void recvStatusMsgFromServer(QString msg);
71 void recvMessageFromServer(Message::Type, QString target, QString text, QString sender = "", quint8 flags = Message::None);
72 void serverConnected(QString net);
73 void serverDisconnected(QString net);
78 QHash<QString, Server *> servers;