SolidModules
backendchooser.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 #ifndef BACKENDCHOOSER_H
00022 #define BACKENDCHOOSER_H
00023
00024 #include "ui_backendchooser.h"
00025
00026 #include <QWidget>
00027 #include <QHash>
00028 #include <QString>
00029
00030 #include <kservice.h>
00031
00032 class BackendChooser : public QWidget
00033 {
00034 Q_OBJECT
00035 public:
00036 BackendChooser(QWidget *parent, const QString &backendType);
00037
00038 void load();
00039 void save();
00040 void defaults();
00041
00042 private Q_SLOTS:
00043 void slotSelectionChanged();
00044 void slotUpClicked();
00045 void slotDownClicked();
00046
00047 Q_SIGNALS:
00048 void changed(bool state);
00049
00050 private:
00051 void loadServicesInView(const KService::List &offers);
00052 KService::List servicesFromView();
00053
00054 Ui::BackendChooser m_ui;
00055 KService::List m_initServices;
00056
00057 QString m_backendType;
00058 QHash<QString, KService::Ptr> m_services;
00059 };
00060
00061 #endif