kpilot.h
00001 #ifndef _KPILOT_KPILOT_H
00002 #define _KPILOT_KPILOT_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #include <kmainwindow.h>
00032
00033
00034 class QPopupMenu;
00035 class QComboBox;
00036 class KAction;
00037 class KProgress;
00038 class KJanusWidget;
00039
00040 class PilotDaemonDCOP_stub;
00041 class PilotComponent;
00042 class FileInstallWidget;
00043 class LogWidget;
00044
00045
00046 #include "kpilotDCOP.h"
00047
00048
00049
00050 class KPilotInstaller : public KMainWindow, public KPilotDCOP
00051 {
00052 Q_OBJECT
00053
00054 public:
00055 KPilotInstaller();
00056 KPilotInstaller(QStrList& fileList);
00057 ~KPilotInstaller();
00058
00065 static const char *version(int kind);
00066
00067
00068
00069 void addComponentPage(PilotComponent *, const QString &name);
00070
00071
00072 KPilotStatus status() const { return fStatus; } ;
00073
00074
00075 protected:
00076 void closeEvent(QCloseEvent *e);
00077 KJanusWidget *getManagingWidget() { return fManagingWidget; }
00078
00083 protected:
00084 PilotDaemonDCOP_stub &getDaemon() { return *fDaemonStub; } ;
00085 private:
00086 PilotDaemonDCOP_stub *fDaemonStub;
00087
00093 protected:
00094 void killDaemonIfNeeded();
00095 public:
00096 void startDaemonIfNeeded();
00097
00098 public slots:
00099 void slotRestoreRequested();
00100 void slotBackupRequested();
00101 void slotHotSyncRequested();
00102 void slotListSyncRequested();
00103
00104
00111 void optionsShowToolbar();
00112 void optionsConfigureKeys();
00113 void optionsConfigureToolbars();
00114
00115
00116 public:
00120 virtual ASYNC daemonStatus(int);
00121 virtual int kpilotStatus();
00122
00127 virtual ASYNC configure();
00128
00133 virtual ASYNC configureConduits();
00134
00135 protected:
00136 void readConfig();
00137
00138
00142 bool componentPreSync();
00143 void setupSync(int kind,const QString& msg);
00144 void componentPostSync();
00145
00146 void initIcons();
00147 void initMenu();
00148 void setupWidget();
00149 void initComponents();
00150
00155 class KPilotPrivate;
00156 KPilotPrivate *fP;
00157
00158 private:
00159 bool fQuitAfterCopyComplete;
00160 KJanusWidget *fManagingWidget;
00161 bool fKillDaemonOnExit;
00162 bool fDaemonWasRunning;
00163
00164 KPilotStatus fStatus;
00165
00166 FileInstallWidget *fFileInstallWidget;
00167 LogWidget *fLogWidget;
00168
00169
00170 bool fConfigureConduitDialogInUse;
00171 bool fConfigureKPilotDialogInUse;
00172
00173
00174 protected slots:
00175 void quit();
00176 void slotConfigureKPilot();
00177 void slotConfigureConduits();
00178 void fileInstalled(int which);
00179 void slotNewToolbarConfig();
00180
00190 void slotSelectComponent( PilotComponent *c );
00191 void slotAboutToShowComponent( QWidget *c );
00192
00197 void initializeComponents();
00198
00199 signals:
00200 void modeSelected(int selected);
00201 };
00202
00203
00204
00205
00206 #endif
This file is part of the documentation for kpilot Library Version 3.2.2.