author | ulf69 <ulf69> | 2004-08-10 01:34:22 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-08-10 01:34:22 (UTC) |
commit | c9d570427f3d5bead7bee1301514a2d4b82836ea (patch) (unidiff) | |
tree | 8d25f388217c591b7dac1db6c26d0777e6459352 /libkdepim/kcmconfigs/kdepimconfigwidget.h | |
parent | 4f05a9fcbb9e54184aef93883886aaf865104463 (diff) | |
download | kdepimpi-c9d570427f3d5bead7bee1301514a2d4b82836ea.zip kdepimpi-c9d570427f3d5bead7bee1301514a2d4b82836ea.tar.gz kdepimpi-c9d570427f3d5bead7bee1301514a2d4b82836ea.tar.bz2 |
enhancements to configure external apps like email and phones through a
generalized interface
Diffstat (limited to 'libkdepim/kcmconfigs/kdepimconfigwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libkdepim/kcmconfigs/kdepimconfigwidget.h | 68 |
1 files changed, 61 insertions, 7 deletions
diff --git a/libkdepim/kcmconfigs/kdepimconfigwidget.h b/libkdepim/kcmconfigs/kdepimconfigwidget.h index 109a847..6e02544 100644 --- a/libkdepim/kcmconfigs/kdepimconfigwidget.h +++ b/libkdepim/kcmconfigs/kdepimconfigwidget.h | |||
@@ -11,76 +11,130 @@ | |||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | /* | 24 | /* |
25 | Enhanced Version of the file for platform independent KDE tools. | 25 | Enhanced Version of the file for platform independent KDE tools. |
26 | Copyright (c) 2004 Ulf Schenk | 26 | Copyright (c) 2004 Ulf Schenk |
27 | 27 | ||
28 | $Id$ | 28 | $Id$ |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #ifndef KDEPIMCONFIGWIDGET_H | 31 | #ifndef KDEPIMCONFIGWIDGET_H |
32 | #define KDEPIMCONFIGWIDGET_H | 32 | #define KDEPIMCONFIGWIDGET_H |
33 | 33 | ||
34 | #include <qwidget.h> | 34 | #include <qwidget.h> |
35 | #include <qmap.h> | ||
36 | |||
37 | #include "externalapphandler.h" | ||
38 | |||
35 | 39 | ||
36 | /* | 40 | /* |
37 | class QCheckBox; | 41 | class QCheckBox; |
38 | class QListViewItem; | 42 | class QListViewItem; |
39 | class QPushButton; | 43 | class QPushButton; |
40 | class KListView; | 44 | class KListView; |
41 | */ | 45 | */ |
42 | class QComboBox; | 46 | class QComboBox; |
43 | class QLineEdit; | 47 | class QLineEdit; |
44 | class KPimPrefs; | 48 | class KPimGlobalPrefs; |
49 | class QGroupBox; | ||
45 | 50 | ||
46 | class KDEPIMConfigWidget : public QWidget | 51 | class KDEPIMConfigWidget : public QWidget |
47 | { | 52 | { |
48 | Q_OBJECT | 53 | Q_OBJECT |
49 | 54 | ||
50 | public: | 55 | public: |
51 | KDEPIMConfigWidget( QWidget *parent, const char *name = 0 ); | 56 | KDEPIMConfigWidget( QWidget *parent, const char *name = 0 ); |
52 | 57 | ||
53 | void restoreSettings(KPimPrefs* prefs); | 58 | void restoreSettings(KPimGlobalPrefs* prefs); |
54 | void saveSettings(KPimPrefs* prefs); | 59 | void saveSettings(KPimGlobalPrefs* prefs); |
55 | void defaults(KPimPrefs* prefs); | 60 | void defaults(KPimGlobalPrefs* prefs); |
56 | 61 | ||
57 | signals: | 62 | signals: |
58 | void changed( bool ); | 63 | void changed( bool ); |
59 | 64 | ||
65 | |||
60 | public slots: | 66 | public slots: |
61 | void modified(); | 67 | void modified(); |
68 | void textChanged( const QString& text ); | ||
62 | 69 | ||
63 | 70 | ||
64 | 71 | ||
65 | private slots: | 72 | private slots: |
66 | // void configureExtension(); | 73 | // void configureExtension(); |
67 | // void selectionChanged( QListViewItem* ); | 74 | // void selectionChanged( QListViewItem* ); |
68 | // void itemClicked( QListViewItem* ); | 75 | // void itemClicked( QListViewItem* ); |
69 | void emailclient_changed( int newClient ); | 76 | void client_changed( int newClient ); |
77 | void externalapp_changed( int newApp ); | ||
70 | 78 | ||
71 | private: | 79 | private: |
80 | void saveEditFieldSettings(); | ||
81 | void updateClientWidgets(); | ||
82 | |||
72 | // void restoreExtensionSettings(); | 83 | // void restoreExtensionSettings(); |
73 | // void saveExtensionSettings(); | 84 | // void saveExtensionSettings(); |
74 | 85 | ||
75 | // KListView *mExtensionView; | 86 | // KListView *mExtensionView; |
76 | 87 | ||
77 | // QCheckBox *mNameParsing; | 88 | // QCheckBox *mNameParsing; |
78 | // QCheckBox *mViewsSingleClickBox; | 89 | // QCheckBox *mViewsSingleClickBox; |
79 | // QPushButton *mConfigureButton; | 90 | // QPushButton *mConfigureButton; |
80 | QComboBox* mEmailClient; | 91 | QComboBox* mExternalApps; |
81 | QLineEdit* mEmailChannel; | 92 | QGroupBox* mExternalAppGroupBox; |
93 | |||
94 | |||
95 | QComboBox* mClient; | ||
96 | QLineEdit* mChannel; | ||
97 | QLineEdit* mMessage; | ||
98 | QLineEdit* mParameters; | ||
99 | QLineEdit* mMessage2; | ||
100 | QLineEdit* mParameters2; | ||
101 | |||
102 | ExternalAppHandler::Types mCurrentApp; | ||
103 | int mCurrentClient; | ||
104 | |||
105 | |||
106 | int mEmailClient; | ||
107 | QString mEmailOtherChannel; | ||
108 | QString mEmailOtherMessage; | ||
109 | QString mEmailOtherMessageParameters; | ||
110 | QString mEmailOtherMessage2; | ||
111 | QString mEmailOtherMessageParameters2; | ||
112 | |||
113 | int mPhoneClient; | ||
114 | QString mPhoneOtherChannel; | ||
115 | QString mPhoneOtherMessage; | ||
116 | QString mPhoneOtherMessageParameters; | ||
117 | |||
118 | int mFaxClient; | ||
119 | QString mFaxOtherChannel; | ||
120 | QString mFaxOtherMessage; | ||
121 | QString mFaxOtherMessageParameters; | ||
122 | |||
123 | int mSMSClient; | ||
124 | QString mSMSOtherChannel; | ||
125 | QString mSMSOtherMessage; | ||
126 | QString mSMSOtherMessageParameters; | ||
127 | |||
128 | int mPagerClient; | ||
129 | QString mPagerOtherChannel; | ||
130 | QString mPagerOtherMessage; | ||
131 | QString mPagerOtherMessageParameters; | ||
132 | |||
133 | |||
134 | |||
135 | QMap<ExternalAppHandler::Types, QString> mExternalAppsMap; | ||
82 | 136 | ||
83 | // AddresseeWidget *mAddresseeWidget; | 137 | // AddresseeWidget *mAddresseeWidget; |
84 | }; | 138 | }; |
85 | 139 | ||
86 | #endif | 140 | #endif |