-rw-r--r-- | libkdepim/ksyncprofile.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/libkdepim/ksyncprofile.h b/libkdepim/ksyncprofile.h index a81a9ad..6a68bd7 100644 --- a/libkdepim/ksyncprofile.h +++ b/libkdepim/ksyncprofile.h | |||
@@ -1,148 +1,185 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KDE-Pim/Pi. | 2 | This file is part of KDE-Pim/Pi. |
3 | Copyright (c) 2004 Lutz Rogowski <rogowski@kde.org> | 3 | Copyright (c) 2004 Lutz Rogowski <rogowski@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
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;} | ||
49 | QString getRemotePw( ) { return mRemotePw; } | ||
50 | void setRemotePwAB( const QString& n ) {mRemotePwAB = n;} | ||
51 | QString getRemotePwAB( ) { return mRemotePwAB; } | ||
52 | void setRemotePwPWM( const QString& n ) {mRemotePwPWM = n;} | ||
53 | QString getRemotePwPWM( ) { return mRemotePwPWM; } | ||
54 | |||
55 | void setRemoteIP( const QString& n ) {mRemoteIP = n;} | ||
56 | QString getRemoteIP( ) { return mRemoteIP; } | ||
57 | void setRemoteIPAB( const QString& n ) {mRemoteIPAB = n;} | ||
58 | QString getRemoteIPAB( ) { return mRemoteIPAB; } | ||
59 | void setRemoteIPPWM( const QString& n ) {mRemoteIPPWM = n;} | ||
60 | QString getRemoteIPPWM( ) { return mRemoteIPPWM; } | ||
61 | |||
62 | void setRemotePort( const QString& n ) {mRemotePort = n;} | ||
63 | QString getRemotePort( ) { return mRemotePort; } | ||
64 | void setRemotePortAB( const QString& n ) {mRemotePortAB = n;} | ||
65 | QString getRemotePortAB( ) { return mRemotePortAB; } | ||
66 | void setRemotePortPWM( const QString& n ) {mRemotePortPWM = n;} | ||
67 | QString getRemotePortPWM( ) { return mRemotePortPWM; } | ||
68 | |||
48 | void setPreSyncCommand( const QString& n ) {mPreSyncCommand = n;} | 69 | void setPreSyncCommand( const QString& n ) {mPreSyncCommand = n;} |
49 | QString getPreSyncCommand( ) { return mPreSyncCommand; } | 70 | QString getPreSyncCommand( ) { return mPreSyncCommand; } |
50 | void setPostSyncCommand( const QString& n ) {mPostSyncCommand = n;} | 71 | void setPostSyncCommand( const QString& n ) {mPostSyncCommand = n;} |
51 | QString getPostSyncCommand( ) { return mPostSyncCommand;} | 72 | QString getPostSyncCommand( ) { return mPostSyncCommand;} |
52 | void setLocalTempFile( const QString& n ) { mLocalTempFile= n;} | 73 | void setLocalTempFile( const QString& n ) { mLocalTempFile= n;} |
53 | QString getLocalTempFile( ) { return mLocalTempFile;} | 74 | QString getLocalTempFile( ) { return mLocalTempFile;} |
54 | void setRemoteFileName( const QString& n ) { mRemoteFileName = n;} | 75 | void setRemoteFileName( const QString& n ) { mRemoteFileName = n;} |
55 | QString getRemoteFileName( ) { return mRemoteFileName;} | 76 | QString getRemoteFileName( ) { return mRemoteFileName;} |
56 | 77 | ||
57 | void setPreSyncCommandAB( const QString& n ) {mPreSyncCommandAB = n;} | 78 | void setPreSyncCommandAB( const QString& n ) {mPreSyncCommandAB = n;} |
58 | QString getPreSyncCommandAB( ) { return mPreSyncCommandAB; } | 79 | QString getPreSyncCommandAB( ) { return mPreSyncCommandAB; } |
59 | void setPostSyncCommandAB( const QString& n ) {mPostSyncCommandAB = n;} | 80 | void setPostSyncCommandAB( const QString& n ) {mPostSyncCommandAB = n;} |
60 | QString getPostSyncCommandAB( ) { return mPostSyncCommandAB;} | 81 | QString getPostSyncCommandAB( ) { return mPostSyncCommandAB;} |
61 | void setLocalTempFileAB( const QString& n ) { mLocalTempFileAB= n;} | 82 | void setLocalTempFileAB( const QString& n ) { mLocalTempFileAB= n;} |
62 | QString getLocalTempFileAB( ) { return mLocalTempFileAB;} | 83 | QString getLocalTempFileAB( ) { return mLocalTempFileAB;} |
63 | void setRemoteFileNameAB( const QString& n ) { mRemoteFileNameAB = n;} | 84 | void setRemoteFileNameAB( const QString& n ) { mRemoteFileNameAB = n;} |
64 | QString getRemoteFileNameAB( ) { return mRemoteFileNameAB;} | 85 | QString getRemoteFileNameAB( ) { return mRemoteFileNameAB;} |
65 | 86 | ||
66 | void setPreSyncCommandPWM( const QString& n ) {mPreSyncCommandPWM = n;} | 87 | void setPreSyncCommandPWM( const QString& n ) {mPreSyncCommandPWM = n;} |
67 | QString getPreSyncCommandPWM( ) { return mPreSyncCommandPWM; } | 88 | QString getPreSyncCommandPWM( ) { return mPreSyncCommandPWM; } |
68 | void setPostSyncCommandPWM( const QString& n ) {mPostSyncCommandPWM = n;} | 89 | void setPostSyncCommandPWM( const QString& n ) {mPostSyncCommandPWM = n;} |
69 | QString getPostSyncCommandPWM( ) { return mPostSyncCommandPWM;} | 90 | QString getPostSyncCommandPWM( ) { return mPostSyncCommandPWM;} |
70 | void setLocalTempFilePWM( const QString& n ) { mLocalTempFilePWM= n;} | 91 | void setLocalTempFilePWM( const QString& n ) { mLocalTempFilePWM= n;} |
71 | QString getLocalTempFilePWM( ) { return mLocalTempFilePWM;} | 92 | QString getLocalTempFilePWM( ) { return mLocalTempFilePWM;} |
72 | void setRemoteFileNamePWM( const QString& n ) { mRemoteFileNamePWM = n;} | 93 | void setRemoteFileNamePWM( const QString& n ) { mRemoteFileNamePWM = n;} |
73 | QString getRemoteFileNamePWM( ) { return mRemoteFileNamePWM;} | 94 | QString getRemoteFileNamePWM( ) { return mRemoteFileNamePWM;} |
74 | 95 | ||
75 | void setPhoneDevice( const QString& n ) { mPhoneDevice = n;} | 96 | void setPhoneDevice( const QString& n ) { mPhoneDevice = n;} |
76 | QString getPhoneDevice( ) { return mPhoneDevice;} | 97 | QString getPhoneDevice( ) { return mPhoneDevice;} |
77 | void setPhoneConnection( const QString& n ) { mPhoneConnection = n;} | 98 | void setPhoneConnection( const QString& n ) { mPhoneConnection = n;} |
78 | QString getPhoneConnection( ) { return mPhoneConnection;} | 99 | QString getPhoneConnection( ) { return mPhoneConnection;} |
79 | void setPhoneModel( const QString& n ) { mPhoneModel = n;} | 100 | void setPhoneModel( const QString& n ) { mPhoneModel = n;} |
80 | QString getPhoneModel( ) { return mPhoneModel;} | 101 | QString getPhoneModel( ) { return mPhoneModel;} |
81 | /* | 102 | /* |
82 | void set( const QString& n ) { = n;} | 103 | void set( const QString& n ) { = n;} |
83 | QString get( ) { return ;} | 104 | QString get( ) { return ;} |
84 | */ | 105 | */ |
85 | 106 | ||
86 | void setName( const QString& n ) {mName = n;} | 107 | void setName( const QString& n ) {mName = n;} |
87 | QString getName( ) { return mName;} | 108 | QString getName( ) { return mName;} |
88 | void setShowSummaryAfterSync( bool b ) { mShowSummaryAfterSync = b;} | 109 | void setShowSummaryAfterSync( bool b ) { mShowSummaryAfterSync = b;} |
89 | bool getShowSummaryAfterSync( ) { return mShowSummaryAfterSync ;} | 110 | bool getShowSummaryAfterSync( ) { return mShowSummaryAfterSync ;} |
90 | void setAskForPreferences( bool b ) { mAskForPreferences= b;} | 111 | void setAskForPreferences( bool b ) { mAskForPreferences= b;} |
91 | bool getAskForPreferences( ) { return mAskForPreferences;} | 112 | bool getAskForPreferences( ) { return mAskForPreferences;} |
92 | void setWriteBackExisting( bool b ) { mWriteBackExisting = b;} | 113 | void setWriteBackExisting( bool b ) { mWriteBackExisting = b;} |
93 | bool getWriteBackExisting( ) { return mWriteBackExisting;} | 114 | bool getWriteBackExisting( ) { return mWriteBackExisting;} |
94 | void setWriteBackFuture( bool b ) { mWriteBackFuture = b;} | 115 | void setWriteBackFuture( bool b ) { mWriteBackFuture = b;} |
95 | bool getWriteBackFuture( ) { return mWriteBackFuture;} | 116 | bool getWriteBackFuture( ) { return mWriteBackFuture;} |
96 | void setWriteBackFile( bool b ) { mWriteBackFile= b;} | 117 | void setWriteBackFile( bool b ) { mWriteBackFile= b;} |
97 | bool getWriteBackFile( ) { return mWriteBackFile;} | 118 | bool getWriteBackFile( ) { return mWriteBackFile;} |
98 | void setWriteContactToSIM( bool b ) { mWriteContactToSIM= b;} | 119 | void setWriteContactToSIM( bool b ) { mWriteContactToSIM= b;} |
99 | bool getWriteContactToSIM( ) { return mWriteContactToSIM;} | 120 | bool getWriteContactToSIM( ) { return mWriteContactToSIM;} |
100 | void setIncludeInRingSync( bool b ) {mIncludeInRingSync = b;} | 121 | void setIncludeInRingSync( bool b ) {mIncludeInRingSync = b;} |
101 | bool getIncludeInRingSync( ) { return mIncludeInRingSync;} | 122 | bool getIncludeInRingSync( ) { return mIncludeInRingSync;} |
102 | void setIncludeInRingSyncAB( bool b ) {mIncludeInRingSyncAB = b;} | 123 | void setIncludeInRingSyncAB( bool b ) {mIncludeInRingSyncAB = b;} |
103 | bool getIncludeInRingSyncAB( ) { return mIncludeInRingSyncAB;} | 124 | bool getIncludeInRingSyncAB( ) { return mIncludeInRingSyncAB;} |
104 | void setIncludeInRingSyncPWM( bool b ) {mIncludeInRingSyncPWM = b;} | 125 | void setIncludeInRingSyncPWM( bool b ) {mIncludeInRingSyncPWM = b;} |
105 | bool getIncludeInRingSyncPWM( ) { return mIncludeInRingSyncPWM;} | 126 | bool getIncludeInRingSyncPWM( ) { return mIncludeInRingSyncPWM;} |
106 | void setSyncPrefs( int n ) { mSyncPrefs= n;} | 127 | void setSyncPrefs( int n ) { mSyncPrefs= n;} |
107 | int getSyncPrefs( ) { return mSyncPrefs;} | 128 | int getSyncPrefs( ) { return mSyncPrefs;} |
108 | void setWriteBackFutureWeeks( int n ) { mWriteBackFutureWeeks= n;} | 129 | void setWriteBackFutureWeeks( int n ) { mWriteBackFutureWeeks= n;} |
109 | int getWriteBackFutureWeeks( ) { return mWriteBackFutureWeeks;} | 130 | int getWriteBackFutureWeeks( ) { return mWriteBackFutureWeeks;} |
110 | void setIsLocalFileSync( bool b ) { mIsLocalFileSync= b;} | 131 | void setIsLocalFileSync( bool b ) { mIsLocalFileSync= b;} |
111 | bool getIsLocalFileSync( ) { return mIsLocalFileSync;} | 132 | bool getIsLocalFileSync( ) { return mIsLocalFileSync;} |
112 | void setIsPhoneSync( bool b ) { mIsPhoneSync= b;} | 133 | void setIsPhoneSync( bool b ) { mIsPhoneSync= b;} |
113 | bool getIsPhoneSync( ) { return mIsPhoneSync;} | 134 | bool getIsPhoneSync( ) { return mIsPhoneSync;} |
135 | void setIsPiSync( bool b ) { mIsPiSync= b;} | ||
136 | bool getIsPiSync( ) { return mIsPiSync;} | ||
114 | private: | 137 | private: |
115 | QString mName; | 138 | QString mName; |
116 | QString mPreSyncCommand; | 139 | QString mPreSyncCommand; |
117 | QString mPostSyncCommand; | 140 | QString mPostSyncCommand; |
118 | QString mLocalTempFile; | 141 | QString mLocalTempFile; |
119 | QString mRemoteFileName; | 142 | QString mRemoteFileName; |
120 | QString mPreSyncCommandAB; | 143 | QString mPreSyncCommandAB; |
121 | QString mPostSyncCommandAB; | 144 | QString mPostSyncCommandAB; |
122 | QString mLocalTempFileAB; | 145 | QString mLocalTempFileAB; |
123 | QString mRemoteFileNameAB; | 146 | QString mRemoteFileNameAB; |
124 | QString mPreSyncCommandPWM; | 147 | QString mPreSyncCommandPWM; |
125 | QString mPostSyncCommandPWM; | 148 | QString mPostSyncCommandPWM; |
126 | QString mLocalTempFilePWM; | 149 | QString mLocalTempFilePWM; |
127 | QString mRemoteFileNamePWM; | 150 | QString mRemoteFileNamePWM; |
128 | 151 | ||
152 | QString mRemotePw; | ||
153 | QString mRemoteIP; | ||
154 | QString mRemotePort; | ||
155 | |||
156 | QString mRemotePwAB; | ||
157 | QString mRemoteIPAB; | ||
158 | QString mRemotePortAB; | ||
159 | |||
160 | QString mRemotePwPWM; | ||
161 | QString mRemoteIPPWM; | ||
162 | QString mRemotePortPWM; | ||
163 | |||
129 | QString mPhoneDevice; | 164 | QString mPhoneDevice; |
130 | QString mPhoneConnection; | 165 | QString mPhoneConnection; |
131 | QString mPhoneModel; | 166 | QString mPhoneModel; |
132 | 167 | ||
133 | bool mIncludeInRingSync; | 168 | bool mIncludeInRingSync; |
134 | bool mIncludeInRingSyncAB; | 169 | bool mIncludeInRingSyncAB; |
135 | bool mIncludeInRingSyncPWM; | 170 | bool mIncludeInRingSyncPWM; |
136 | int mSyncPrefs; | 171 | int mSyncPrefs; |
137 | bool mWriteBackFile; | 172 | bool mWriteBackFile; |
138 | bool mWriteBackExisting; | 173 | bool mWriteBackExisting; |
139 | bool mWriteBackFuture; | 174 | bool mWriteBackFuture; |
140 | int mWriteBackFutureWeeks; | 175 | int mWriteBackFutureWeeks; |
141 | bool mAskForPreferences; | 176 | bool mAskForPreferences; |
142 | bool mShowSummaryAfterSync; | 177 | bool mShowSummaryAfterSync; |
143 | bool mIsLocalFileSync; | 178 | bool mIsLocalFileSync; |
144 | bool mIsPhoneSync; | 179 | bool mIsPhoneSync; |
145 | bool mWriteContactToSIM; | 180 | bool mWriteContactToSIM; |
181 | |||
182 | bool mIsPiSync; | ||
146 | }; | 183 | }; |
147 | 184 | ||
148 | #endif | 185 | #endif |