Changeset View
Changeset View
Standalone View
Standalone View
kcms/componentchooser/componentchooseremail.h
1 | /*************************************************************************** | 1 | /*************************************************************************** | ||
---|---|---|---|---|---|
2 | componentchooseremail.h | 2 | componentchooseremail.h | ||
3 | ------------------- | 3 | ------------------- | ||
4 | copyright : (C) 2002 by Joseph Wenninger | 4 | copyright : (C) 2002 by Joseph Wenninger | ||
5 | email : jowenn@kde.org | 5 | email : jowenn@kde.org | ||
6 | ***************************************************************************/ | 6 | ***************************************************************************/ | ||
7 | 7 | | |||
8 | /*************************************************************************** | 8 | /*************************************************************************** | ||
9 | * * | 9 | * * | ||
10 | * This program is free software; you can redistribute it and/or modify * | 10 | * This program is free software; you can redistribute it and/or modify * | ||
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 Foundation * | ||
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 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; | | |||
33 | bool isDefaults() const override; | | |||
34 | 32 | | |||
35 | private: | 33 | private: | ||
36 | KEMailSettings *pSettings; | 34 | KEMailSettings *pSettings; | ||
37 | int m_currentIndex = -1; | | |||
38 | int m_kmailIndex = -1; | | |||
39 | 35 | | |||
40 | protected Q_SLOTS: | 36 | protected Q_SLOTS: | ||
41 | void selectEmailClient(int index); | 37 | void selectEmailClient(int index); | ||
42 | Q_SIGNALS: | | |||
43 | void changed(bool); | | |||
44 | }; | 38 | }; | ||
45 | 39 | | |||
46 | #endif | 40 | #endif |