summaryrefslogtreecommitdiffabout
path: root/libkdepim/kcmconfigs/kdepimconfigwidget.h
Side-by-side diff
Diffstat (limited to 'libkdepim/kcmconfigs/kdepimconfigwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/kcmconfigs/kdepimconfigwidget.h68
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
@@ -32,6 +32,10 @@ $Id$
#define KDEPIMCONFIGWIDGET_H
#include <qwidget.h>
+#include <qmap.h>
+
+#include "externalapphandler.h"
+
/*
class QCheckBox;
@@ -41,7 +45,8 @@ class KListView;
*/
class QComboBox;
class QLineEdit;
-class KPimPrefs;
+class KPimGlobalPrefs;
+class QGroupBox;
class KDEPIMConfigWidget : public QWidget
{
@@ -50,15 +55,17 @@ class KDEPIMConfigWidget : public QWidget
public:
KDEPIMConfigWidget( QWidget *parent, const char *name = 0 );
- void restoreSettings(KPimPrefs* prefs);
- void saveSettings(KPimPrefs* prefs);
- void defaults(KPimPrefs* prefs);
+ void restoreSettings(KPimGlobalPrefs* prefs);
+ void saveSettings(KPimGlobalPrefs* prefs);
+ void defaults(KPimGlobalPrefs* prefs);
signals:
void changed( bool );
+
public slots:
void modified();
+ void textChanged( const QString& text );
@@ -66,9 +73,13 @@ class KDEPIMConfigWidget : public QWidget
// void configureExtension();
// void selectionChanged( QListViewItem* );
// void itemClicked( QListViewItem* );
- void emailclient_changed( int newClient );
+ void client_changed( int newClient );
+ void externalapp_changed( int newApp );
private:
+ void saveEditFieldSettings();
+ void updateClientWidgets();
+
// void restoreExtensionSettings();
// void saveExtensionSettings();
@@ -77,8 +88,51 @@ class KDEPIMConfigWidget : public QWidget
// QCheckBox *mNameParsing;
// QCheckBox *mViewsSingleClickBox;
// QPushButton *mConfigureButton;
- QComboBox* mEmailClient;
- QLineEdit* mEmailChannel;
+ QComboBox* mExternalApps;
+ QGroupBox* mExternalAppGroupBox;
+
+
+ QComboBox* mClient;
+ QLineEdit* mChannel;
+ QLineEdit* mMessage;
+ QLineEdit* mParameters;
+ QLineEdit* mMessage2;
+ QLineEdit* mParameters2;
+
+ ExternalAppHandler::Types mCurrentApp;
+ int mCurrentClient;
+
+
+ int mEmailClient;
+ QString mEmailOtherChannel;
+ QString mEmailOtherMessage;
+ QString mEmailOtherMessageParameters;
+ QString mEmailOtherMessage2;
+ QString mEmailOtherMessageParameters2;
+
+ int mPhoneClient;
+ QString mPhoneOtherChannel;
+ QString mPhoneOtherMessage;
+ QString mPhoneOtherMessageParameters;
+
+ int mFaxClient;
+ QString mFaxOtherChannel;
+ QString mFaxOtherMessage;
+ QString mFaxOtherMessageParameters;
+
+ int mSMSClient;
+ QString mSMSOtherChannel;
+ QString mSMSOtherMessage;
+ QString mSMSOtherMessageParameters;
+
+ int mPagerClient;
+ QString mPagerOtherChannel;
+ QString mPagerOtherMessage;
+ QString mPagerOtherMessageParameters;
+
+
+
+ QMap<ExternalAppHandler::Types, QString> mExternalAppsMap;
// AddresseeWidget *mAddresseeWidget;
};