pilotComponent.h
00001 #ifndef _KPILOT_PILOTCOMPONENT_H
00002 #define _KPILOT_PILOTCOMPONENT_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
00034 #ifndef QWIDGET_H
00035 #include <qwidget.h>
00036 #endif
00037
00038 #ifndef QSTRING_H
00039 #include <qstring.h>
00040 #endif
00041
00042 struct CategoryAppInfo;
00043 class QComboBox;
00044
00045 class PilotComponent : public QWidget
00046 {
00047 Q_OBJECT
00048
00049 public:
00050 PilotComponent(QWidget* parent,
00051 const char *id,
00052 const QString& dbPath);
00053
00058 virtual void showComponent() {}
00066 virtual void hideComponent() {}
00067
00072 void showKPilotComponent( bool toShow );
00073
00074
00089 virtual bool preHotSync(QString &s) ;
00090
00094 virtual void postHotSync() { } ;
00095
00096 protected:
00110 int findSelectedCategory(QComboBox *,
00111 CategoryAppInfo *,
00112 bool AllIsUnfiled=false);
00113
00124 void populateCategories(QComboBox *,
00125 CategoryAppInfo *info=0);
00126
00127 const QString& dbPath() const { return fDBPath; } ;
00128 void markDBDirty(const QString db);
00129
00130 public slots:
00131 void slotShowComponent();
00132
00133 signals:
00134 void showComponent(PilotComponent *);
00135
00136 private:
00137 QString fDBPath;
00138 protected:
00139 bool shown;
00140 } ;
00141
00142 #endif
This file is part of the documentation for kpilot Library Version 3.2.2.