summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncprofile.h
Unidiff
Diffstat (limited to 'libkdepim/ksyncprofile.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libkdepim/ksyncprofile.h16
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
@@ -28,42 +28,44 @@
28#include <qstring.h> 28#include <qstring.h>
29 29
30#include <libkcal/syncdefines.h> 30#include <libkcal/syncdefines.h>
31 31
32 32
33 33
34class KConfig; 34class KConfig;
35 35
36/** 36/**
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
44 addItem() functions of KPrefs instead. If you subclass this class you will 44 addItem() functions of KPrefs instead. If you subclass this class you will
45 have to register instances with the function KPrefs::addItem(). 45 have to register instances with the function KPrefs::addItem().
46*/ 46*/
47class KSyncProfile : public QObject { 47class 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;}
61 QString getPostSyncCommand( ) { return mPostSyncCommand;} 63 QString getPostSyncCommand( ) { return mPostSyncCommand;}
62 void setLocalTempFile( const QString& n ) { mLocalTempFile= n;} 64 void setLocalTempFile( const QString& n ) { mLocalTempFile= n;}
63 QString getLocalTempFile( ) { return mLocalTempFile;} 65 QString getLocalTempFile( ) { return mLocalTempFile;}
64 void setRemoteFileName( const QString& n ) { mRemoteFileName = n;} 66 void setRemoteFileName( const QString& n ) { mRemoteFileName = n;}
65 QString getRemoteFileName( ) { return mRemoteFileName;} 67 QString getRemoteFileName( ) { return mRemoteFileName;}
66 68
67 void setPreSyncCommandAB( const QString& n ) {mPreSyncCommandAB = n;} 69 void setPreSyncCommandAB( const QString& n ) {mPreSyncCommandAB = n;}
68 QString getPreSyncCommandAB( ) { return mPreSyncCommandAB; } 70 QString getPreSyncCommandAB( ) { return mPreSyncCommandAB; }
69 void setPostSyncCommandAB( const QString& n ) {mPostSyncCommandAB = n;} 71 void setPostSyncCommandAB( const QString& n ) {mPostSyncCommandAB = n;}
@@ -75,49 +77,51 @@ class KSyncProfile : public QObject {
75 77
76 void setPhoneDevice( const QString& n ) { mPhoneDevice = n;} 78 void setPhoneDevice( const QString& n ) { mPhoneDevice = n;}
77 QString getPhoneDevice( ) { return mPhoneDevice;} 79 QString getPhoneDevice( ) { return mPhoneDevice;}
78 void setPhoneConnection( const QString& n ) { mPhoneConnection = n;} 80 void setPhoneConnection( const QString& n ) { mPhoneConnection = n;}
79 QString getPhoneConnection( ) { return mPhoneConnection;} 81 QString getPhoneConnection( ) { return mPhoneConnection;}
80 void setPhoneModel( const QString& n ) { mPhoneModel = n;} 82 void setPhoneModel( const QString& n ) { mPhoneModel = n;}
81 QString getPhoneModel( ) { return mPhoneModel;} 83 QString getPhoneModel( ) { return mPhoneModel;}
82 /* 84 /*
83 void set( const QString& n ) { = n;} 85 void set( const QString& n ) { = n;}
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;}
90 bool getAskForPreferences( ) { return mAskForPreferences;} 94 bool getAskForPreferences( ) { return mAskForPreferences;}
91 void setWriteBackExisting( bool b ) { mWriteBackExisting = b;} 95 void setWriteBackExisting( bool b ) { mWriteBackExisting = b;}
92 bool getWriteBackExisting( ) { return mWriteBackExisting;} 96 bool getWriteBackExisting( ) { return mWriteBackExisting;}
93 void setWriteBackFuture( bool b ) { mWriteBackFuture = b;} 97 void setWriteBackFuture( bool b ) { mWriteBackFuture = b;}
94 bool getWriteBackFuture( ) { return mWriteBackFuture;} 98 bool getWriteBackFuture( ) { return mWriteBackFuture;}
95 void setWriteBackFile( bool b ) { mWriteBackFile= b;} 99 void setWriteBackFile( bool b ) { mWriteBackFile= b;}
96 bool getWriteBackFile( ) { return mWriteBackFile;} 100 bool getWriteBackFile( ) { return mWriteBackFile;}
97 void setIncludeInRingSync( bool b ) {mIncludeInRingSync = b;} 101 void setIncludeInRingSync( bool b ) {mIncludeInRingSync = b;}
98 bool getIncludeInRingSync( ) { return mIncludeInRingSync;} 102 bool getIncludeInRingSync( ) { return mIncludeInRingSync;}
99 void setIncludeInRingSyncAB( bool b ) {mIncludeInRingSyncAB = b;} 103 void setIncludeInRingSyncAB( bool b ) {mIncludeInRingSyncAB = b;}
100 bool getIncludeInRingSyncAB( ) { return mIncludeInRingSyncAB;} 104 bool getIncludeInRingSyncAB( ) { return mIncludeInRingSyncAB;}
101 void setSyncPrefs( int n ) { mSyncPrefs= n;} 105 void setSyncPrefs( int n ) { mSyncPrefs= n;}
102 int getSyncPrefs( ) { return mSyncPrefs;} 106 int getSyncPrefs( ) { return mSyncPrefs;}
103 void setWriteBackFutureWeeks( int n ) { mWriteBackFutureWeeks= n;} 107 void setWriteBackFutureWeeks( int n ) { mWriteBackFutureWeeks= n;}
104 int getWriteBackFutureWeeks( ) { return mWriteBackFutureWeeks;} 108 int getWriteBackFutureWeeks( ) { return mWriteBackFutureWeeks;}
105 void setIsLocalFileSync( bool b ) { mIsLocalFileSync= b;} 109 void setIsLocalFileSync( bool b ) { mIsLocalFileSync= b;}
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;
115 QString mRemoteFileName; 119 QString mRemoteFileName;
116 QString mPreSyncCommandAB; 120 QString mPreSyncCommandAB;
117 QString mPostSyncCommandAB; 121 QString mPostSyncCommandAB;
118 QString mLocalTempFileAB; 122 QString mLocalTempFileAB;
119 QString mRemoteFileNameAB; 123 QString mRemoteFileNameAB;
120 124
121 QString mPhoneDevice; 125 QString mPhoneDevice;
122 QString mPhoneConnection; 126 QString mPhoneConnection;
123 QString mPhoneModel; 127 QString mPhoneModel;