krfb
krfbserver.h
Go to the documentation of this file.00001 /* This file is part of the KDE project 00002 Copyright (C) 2007 Alessandro Praduroux <pradu@pradu.it> 00003 00004 This program is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU General Public 00006 License as published by the Free Software Foundation; either 00007 version 2 of the License, or (at your option) any later version. 00008 */ 00009 00010 #ifndef KRFBSERVER_H 00011 #define KRFBSERVER_H 00012 00013 #include <QObject> 00014 #include <rfb/rfb.h> 00015 00016 class ConnectionController; 00022 class KrfbServer : public QObject 00023 { 00024 Q_OBJECT 00025 friend class KrfbServerPrivate; 00026 public: 00027 00028 static KrfbServer *self(); 00029 00030 ~KrfbServer(); 00031 00032 enum rfbNewClientAction handleNewClient(struct _rfbClientRec *cl); 00033 bool checkX11Capabilities(); 00034 00035 signals: 00036 void sessionEstablished(QString); 00037 void sessionFinished(); 00038 void desktopControlSettingChanged(bool); 00039 void quitApp(); 00040 00041 public Q_SLOTS: 00042 00043 void startListening(); 00044 void enableDesktopControl(bool); 00045 void disconnectAndQuit(); 00046 void updateSettings(); 00047 void updatePassword(); 00048 void clientDisconnected(ConnectionController *); 00049 00050 private: 00051 KrfbServer(); 00052 static KrfbServer *_self; 00053 00054 class KrfbServerP; 00055 KrfbServerP * const d; 00056 00057 }; 00058 00059 #endif
KDE 4.2 API Reference