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
10 #ifndef CONNECTIONCONTROLLER_H
11 #define CONNECTIONCONTROLLER_H
20 @author Alessandro Praduroux <pradu@pradu.it>
22 class ConnectionController
: public QObject
26 ConnectionController(struct _rfbClientRec
*_cl
, KrfbServer
*parent
);
28 ~ConnectionController();
30 bool handleCheckPassword(rfbClientPtr cl
, const char *response
, int len
);
31 void handleNegotiationFinished(struct _rfbClientRec
*cl
);
33 void handleKeyEvent(bool down
, rfbKeySym keySym
);
34 void handlePointerEvent( int bm
, int x
, int y
);
35 void handleClientGone();
36 void clipboardToServer(const QString
&);
38 enum rfbNewClientAction
handleNewClient();
40 void setControlEnabled(bool enable
);
43 void sessionEstablished(QString
);
44 void notification(QString
, QString
);
45 void clientDisconnected(ConnectionController
*);
48 void dialogAccepted();
49 void dialogRejected();
53 struct _rfbClientRec
*cl
;
58 rfbScreenInfoPtr screen;