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; version 2
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
27 static KrfbServer
*self();
31 enum rfbNewClientAction
handleNewClient(struct _rfbClientRec
*cl
);
32 bool checkX11Capabilities();
35 void sessionEstablished(QString
);
36 void sessionFinished();
37 void desktopControlSettingChanged(bool);
42 void startListening();
43 void enableDesktopControl(bool);
44 void disconnectAndQuit();
45 void updateSettings();
46 void updatePassword();
47 void clientDisconnected(ConnectionController
*);
51 static KrfbServer
*_self
;
54 KrfbServerP
* const d
;