Show invite menu in wlm chat window immediately
[kdenetwork.git] / krfb / krfbserver.h
blob4ab68b2c819d85f85457b2896d160d9f7d9bf02f
1 /* This file is part of the KDE project
2 Copyright (C) 2007 Alessandro Praduroux <pradu@pradu.it>
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8 */
10 #ifndef KRFBSERVER_H
11 #define KRFBSERVER_H
13 #include <QObject>
14 #include <rfb/rfb.h>
16 class ConnectionController;
17 /**
18 This class implements the listening server for the RFB protocol.
20 @author Alessandro Praduroux <pradu@pradu.it>
22 class KrfbServer : public QObject
24 Q_OBJECT
25 friend class KrfbServerPrivate;
26 public:
28 static KrfbServer *self();
30 ~KrfbServer();
32 enum rfbNewClientAction handleNewClient(struct _rfbClientRec *cl);
33 bool checkX11Capabilities();
35 signals:
36 void sessionEstablished(QString);
37 void sessionFinished();
38 void desktopControlSettingChanged(bool);
40 public Q_SLOTS:
42 void startListening();
43 void processRfbEvents();
44 void shutdown();
45 void enableDesktopControl(bool);
46 void updateSettings();
47 void updatePassword();
48 void clientDisconnected(ConnectionController *);
50 private:
51 KrfbServer();
52 static KrfbServer *_self;
54 class KrfbServerP;
55 KrfbServerP * const d;
59 #endif