summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/kpimprefs.cpp4
-rw-r--r--libkdepim/kpimprefs.h14
-rw-r--r--libkdepim/libkdepim.pro12
-rw-r--r--libkdepim/libkdepimE.pro13
4 files changed, 33 insertions, 10 deletions
diff --git a/libkdepim/kpimprefs.cpp b/libkdepim/kpimprefs.cpp
index ce4c540..15531c7 100644
--- a/libkdepim/kpimprefs.cpp
+++ b/libkdepim/kpimprefs.cpp
@@ -31,6 +31,10 @@
KPimPrefs::KPimPrefs( const QString &name ) :
KPrefs( name )
{
+ KPrefs::setCurrentGroup( "ExternalApplications" );
+ addItemInt( "EmailChannelType", &mEmailClient, OMPI );
+ addItemString( "EmailChannelOther", &mEmailChannel, "" );
+
}
KPimPrefs::~KPimPrefs()
diff --git a/libkdepim/kpimprefs.h b/libkdepim/kpimprefs.h
index 05a564c..5186315 100644
--- a/libkdepim/kpimprefs.h
+++ b/libkdepim/kpimprefs.h
@@ -30,6 +30,7 @@
class KPimPrefs : public KPrefs
{
public:
+
KPimPrefs( const QString &name = QString::null );
virtual ~KPimPrefs();
@@ -43,9 +44,22 @@ class KPimPrefs : public KPrefs
/** Write preferences to config file */
void usrWriteConfig();
+ enum EMailClients {
+ OMPI = 0,
+ QTOPIA = 1,
+ OPIE = 2,
+ OTHER = 3
+ };
+
+
public:
QStringList mCustomCategories;
+ int mEmailClient;
+ QString mEmailChannel;
+
+
+
protected:
virtual void setCategoryDefaults() = 0;
};
diff --git a/libkdepim/libkdepim.pro b/libkdepim/libkdepim.pro
index a2fae0b..902f049 100644
--- a/libkdepim/libkdepim.pro
+++ b/libkdepim/libkdepim.pro
@@ -2,7 +2,7 @@ TEMPLATE = lib
CONFIG = qt warn_on
DEFINES +=KORG_NOKABC
TARGET = microkdepim
-INCLUDEPATH += ../microkde ../libkabcwrap ../microkde/kdecore . ..
+INCLUDEPATH += ../microkde ../libkabcwrap ../microkde/kdecore ../microkde/kdeui . ..
DESTDIR=../bin
DEFINES += DESKTOP_VERSION
@@ -28,11 +28,12 @@ HEADERS = \
kinputdialog.h \
kincidenceformatter.h \
kpimprefs.h \
- kprefs.h \
kprefsdialog.h \
addresseeview.h \
ksyncprofile.h \
- ksyncprefsdialog.h
+ ksyncprefsdialog.h \
+ kcmconfigs/kcmkdepimconfig.h \
+ kcmconfigs/kdepimconfigwidget.h
SOURCES = \
categoryeditdialog.cpp \
@@ -44,10 +45,11 @@ SOURCES = \
kinputdialog.cpp \
kincidenceformatter.cpp \
kpimprefs.cpp \
- kprefs.cpp \
kprefsdialog.cpp \
addresseeview.cpp \
ksyncprofile.cpp \
- ksyncprefsdialog.cpp
+ ksyncprefsdialog.cpp \
+ kcmconfigs/kcmkdepimconfig.cpp \
+ kcmconfigs/kdepimconfigwidget.cpp
diff --git a/libkdepim/libkdepimE.pro b/libkdepim/libkdepimE.pro
index 36a789d..fc8abe1 100644
--- a/libkdepim/libkdepimE.pro
+++ b/libkdepim/libkdepimE.pro
@@ -1,7 +1,7 @@
TEMPLATE = lib
CONFIG += qt warn_on
TARGET = microkdepim
-INCLUDEPATH += ../microkde ../qtcompat ../libkabcwrap ../microkde/kdecore $(QPEDIR)/include
+INCLUDEPATH += ../microkde ../qtcompat ../libkabcwrap ../microkde/kdecore ../microkde/kdeui $(QPEDIR)/include
INCLUDEPATH += . ..
LIBS += -lmicrokde
LIBS += -L$(QPEDIR)/lib
@@ -22,11 +22,13 @@ HEADERS = \
kinputdialog.h \
kincidenceformatter.h \
kpimprefs.h \
- kprefs.h \
kprefsdialog.h \
addresseeview.h \
ksyncprofile.h \
- ksyncprefsdialog.h
+ ksyncprefsdialog.h \
+ kcmconfigs/kcmkdepimconfig.h \
+ kcmconfigs/kdepimconfigwidget.h
+
SOURCES = \
@@ -39,8 +41,9 @@ SOURCES = \
kdatepicker.cpp \
kincidenceformatter.cpp \
kpimprefs.cpp \
- kprefs.cpp \
kprefsdialog.cpp \
addresseeview.cpp \
ksyncprofile.cpp \
- ksyncprefsdialog.cpp
+ ksyncprefsdialog.cpp \
+ kcmconfigs/kcmkdepimconfig.cpp \
+ kcmconfigs/kdepimconfigwidget.cpp