diff options
Diffstat (limited to 'portland/dapi/kde/daemon/handler.h')
-rw-r--r-- | portland/dapi/kde/daemon/handler.h | 111 |
1 files changed, 0 insertions, 111 deletions
diff --git a/portland/dapi/kde/daemon/handler.h b/portland/dapi/kde/daemon/handler.h deleted file mode 100644 index 516b517..0000000 --- a/portland/dapi/kde/daemon/handler.h +++ /dev/null @@ -1,111 +0,0 @@ -#ifndef HANDLER_H -#define HANDLER_H - -#include <qobject.h> -#include <qmap.h> -#include <kio/job.h> -#include <qwidget.h> - -#include <dapi/comm.h> - -class KABCHandler; -class QSocketNotifier; - -class KDapiHandler - : public QObject - { - Q_OBJECT - public: - KDapiHandler(); - virtual ~KDapiHandler(); - private slots: - void processMainSocketData(); - void processSocketData( int sock ); - private: - struct ConnectionData - { - DapiConnection* conn; - QSocketNotifier* notifier; - bool screensaver_suspend; - }; - void setupSocket(); - void closeSocket( ConnectionData& conn ); - void processCommand( ConnectionData& conn ); - void processCommandInit( ConnectionData& conn, int seq ); - void processCommandCapabilities( ConnectionData& conn, int seq ); - void processCommandOpenUrl( ConnectionData& conn, int seq ); - void processCommandExecuteUrl( ConnectionData& conn, int seq ); - void processCommandButtonOrder( ConnectionData& conn, int seq ); - void processCommandRunAsUser( ConnectionData& conn, int seq ); - void processCommandSuspendScreensaving( ConnectionData& conn, int seq ); - void processCommandMailTo( ConnectionData& conn, int seq ); - void processCommandLocalFile( ConnectionData& conn, int seq ); - void processCommandUploadFile( ConnectionData& conn, int seq ); - void processCommandRemoveTemporaryLocalFile( ConnectionData& conn, int seq ); - void processCommandAddressBookList( ConnectionData& conn, int seq ); - void processCommandAddressBookGetName( ConnectionData& conn, int seq ); - void processCommandAddressBookGetEmails( ConnectionData& conn, int seq ); - void processCommandAddressBookFindByName( ConnectionData& conn, int seq ); - void processCommandAddressBookOwner( ConnectionData& conn, int seq ); - void processCommandAddressBookGetVCard30( ConnectionData& conn, int seq ); - void updateScreensaving(); - static QCString makeStartupInfo( const DapiWindowInfo& winfo ); - int mainsocket; - typedef QValueList< ConnectionData > ConnectionList; - ConnectionList connections; - KABCHandler* kabchandler; - }; - -class KDapiFakeWidget - : public QWidget - { - Q_OBJECT - public: - KDapiFakeWidget( WId window ); - virtual ~KDapiFakeWidget(); - }; - -class KDapiDownloadJob - : public QObject - { - Q_OBJECT - public: - KDapiDownloadJob( KIO::FileCopyJob* j, DapiConnection* c, int s, QWidget* w ); - private slots: - void done(); - private: - KIO::FileCopyJob* job; - DapiConnection* conn; - int seq; - QWidget* widget; - }; - -class KDapiUploadJob - : public QObject - { - Q_OBJECT - public: - KDapiUploadJob( KIO::FileCopyJob* j, DapiConnection* c, int s, bool r, QWidget* w ); - private slots: - void done(); - private: - KIO::FileCopyJob* job; - DapiConnection* conn; - int seq; - bool remove_local; - QWidget* widget; - }; - -inline -KDapiDownloadJob::KDapiDownloadJob( KIO::FileCopyJob* j, DapiConnection* c, int s, QWidget* w ) - : job( j ), conn( c ), seq( s ), widget( w ) - { - } - -inline -KDapiUploadJob::KDapiUploadJob( KIO::FileCopyJob* j, DapiConnection* c, int s, bool r, QWidget* w ) - : job( j ), conn( c ), seq( s ), remove_local( r ), widget( w ) - { - } - -#endif |