-rw-r--r-- | core/launcher/qcopbridge.h | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/core/launcher/qcopbridge.h b/core/launcher/qcopbridge.h index 408d10d..bae3f88 100644 --- a/core/launcher/qcopbridge.h +++ b/core/launcher/qcopbridge.h @@ -21,4 +21,5 @@ #define __qcopbridge_h__ +#include <qtopia/global.h> #include <qserversocket.h> #include <qsocket.h> @@ -30,4 +31,5 @@ class QFileInfo; class QCopBridgePI; class QCopChannel; +class QTimer; class QCopBridge : public QServerSocket @@ -41,12 +43,16 @@ public: void newConnection( int socket ); void closeOpenConnections(); + void authorizeConnections(); public slots: - void connectionClosed( QCopBridgePI *pi ); + void closed( QCopBridgePI *pi ); void desktopMessage( const QCString &call, const QByteArray & ); - + +signals: + void connectionClosed( const QHostAddress & ); + protected: void timerEvent( QTimerEvent * ); - + private: QCopChannel *desktopChannel; @@ -68,17 +74,16 @@ public: void sendDesktopMessage( const QString &msg ); + void sendDesktopMessage( const QCString &msg, const QByteArray& ); void startSync() { sendSync = TRUE; } - + bool verifyAuthorised(); + signals: void connectionClosed( QCopBridgePI *); - + protected slots: void read(); void send( const QString& msg ); void process( const QString& command ); - void connectionClosed(); - -protected: - void timerEvent( QTimerEvent *e ); + void myConnectionClosed(); private: @@ -86,6 +91,6 @@ private: Q_UINT16 peerport; QHostAddress peeraddress; - bool connected; bool sendSync; + QTimer *timer; }; |