summaryrefslogtreecommitdiffabout
path: root/libkdepim
authorulf69 <ulf69>2004-08-06 20:30:16 (UTC)
committer ulf69 <ulf69>2004-08-06 20:30:16 (UTC)
commit26697d027609149853b984874190e2624749b7e3 (patch) (side-by-side diff)
tree84b4392b20d1572645cb3d9ff5b6057da52ce970 /libkdepim
parent38d84409bcca83516eb816461c8b79b4cf6cbf57 (diff)
downloadkdepimpi-26697d027609149853b984874190e2624749b7e3.zip
kdepimpi-26697d027609149853b984874190e2624749b7e3.tar.gz
kdepimpi-26697d027609149853b984874190e2624749b7e3.tar.bz2
moved pim related parameters into kpimprefs. (email, phone parameters)
Diffstat (limited to 'libkdepim') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/kpimprefs.cpp4
-rw-r--r--libkdepim/kpimprefs.h18
-rw-r--r--libkdepim/libkdepim.pro12
-rw-r--r--libkdepim/libkdepimE.pro13
4 files changed, 35 insertions, 12 deletions
diff --git a/libkdepim/kpimprefs.cpp b/libkdepim/kpimprefs.cpp
index ce4c540..15531c7 100644
--- a/libkdepim/kpimprefs.cpp
+++ b/libkdepim/kpimprefs.cpp
@@ -32,4 +32,8 @@ KPimPrefs::KPimPrefs( const QString &name ) :
KPrefs( name )
{
+ KPrefs::setCurrentGroup( "ExternalApplications" );
+ addItemInt( "EmailChannelType", &mEmailClient, OMPI );
+ addItemString( "EmailChannelOther", &mEmailChannel, "" );
+
}
diff --git a/libkdepim/kpimprefs.h b/libkdepim/kpimprefs.h
index 05a564c..5186315 100644
--- a/libkdepim/kpimprefs.h
+++ b/libkdepim/kpimprefs.h
@@ -31,4 +31,5 @@ class KPimPrefs : public KPrefs
{
public:
+
KPimPrefs( const QString &name = QString::null );
@@ -37,5 +38,5 @@ class KPimPrefs : public KPrefs
/** Set preferences to default values */
void usrSetDefaults();
-
+
/** Read preferences from config file */
void usrReadConfig();
@@ -44,7 +45,20 @@ class KPimPrefs : public KPrefs
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
@@ -3,5 +3,5 @@ CONFIG = qt warn_on
DEFINES +=KORG_NOKABC
TARGET = microkdepim
-INCLUDEPATH += ../microkde ../libkabcwrap ../microkde/kdecore . ..
+INCLUDEPATH += ../microkde ../libkabcwrap ../microkde/kdecore ../microkde/kdeui . ..
DESTDIR=../bin
@@ -29,9 +29,10 @@ HEADERS = \
kincidenceformatter.h \
kpimprefs.h \
- kprefs.h \
kprefsdialog.h \
addresseeview.h \
ksyncprofile.h \
- ksyncprefsdialog.h
+ ksyncprefsdialog.h \
+ kcmconfigs/kcmkdepimconfig.h \
+ kcmconfigs/kdepimconfigwidget.h
SOURCES = \
@@ -45,9 +46,10 @@ SOURCES = \
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
@@ -2,5 +2,5 @@ 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
@@ -23,9 +23,11 @@ HEADERS = \
kincidenceformatter.h \
kpimprefs.h \
- kprefs.h \
kprefsdialog.h \
addresseeview.h \
ksyncprofile.h \
- ksyncprefsdialog.h
+ ksyncprefsdialog.h \
+ kcmconfigs/kcmkdepimconfig.h \
+ kcmconfigs/kdepimconfigwidget.h
+
@@ -40,7 +42,8 @@ SOURCES = \
kincidenceformatter.cpp \
kpimprefs.cpp \
- kprefs.cpp \
kprefsdialog.cpp \
addresseeview.cpp \
ksyncprofile.cpp \
- ksyncprefsdialog.cpp
+ ksyncprefsdialog.cpp \
+ kcmconfigs/kcmkdepimconfig.cpp \
+ kcmconfigs/kdepimconfigwidget.cpp