Changeset View
Changeset View
Standalone View
Standalone View
kcms/componentchooser/componentchooseremail.h
Show All 10 Lines | |||||
11 | * it under the terms of the GNU General Public License version 2 as * | 11 | * it under the terms of the GNU General Public License version 2 as * | ||
12 | * published by the Free Software Foundationi * | 12 | * published by the Free Software Foundationi * | ||
13 | * * | 13 | * * | ||
14 | ***************************************************************************/ | 14 | ***************************************************************************/ | ||
15 | 15 | | |||
16 | #ifndef COMPONENTCHOOSEREMAIL_H | 16 | #ifndef COMPONENTCHOOSEREMAIL_H | ||
17 | #define COMPONENTCHOOSEREMAIL_H | 17 | #define COMPONENTCHOOSEREMAIL_H | ||
18 | 18 | | |||
19 | class KEMailSettings; | | |||
20 | | ||||
21 | #include "ui_emailclientconfig_ui.h" | | |||
22 | #include "componentchooser.h" | 19 | #include "componentchooser.h" | ||
20 | #include <QComboBox> | ||||
21 | | ||||
22 | class KEMailSettings; | ||||
23 | 23 | | |||
24 | class CfgEmailClient: public QWidget, public Ui::EmailClientConfig_UI, public CfgPlugin | 24 | class CfgEmailClient: public QComboBox, public CfgPlugin | ||
25 | { | 25 | { | ||
26 | Q_OBJECT | 26 | Q_OBJECT | ||
27 | public: | 27 | public: | ||
28 | CfgEmailClient(QWidget *parent); | 28 | CfgEmailClient(QWidget *parent); | ||
29 | ~CfgEmailClient() override; | 29 | ~CfgEmailClient() override; | ||
30 | void load(KConfig *cfg) override; | 30 | void load(KConfig *cfg) override; | ||
31 | void save(KConfig *cfg) override; | 31 | void save(KConfig *cfg) override; | ||
32 | void defaults() override; | 32 | void defaults() override; | ||
33 | bool isDefaults() const override; | 33 | bool isDefaults() const override; | ||
34 | bool hasChanged() const override; | ||||
34 | 35 | | |||
35 | private: | 36 | private: | ||
36 | KEMailSettings *pSettings; | 37 | KEMailSettings *pSettings; | ||
37 | int m_currentIndex = -1; | 38 | int m_currentIndex = -1; | ||
38 | int m_kmailIndex = -1; | 39 | int m_kmailIndex = -1; | ||
39 | 40 | | |||
40 | protected Q_SLOTS: | 41 | protected Q_SLOTS: | ||
41 | void selectEmailClient(int index); | 42 | void selectEmailClient(int index); | ||
42 | Q_SIGNALS: | 43 | Q_SIGNALS: | ||
43 | void changed(bool); | 44 | void changed(bool); | ||
44 | }; | 45 | }; | ||
45 | 46 | | |||
46 | #endif | 47 | #endif |