-rw-r--r-- | libkdepim/ksyncprofile.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libkdepim/ksyncprofile.h b/libkdepim/ksyncprofile.h index e970b50..aad63d3 100644 --- a/libkdepim/ksyncprofile.h +++ b/libkdepim/ksyncprofile.h | |||
@@ -11,181 +11,195 @@ | |||
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | #ifndef _KSYNCPROFILE_H | 20 | #ifndef _KSYNCPROFILE_H |
21 | #define _KSYNCPROFILE_H | 21 | #define _KSYNCPROFILE_H |
22 | 22 | ||
23 | #include <qptrlist.h> | 23 | #include <qptrlist.h> |
24 | #include <qcolor.h> | 24 | #include <qcolor.h> |
25 | #include <qfont.h> | 25 | #include <qfont.h> |
26 | #include <qstringlist.h> | 26 | #include <qstringlist.h> |
27 | #include <qobject.h> | 27 | #include <qobject.h> |
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 | ||
34 | class KConfig; | 34 | class KConfig; |
35 | 35 | ||
36 | 36 | ||
37 | class KSyncProfile : public QObject { | 37 | class KSyncProfile : public QObject { |
38 | public: | 38 | public: |
39 | KSyncProfile(); | 39 | KSyncProfile(); |
40 | ~KSyncProfile() ; | 40 | ~KSyncProfile() ; |
41 | 41 | ||
42 | KSyncProfile* clone(); | 42 | KSyncProfile* clone(); |
43 | void setDefault(); | 43 | void setDefault(); |
44 | void readConfig(KConfig *); | 44 | void readConfig(KConfig *); |
45 | void writeConfig(KConfig *); | 45 | void writeConfig(KConfig *); |
46 | void deleteConfig(KConfig *); | 46 | void deleteConfig(KConfig *); |
47 | 47 | ||
48 | void setRemotePw( const QString& n ) {mRemotePw = n;} | 48 | void setRemotePw( const QString& n ) {mRemotePw = n;} |
49 | QString getRemotePw( ) { return mRemotePw; } | 49 | QString getRemotePw( ) { return mRemotePw; } |
50 | void setRemotePwAB( const QString& n ) {mRemotePwAB = n;} | 50 | void setRemotePwAB( const QString& n ) {mRemotePwAB = n;} |
51 | QString getRemotePwAB( ) { return mRemotePwAB; } | 51 | QString getRemotePwAB( ) { return mRemotePwAB; } |
52 | void setRemotePwPWM( const QString& n ) {mRemotePwPWM = n;} | 52 | void setRemotePwPWM( const QString& n ) {mRemotePwPWM = n;} |
53 | QString getRemotePwPWM( ) { return mRemotePwPWM; } | 53 | QString getRemotePwPWM( ) { return mRemotePwPWM; } |
54 | 54 | ||
55 | void setRemoteIP( const QString& n ) {mRemoteIP = n;} | 55 | void setRemoteIP( const QString& n ) {mRemoteIP = n;} |
56 | QString getRemoteIP( ) { return mRemoteIP; } | 56 | QString getRemoteIP( ) { return mRemoteIP; } |
57 | void setRemoteIPAB( const QString& n ) {mRemoteIPAB = n;} | 57 | void setRemoteIPAB( const QString& n ) {mRemoteIPAB = n;} |
58 | QString getRemoteIPAB( ) { return mRemoteIPAB; } | 58 | QString getRemoteIPAB( ) { return mRemoteIPAB; } |
59 | void setRemoteIPPWM( const QString& n ) {mRemoteIPPWM = n;} | 59 | void setRemoteIPPWM( const QString& n ) {mRemoteIPPWM = n;} |
60 | QString getRemoteIPPWM( ) { return mRemoteIPPWM; } | 60 | QString getRemoteIPPWM( ) { return mRemoteIPPWM; } |
61 | 61 | ||
62 | void setRemotePort( const QString& n ) {mRemotePort = n;} | 62 | void setRemotePort( const QString& n ) {mRemotePort = n;} |
63 | QString getRemotePort( ) { return mRemotePort; } | 63 | QString getRemotePort( ) { return mRemotePort; } |
64 | void setRemotePortAB( const QString& n ) {mRemotePortAB = n;} | 64 | void setRemotePortAB( const QString& n ) {mRemotePortAB = n;} |
65 | QString getRemotePortAB( ) { return mRemotePortAB; } | 65 | QString getRemotePortAB( ) { return mRemotePortAB; } |
66 | void setRemotePortPWM( const QString& n ) {mRemotePortPWM = n;} | 66 | void setRemotePortPWM( const QString& n ) {mRemotePortPWM = n;} |
67 | QString getRemotePortPWM( ) { return mRemotePortPWM; } | 67 | QString getRemotePortPWM( ) { return mRemotePortPWM; } |
68 | 68 | ||
69 | void setPreSyncCommand( const QString& n ) {mPreSyncCommand = n;} | 69 | void setPreSyncCommand( const QString& n ) {mPreSyncCommand = n;} |
70 | QString getPreSyncCommand( ) { return mPreSyncCommand; } | 70 | QString getPreSyncCommand( ) { return mPreSyncCommand; } |
71 | void setPostSyncCommand( const QString& n ) {mPostSyncCommand = n;} | 71 | void setPostSyncCommand( const QString& n ) {mPostSyncCommand = n;} |
72 | QString getPostSyncCommand( ) { return mPostSyncCommand;} | 72 | QString getPostSyncCommand( ) { return mPostSyncCommand;} |
73 | void setLocalTempFile( const QString& n ) { mLocalTempFile= n;} | 73 | void setLocalTempFile( const QString& n ) { mLocalTempFile= n;} |
74 | QString getLocalTempFile( ) { return mLocalTempFile;} | 74 | QString getLocalTempFile( ) { return mLocalTempFile;} |
75 | void setRemoteFileName( const QString& n ) { mRemoteFileName = n;} | 75 | void setRemoteFileName( const QString& n ) { mRemoteFileName = n;} |
76 | QString getRemoteFileName( ) { return mRemoteFileName;} | 76 | QString getRemoteFileName( ) { return mRemoteFileName;} |
77 | 77 | ||
78 | void setPreSyncCommandAB( const QString& n ) {mPreSyncCommandAB = n;} | 78 | void setPreSyncCommandAB( const QString& n ) {mPreSyncCommandAB = n;} |
79 | QString getPreSyncCommandAB( ) { return mPreSyncCommandAB; } | 79 | QString getPreSyncCommandAB( ) { return mPreSyncCommandAB; } |
80 | void setPostSyncCommandAB( const QString& n ) {mPostSyncCommandAB = n;} | 80 | void setPostSyncCommandAB( const QString& n ) {mPostSyncCommandAB = n;} |
81 | QString getPostSyncCommandAB( ) { return mPostSyncCommandAB;} | 81 | QString getPostSyncCommandAB( ) { return mPostSyncCommandAB;} |
82 | void setLocalTempFileAB( const QString& n ) { mLocalTempFileAB= n;} | 82 | void setLocalTempFileAB( const QString& n ) { mLocalTempFileAB= n;} |
83 | QString getLocalTempFileAB( ) { return mLocalTempFileAB;} | 83 | QString getLocalTempFileAB( ) { return mLocalTempFileAB;} |
84 | void setRemoteFileNameAB( const QString& n ) { mRemoteFileNameAB = n;} | 84 | void setRemoteFileNameAB( const QString& n ) { mRemoteFileNameAB = n;} |
85 | QString getRemoteFileNameAB( ) { return mRemoteFileNameAB;} | 85 | QString getRemoteFileNameAB( ) { return mRemoteFileNameAB;} |
86 | 86 | ||
87 | void setPreSyncCommandPWM( const QString& n ) {mPreSyncCommandPWM = n;} | 87 | void setPreSyncCommandPWM( const QString& n ) {mPreSyncCommandPWM = n;} |
88 | QString getPreSyncCommandPWM( ) { return mPreSyncCommandPWM; } | 88 | QString getPreSyncCommandPWM( ) { return mPreSyncCommandPWM; } |
89 | void setPostSyncCommandPWM( const QString& n ) {mPostSyncCommandPWM = n;} | 89 | void setPostSyncCommandPWM( const QString& n ) {mPostSyncCommandPWM = n;} |
90 | QString getPostSyncCommandPWM( ) { return mPostSyncCommandPWM;} | 90 | QString getPostSyncCommandPWM( ) { return mPostSyncCommandPWM;} |
91 | void setLocalTempFilePWM( const QString& n ) { mLocalTempFilePWM= n;} | 91 | void setLocalTempFilePWM( const QString& n ) { mLocalTempFilePWM= n;} |
92 | QString getLocalTempFilePWM( ) { return mLocalTempFilePWM;} | 92 | QString getLocalTempFilePWM( ) { return mLocalTempFilePWM;} |
93 | void setRemoteFileNamePWM( const QString& n ) { mRemoteFileNamePWM = n;} | 93 | void setRemoteFileNamePWM( const QString& n ) { mRemoteFileNamePWM = n;} |
94 | QString getRemoteFileNamePWM( ) { return mRemoteFileNamePWM;} | 94 | QString getRemoteFileNamePWM( ) { return mRemoteFileNamePWM;} |
95 | 95 | ||
96 | void setPhoneDevice( const QString& n ) { mPhoneDevice = n;} | 96 | void setPhoneDevice( const QString& n ) { mPhoneDevice = n;} |
97 | QString getPhoneDevice( ) { return mPhoneDevice;} | 97 | QString getPhoneDevice( ) { return mPhoneDevice;} |
98 | void setPhoneConnection( const QString& n ) { mPhoneConnection = n;} | 98 | void setPhoneConnection( const QString& n ) { mPhoneConnection = n;} |
99 | QString getPhoneConnection( ) { return mPhoneConnection;} | 99 | QString getPhoneConnection( ) { return mPhoneConnection;} |
100 | void setPhoneModel( const QString& n ) { mPhoneModel = n;} | 100 | void setPhoneModel( const QString& n ) { mPhoneModel = n;} |
101 | QString getPhoneModel( ) { return mPhoneModel;} | 101 | QString getPhoneModel( ) { return mPhoneModel;} |
102 | /* | 102 | /* |
103 | void set( const QString& n ) { = n;} | 103 | void set( const QString& n ) { = n;} |
104 | QString get( ) { return ;} | 104 | QString get( ) { return ;} |
105 | */ | 105 | */ |
106 | 106 | ||
107 | void setFilterInCal (const QString& n ){ mFilterInCal = n;} | ||
108 | void setFilterOutCal (const QString& n ){ mFilterOutCal = n;} | ||
109 | void setFilterInAB (const QString& n ){ mFilterInAB = n;} | ||
110 | void setFilterOutAB (const QString& n ){ mFilterOutAB = n;} | ||
111 | QString getFilterInCal () { return mFilterInCal ;} | ||
112 | QString getFilterOutCal () { return mFilterOutCal ;} | ||
113 | QString getFilterInAB () { return mFilterInAB ;} | ||
114 | QString getFilterOutAB () { return mFilterOutAB ;} | ||
115 | |||
107 | void setName( const QString& n ) {mName = n;} | 116 | void setName( const QString& n ) {mName = n;} |
108 | QString getName( ) { return mName;} | 117 | QString getName( ) { return mName;} |
109 | void setShowSummaryAfterSync( bool b ) { mShowSummaryAfterSync = b;} | 118 | void setShowSummaryAfterSync( bool b ) { mShowSummaryAfterSync = b;} |
110 | bool getShowSummaryAfterSync( ) { return mShowSummaryAfterSync ;} | 119 | bool getShowSummaryAfterSync( ) { return mShowSummaryAfterSync ;} |
111 | void setAskForPreferences( bool b ) { mAskForPreferences= b;} | 120 | void setAskForPreferences( bool b ) { mAskForPreferences= b;} |
112 | bool getAskForPreferences( ) { return mAskForPreferences;} | 121 | bool getAskForPreferences( ) { return mAskForPreferences;} |
113 | void setWriteBackExisting( bool b ) { mWriteBackExisting = b;} | 122 | void setWriteBackExisting( bool b ) { mWriteBackExisting = b;} |
114 | bool getWriteBackExisting( ) { return mWriteBackExisting;} | 123 | bool getWriteBackExisting( ) { return mWriteBackExisting;} |
115 | void setWriteBackFuture( bool b ) { mWriteBackFuture = b;} | 124 | void setWriteBackFuture( bool b ) { mWriteBackFuture = b;} |
116 | bool getWriteBackFuture( ) { return mWriteBackFuture;} | 125 | bool getWriteBackFuture( ) { return mWriteBackFuture;} |
117 | void setWriteBackFile( bool b ) { mWriteBackFile= b;} | 126 | void setWriteBackFile( bool b ) { mWriteBackFile= b;} |
118 | bool getWriteBackFile( ) { return mWriteBackFile;} | 127 | bool getWriteBackFile( ) { return mWriteBackFile;} |
119 | void setWriteContactToSIM( bool b ) { mWriteContactToSIM= b;} | 128 | void setWriteContactToSIM( bool b ) { mWriteContactToSIM= b;} |
120 | bool getWriteContactToSIM( ) { return mWriteContactToSIM;} | 129 | bool getWriteContactToSIM( ) { return mWriteContactToSIM;} |
121 | void setIncludeInRingSync( bool b ) {mIncludeInRingSync = b;} | 130 | void setIncludeInRingSync( bool b ) {mIncludeInRingSync = b;} |
122 | bool getIncludeInRingSync( ) { return mIncludeInRingSync;} | 131 | bool getIncludeInRingSync( ) { return mIncludeInRingSync;} |
123 | void setIncludeInRingSyncAB( bool b ) {mIncludeInRingSyncAB = b;} | 132 | void setIncludeInRingSyncAB( bool b ) {mIncludeInRingSyncAB = b;} |
124 | bool getIncludeInRingSyncAB( ) { return mIncludeInRingSyncAB;} | 133 | bool getIncludeInRingSyncAB( ) { return mIncludeInRingSyncAB;} |
125 | void setIncludeInRingSyncPWM( bool b ) {mIncludeInRingSyncPWM = b;} | 134 | void setIncludeInRingSyncPWM( bool b ) {mIncludeInRingSyncPWM = b;} |
126 | bool getIncludeInRingSyncPWM( ) { return mIncludeInRingSyncPWM;} | 135 | bool getIncludeInRingSyncPWM( ) { return mIncludeInRingSyncPWM;} |
127 | void setSyncPrefs( int n ) { mSyncPrefs= n;} | 136 | void setSyncPrefs( int n ) { mSyncPrefs= n;} |
128 | int getSyncPrefs( ) { return mSyncPrefs;} | 137 | int getSyncPrefs( ) { return mSyncPrefs;} |
129 | void setWriteBackFutureWeeks( int n ) { mWriteBackFutureWeeks= n;} | 138 | void setWriteBackFutureWeeks( int n ) { mWriteBackFutureWeeks= n;} |
130 | int getWriteBackFutureWeeks( ) { return mWriteBackFutureWeeks;} | 139 | int getWriteBackFutureWeeks( ) { return mWriteBackFutureWeeks;} |
131 | void setWriteBackPastWeeks( int n ) { mWriteBackPastWeeks= n;} | 140 | void setWriteBackPastWeeks( int n ) { mWriteBackPastWeeks= n;} |
132 | int getWriteBackPastWeeks( ) { return mWriteBackPastWeeks;} | 141 | int getWriteBackPastWeeks( ) { return mWriteBackPastWeeks;} |
133 | void setIsLocalFileSync( bool b ) { mIsLocalFileSync= b;} | 142 | void setIsLocalFileSync( bool b ) { mIsLocalFileSync= b;} |
134 | bool getIsLocalFileSync( ) { return mIsLocalFileSync;} | 143 | bool getIsLocalFileSync( ) { return mIsLocalFileSync;} |
135 | void setIsPhoneSync( bool b ) { mIsPhoneSync= b;} | 144 | void setIsPhoneSync( bool b ) { mIsPhoneSync= b;} |
136 | bool getIsPhoneSync( ) { return mIsPhoneSync;} | 145 | bool getIsPhoneSync( ) { return mIsPhoneSync;} |
137 | void setIsPiSync( bool b ) { mIsPiSync= b;} | 146 | void setIsPiSync( bool b ) { mIsPiSync= b;} |
138 | bool getIsPiSync( ) { return mIsPiSync;} | 147 | bool getIsPiSync( ) { return mIsPiSync;} |
139 | void setIsKapiFile( bool b ) { mIsKapiFile= b;} | 148 | void setIsKapiFile( bool b ) { mIsKapiFile= b;} |
140 | bool getIsKapiFile( ) { return mIsKapiFile;} | 149 | bool getIsKapiFile( ) { return mIsKapiFile;} |
141 | private: | 150 | private: |
142 | QString mName; | 151 | QString mName; |
143 | QString mPreSyncCommand; | 152 | QString mPreSyncCommand; |
144 | QString mPostSyncCommand; | 153 | QString mPostSyncCommand; |
145 | QString mLocalTempFile; | 154 | QString mLocalTempFile; |
146 | QString mRemoteFileName; | 155 | QString mRemoteFileName; |
147 | QString mPreSyncCommandAB; | 156 | QString mPreSyncCommandAB; |
148 | QString mPostSyncCommandAB; | 157 | QString mPostSyncCommandAB; |
149 | QString mLocalTempFileAB; | 158 | QString mLocalTempFileAB; |
150 | QString mRemoteFileNameAB; | 159 | QString mRemoteFileNameAB; |
151 | QString mPreSyncCommandPWM; | 160 | QString mPreSyncCommandPWM; |
152 | QString mPostSyncCommandPWM; | 161 | QString mPostSyncCommandPWM; |
153 | QString mLocalTempFilePWM; | 162 | QString mLocalTempFilePWM; |
154 | QString mRemoteFileNamePWM; | 163 | QString mRemoteFileNamePWM; |
155 | 164 | ||
156 | QString mRemotePw; | 165 | QString mRemotePw; |
157 | QString mRemoteIP; | 166 | QString mRemoteIP; |
158 | QString mRemotePort; | 167 | QString mRemotePort; |
159 | 168 | ||
160 | QString mRemotePwAB; | 169 | QString mRemotePwAB; |
161 | QString mRemoteIPAB; | 170 | QString mRemoteIPAB; |
162 | QString mRemotePortAB; | 171 | QString mRemotePortAB; |
163 | 172 | ||
164 | QString mRemotePwPWM; | 173 | QString mRemotePwPWM; |
165 | QString mRemoteIPPWM; | 174 | QString mRemoteIPPWM; |
166 | QString mRemotePortPWM; | 175 | QString mRemotePortPWM; |
167 | 176 | ||
168 | QString mPhoneDevice; | 177 | QString mPhoneDevice; |
169 | QString mPhoneConnection; | 178 | QString mPhoneConnection; |
170 | QString mPhoneModel; | 179 | QString mPhoneModel; |
171 | 180 | ||
181 | QString mFilterInCal; | ||
182 | QString mFilterOutCal; | ||
183 | QString mFilterInAB; | ||
184 | QString mFilterOutAB; | ||
185 | |||
172 | bool mIncludeInRingSync; | 186 | bool mIncludeInRingSync; |
173 | bool mIncludeInRingSyncAB; | 187 | bool mIncludeInRingSyncAB; |
174 | bool mIncludeInRingSyncPWM; | 188 | bool mIncludeInRingSyncPWM; |
175 | int mSyncPrefs; | 189 | int mSyncPrefs; |
176 | bool mWriteBackFile; | 190 | bool mWriteBackFile; |
177 | bool mWriteBackExisting; | 191 | bool mWriteBackExisting; |
178 | bool mWriteBackFuture; | 192 | bool mWriteBackFuture; |
179 | int mWriteBackFutureWeeks; | 193 | int mWriteBackFutureWeeks; |
180 | int mWriteBackPastWeeks; | 194 | int mWriteBackPastWeeks; |
181 | bool mAskForPreferences; | 195 | bool mAskForPreferences; |
182 | bool mShowSummaryAfterSync; | 196 | bool mShowSummaryAfterSync; |
183 | bool mIsLocalFileSync; | 197 | bool mIsLocalFileSync; |
184 | bool mIsPhoneSync; | 198 | bool mIsPhoneSync; |
185 | bool mWriteContactToSIM; | 199 | bool mWriteContactToSIM; |
186 | 200 | ||
187 | bool mIsPiSync; | 201 | bool mIsPiSync; |
188 | bool mIsKapiFile; | 202 | bool mIsKapiFile; |
189 | }; | 203 | }; |
190 | 204 | ||
191 | #endif | 205 | #endif |