From d8b187d8760766416a9527f3e12789198b30840a Mon Sep 17 00:00:00 2001 From: ulf69 Date: Mon, 02 Aug 2004 17:47:20 +0000 Subject: added changes to support Ka/Pi resources in combination of syncprofiles. Attention: The old format is not compatible with the new. --- (limited to 'libkdepim/ksyncprofile.h') diff --git a/libkdepim/ksyncprofile.h b/libkdepim/ksyncprofile.h index 300f70f..8995def 100644 --- a/libkdepim/ksyncprofile.h +++ b/libkdepim/ksyncprofile.h @@ -37,7 +37,7 @@ class KConfig; @short Class for storing a preferences setting @author Cornelius Schumacher @see KPref - + This class represents one preferences setting as used by @ref KPrefs. Subclasses of KPrefsItem implement storage functions for a certain type of setting. Normally you don't have to use this class directly. Use the special @@ -46,15 +46,17 @@ class KConfig; */ class KSyncProfile : public QObject { public: - KSyncProfile( const char * name = 0); + KSyncProfile( const char * identifier = 0); ~KSyncProfile() ; - + KSyncProfile* clone(); void setDefault(); void readConfig(KConfig *); void writeConfig(KConfig *); - void setName( const QString& n ) {mName = n;} - QString getName( ) { return mName;} + 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; } void setPostSyncCommand( const QString& n ) {mPostSyncCommand = n;} @@ -84,6 +86,8 @@ class KSyncProfile : public QObject { QString get( ) { return ;} */ + void setName( const QString& n ) {mName = n;} + QString getName( ) { return mName;} void setShowSummaryAfterSync( bool b ) { mShowSummaryAfterSync = b;} bool getShowSummaryAfterSync( ) { return mShowSummaryAfterSync ;} void setAskForPreferences( bool b ) { mAskForPreferences= b;} @@ -106,9 +110,9 @@ class KSyncProfile : public QObject { bool getIsLocalFileSync( ) { return mIsLocalFileSync;} void setIsPhoneSync( bool b ) { mIsPhoneSync= b;} bool getIsPhoneSync( ) { return mIsPhoneSync;} - private: QString mName; + QString mIdentifier; QString mPreSyncCommand; QString mPostSyncCommand; QString mLocalTempFile; -- cgit v0.9.0.2