author | ulf69 <ulf69> | 2004-08-02 17:47:20 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-08-02 17:47:20 (UTC) |
commit | d8b187d8760766416a9527f3e12789198b30840a (patch) (unidiff) | |
tree | 20a6c1ea46568761e05c9bad7ea7afda503dc092 /libkdepim/ksyncprofile.h | |
parent | f6a823824e6a8be3d842e99b43dacd495bb02ba4 (diff) | |
download | kdepimpi-d8b187d8760766416a9527f3e12789198b30840a.zip kdepimpi-d8b187d8760766416a9527f3e12789198b30840a.tar.gz kdepimpi-d8b187d8760766416a9527f3e12789198b30840a.tar.bz2 |
added changes to support Ka/Pi resources in combination of
syncprofiles.
Attention: The old format is not compatible with the new.
-rw-r--r-- | libkdepim/ksyncprofile.h | 16 |
1 files changed, 10 insertions, 6 deletions
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; | |||
37 | @short Class for storing a preferences setting | 37 | @short Class for storing a preferences setting |
38 | @author Cornelius Schumacher | 38 | @author Cornelius Schumacher |
39 | @see KPref | 39 | @see KPref |
40 | 40 | ||
41 | This class represents one preferences setting as used by @ref KPrefs. | 41 | This class represents one preferences setting as used by @ref KPrefs. |
42 | Subclasses of KPrefsItem implement storage functions for a certain type of | 42 | Subclasses of KPrefsItem implement storage functions for a certain type of |
43 | setting. Normally you don't have to use this class directly. Use the special | 43 | setting. Normally you don't have to use this class directly. Use the special |
@@ -46,15 +46,17 @@ class KConfig; | |||
46 | */ | 46 | */ |
47 | class KSyncProfile : public QObject { | 47 | class KSyncProfile : public QObject { |
48 | public: | 48 | public: |
49 | KSyncProfile( const char * name = 0); | 49 | KSyncProfile( const char * identifier = 0); |
50 | ~KSyncProfile() ; | 50 | ~KSyncProfile() ; |
51 | 51 | ||
52 | KSyncProfile* clone(); | 52 | KSyncProfile* clone(); |
53 | void setDefault(); | 53 | void setDefault(); |
54 | void readConfig(KConfig *); | 54 | void readConfig(KConfig *); |
55 | void writeConfig(KConfig *); | 55 | void writeConfig(KConfig *); |
56 | void setName( const QString& n ) {mName = n;} | 56 | void deleteConfig(KConfig *); |
57 | QString getName( ) { return mName;} | 57 | |
58 | void setIdentifier( const QString& i ) {mIdentifier = i;} | ||
59 | QString getIdentifier( ) { return mIdentifier;} | ||
58 | void setPreSyncCommand( const QString& n ) {mPreSyncCommand = n;} | 60 | void setPreSyncCommand( const QString& n ) {mPreSyncCommand = n;} |
59 | QString getPreSyncCommand( ) { return mPreSyncCommand; } | 61 | QString getPreSyncCommand( ) { return mPreSyncCommand; } |
60 | void setPostSyncCommand( const QString& n ) {mPostSyncCommand = n;} | 62 | void setPostSyncCommand( const QString& n ) {mPostSyncCommand = n;} |
@@ -84,6 +86,8 @@ class KSyncProfile : public QObject { | |||
84 | QString get( ) { return ;} | 86 | QString get( ) { return ;} |
85 | */ | 87 | */ |
86 | 88 | ||
89 | void setName( const QString& n ) {mName = n;} | ||
90 | QString getName( ) { return mName;} | ||
87 | void setShowSummaryAfterSync( bool b ) { mShowSummaryAfterSync = b;} | 91 | void setShowSummaryAfterSync( bool b ) { mShowSummaryAfterSync = b;} |
88 | bool getShowSummaryAfterSync( ) { return mShowSummaryAfterSync ;} | 92 | bool getShowSummaryAfterSync( ) { return mShowSummaryAfterSync ;} |
89 | void setAskForPreferences( bool b ) { mAskForPreferences= b;} | 93 | void setAskForPreferences( bool b ) { mAskForPreferences= b;} |
@@ -106,9 +110,9 @@ class KSyncProfile : public QObject { | |||
106 | bool getIsLocalFileSync( ) { return mIsLocalFileSync;} | 110 | bool getIsLocalFileSync( ) { return mIsLocalFileSync;} |
107 | void setIsPhoneSync( bool b ) { mIsPhoneSync= b;} | 111 | void setIsPhoneSync( bool b ) { mIsPhoneSync= b;} |
108 | bool getIsPhoneSync( ) { return mIsPhoneSync;} | 112 | bool getIsPhoneSync( ) { return mIsPhoneSync;} |
109 | |||
110 | private: | 113 | private: |
111 | QString mName; | 114 | QString mName; |
115 | QString mIdentifier; | ||
112 | QString mPreSyncCommand; | 116 | QString mPreSyncCommand; |
113 | QString mPostSyncCommand; | 117 | QString mPostSyncCommand; |
114 | QString mLocalTempFile; | 118 | QString mLocalTempFile; |