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 initialize() = 0;
00059
00074 virtual bool preHotSync(QString &s) ;
00075
00079 virtual void postHotSync() { } ;
00080
00081 protected:
00095 int findSelectedCategory(QComboBox *,
00096 CategoryAppInfo *,
00097 bool AllIsUnfiled=false);
00098
00109 void populateCategories(QComboBox *,
00110 CategoryAppInfo *info=0);
00111
00112 const QString& dbPath() const { return fDBPath; } ;
00113
00114 public slots:
00115 void slotShowComponent();
00116
00117 signals:
00118 void showComponent(PilotComponent *);
00119
00120 private:
00121 QString fDBPath;
00122 } ;
00123
00124 #endif
This file is part of the documentation for kdelibs Version 3.1.5.