summaryrefslogtreecommitdiffabout
path: root/libkdepim
authorzautrix <zautrix>2004-08-07 16:10:09 (UTC)
committer zautrix <zautrix>2004-08-07 16:10:09 (UTC)
commitef8a09ce74ad3f0a51484d03fdf009bd5b3677bf (patch) (side-by-side diff)
tree7ff6c37e8ad6b7f1dbd672d28de6fcea916caf8f /libkdepim
parenta9a774e19c02f03de948b6064804b913abd4f08b (diff)
downloadkdepimpi-ef8a09ce74ad3f0a51484d03fdf009bd5b3677bf.zip
kdepimpi-ef8a09ce74ad3f0a51484d03fdf009bd5b3677bf.tar.gz
kdepimpi-ef8a09ce74ad3f0a51484d03fdf009bd5b3677bf.tar.bz2
Fix of the syncprofiles
Diffstat (limited to 'libkdepim') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncprofile.cpp15
-rw-r--r--libkdepim/ksyncprofile.h5
2 files changed, 6 insertions, 14 deletions
diff --git a/libkdepim/ksyncprofile.cpp b/libkdepim/ksyncprofile.cpp
index 15dc152..e7c35fb 100644
--- a/libkdepim/ksyncprofile.cpp
+++ b/libkdepim/ksyncprofile.cpp
@@ -31,11 +31,6 @@
-KSyncProfile::KSyncProfile( const char * identifier): QObject (0, identifier )
+KSyncProfile::KSyncProfile(): QObject ()
{
- setIdentifier( identifier );
-
- if (getIdentifier().isEmpty())
- setIdentifier( "noID" );
-
setDefault();
}
@@ -69,5 +64,5 @@ KSyncProfile* KSyncProfile::clone()
myClone->setIsPhoneSync( mIsPhoneSync );
myClone->setName( "noName" );
- myClone->setIdentifier( "noID" );
+ //myClone->setIdentifier( "noID" );
return myClone;
}
@@ -105,5 +100,5 @@ void KSyncProfile::readConfig(KConfig *config )
{
- config->setGroup("SyncProfile_" + mIdentifier);
+ config->setGroup( mName );
mName = config->readEntry( "Name", mName );
@@ -141,10 +136,10 @@ void KSyncProfile::readConfig(KConfig *config )
void KSyncProfile::deleteConfig(KConfig *config )
{
- config->deleteGroup( "SyncProfile_" + mIdentifier );
+ config->deleteGroup( mName );
}
void KSyncProfile::writeConfig( KConfig * config )
{
- config->setGroup("SyncProfile_" + mIdentifier);
+ config->setGroup(mName);
config->writeEntry( "Name", mName );
diff --git a/libkdepim/ksyncprofile.h b/libkdepim/ksyncprofile.h
index 8995def..a0cfb71 100644
--- a/libkdepim/ksyncprofile.h
+++ b/libkdepim/ksyncprofile.h
@@ -47,5 +47,5 @@ class KConfig;
class KSyncProfile : public QObject {
public:
- KSyncProfile( const char * identifier = 0);
+ KSyncProfile();
~KSyncProfile() ;
@@ -56,6 +56,4 @@ class KSyncProfile : public QObject {
void deleteConfig(KConfig *);
- void setIdentifier( const QString& i ) {mIdentifier = i;}
- QString getIdentifier( ) { return mIdentifier;}
void setPreSyncCommand( const QString& n ) {mPreSyncCommand = n;}
QString getPreSyncCommand( ) { return mPreSyncCommand; }
@@ -113,5 +111,4 @@ class KSyncProfile : public QObject {
private:
QString mName;
- QString mIdentifier;
QString mPreSyncCommand;
QString mPostSyncCommand;