summaryrefslogtreecommitdiffstats
path: root/signet/Server.h
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2008-10-12 16:51:32 +0000
committerBen Boeckel <MathStuf@gmail.com>2008-10-12 16:51:32 +0000
commit03e65c78d1bc08bdaee86cf09a4dd8735b6a9fdd (patch)
treedcae9e046b80a64e638a741c148fcdec03bc0801 /signet/Server.h
parent2e4b02a9410fc51dc0c97bd4a9fd0b8c45bda27f (diff)
downloadsigen-03e65c78d1bc08bdaee86cf09a4dd8735b6a9fdd.tar.gz
sigen-03e65c78d1bc08bdaee86cf09a4dd8735b6a9fdd.tar.xz
sigen-03e65c78d1bc08bdaee86cf09a4dd8735b6a9fdd.zip
[FIX] Fleshing out Signet more
[DEL] Unused top-level directories git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@275 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'signet/Server.h')
-rw-r--r--signet/Server.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/signet/Server.h b/signet/Server.h
index 8cf22e07..58328188 100644
--- a/signet/Server.h
+++ b/signet/Server.h
@@ -19,25 +19,27 @@
#define SIGNET_SERVER
// Signet includes
+#include "ConnectionHandler.h"
#include "Global.h"
// Qt includes
#include <QtCore/QMap>
#include <QtCore/QObject>
+// Forward declarations
+class KConfigGroup;
+
namespace Signet
{
class Client;
class Room;
-class ServerConnectionHandler;
-class SIGNET_EXPORT Server : public QObject
+class SIGNET_EXPORT Server : public ConnectionHandler
{
Q_OBJECT
public:
Server(QObject* parent);
- public slots:
signals:
void globalMessage(const QString& message);
protected:
@@ -47,9 +49,10 @@ class SIGNET_EXPORT Server : public QObject
bool verifyUser(Client* client);
protected slots:
void joinRoom(Client* client, const QString& roomName);
+
+ void connectToMaster(const KConfigGroup& group);
private:
QMap<QString, Room*> m_rooms;
- ServerConnectionHandler* m_handler;
};
}