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.
16 class ConnectionController
;
18 This class implements the listening server for the RFB protocol.
20 @author Alessandro Praduroux <pradu@pradu.it>
22 class KrfbServer
: public QObject
25 friend class KrfbServerPrivate
;
28 static KrfbServer
*self();
32 enum rfbNewClientAction
handleNewClient(struct _rfbClientRec
*cl
);
33 bool checkX11Capabilities();
36 void sessionEstablished(QString
);
37 void sessionFinished();
38 void desktopControlSettingChanged(bool);
43 void startListening();
44 void enableDesktopControl(bool);
45 void disconnectAndQuit();
46 void updateSettings();
47 void updatePassword();
48 void clientDisconnected(ConnectionController
*);
52 static KrfbServer
*_self
;
55 KrfbServerP
* const d
;