kontact
kcmkontact.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef KCMKONTACT_H
00026 #define KCMKONTACT_H
00027
00028 #include "plugin.h"
00029
00030 #include <kprefsdialog.h>
00031 #include <kservice.h>
00032
00033 #include <QList>
00034
00035 class KComboBox;
00036 class KAboutData;
00037
00038 using namespace KPIM;
00039
00040 class KcmKontact : public KPrefsModule
00041 {
00042 Q_OBJECT
00043
00044 public:
00045 explicit KcmKontact( const KComponentData &inst, QWidget *parent = 0 );
00046
00047 virtual const KAboutData *aboutData() const;
00048 };
00049
00050 class PluginSelection : public KPrefsWid
00051 {
00052 Q_OBJECT
00053
00054 public:
00055 PluginSelection( KConfigSkeleton::ItemString *item, QWidget *parent );
00056 ~PluginSelection();
00057
00058 void readConfig();
00059 void writeConfig();
00060
00061 QList<QWidget *> widgets() const;
00062 KComboBox *comboBox() const { return mPluginCombo; }
00063
00064 private:
00065 KComboBox *mPluginCombo;
00066 KService::List mPluginList;
00067 KConfigSkeleton::ItemString *mItem;
00068 };
00069
00070 #endif