kpilot Library API Documentation

kpilot.h

00001 #ifndef _KPILOT_KPILOT_H 00002 #define _KPILOT_KPILOT_H 00003 /* kpilot.h KPilot 00004 ** 00005 ** Copyright (C) 1998-2001 by Dan Pilone 00006 ** 00007 ** This is the main program in KPilot. 00008 */ 00009 00010 /* 00011 ** This program is free software; you can redistribute it and/or modify 00012 ** it under the terms of the GNU General Public License as published by 00013 ** the Free Software Foundation; either version 2 of the License, or 00014 ** (at your option) any later version. 00015 ** 00016 ** This program is distributed in the hope that it will be useful, 00017 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 ** GNU General Public License for more details. 00020 ** 00021 ** You should have received a copy of the GNU General Public License 00022 ** along with this program in a file called COPYING; if not, write to 00023 ** the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 00024 ** MA 02111-1307, USA. 00025 */ 00026 00027 /* 00028 ** Bug reports and questions can be sent to kde-pim@kde.org 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 // Adds 'name' to the pull down menu of components 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; // Used for GUI-less interface 00160 KJanusWidget *fManagingWidget; 00161 bool fKillDaemonOnExit; 00162 bool fDaemonWasRunning; 00163 00164 KPilotStatus fStatus; 00165 00166 FileInstallWidget *fFileInstallWidget; 00167 LogWidget *fLogWidget; 00168 00169 // Used to track if dialog is visible - needed for new DCOP calls 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
KDE Logo
This file is part of the documentation for kpilot Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:57:49 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003