summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncprofile.h
authorulf69 <ulf69>2004-08-02 17:47:20 (UTC)
committer ulf69 <ulf69>2004-08-02 17:47:20 (UTC)
commitd8b187d8760766416a9527f3e12789198b30840a (patch) (unidiff)
tree20a6c1ea46568761e05c9bad7ea7afda503dc092 /libkdepim/ksyncprofile.h
parentf6a823824e6a8be3d842e99b43dacd495bb02ba4 (diff)
downloadkdepimpi-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.
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
@@ -1,138 +1,142 @@
1/* 1/*
2 This file is part of KOrganizer. 2 This file is part of KOrganizer.
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
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;}
70 QString getPostSyncCommandAB( ) { return mPostSyncCommandAB;} 72 QString getPostSyncCommandAB( ) { return mPostSyncCommandAB;}
71 void setLocalTempFileAB( const QString& n ) { mLocalTempFileAB= n;} 73 void setLocalTempFileAB( const QString& n ) { mLocalTempFileAB= n;}
72 QString getLocalTempFileAB( ) { return mLocalTempFileAB;} 74 QString getLocalTempFileAB( ) { return mLocalTempFileAB;}
73 void setRemoteFileNameAB( const QString& n ) { mRemoteFileNameAB = n;} 75 void setRemoteFileNameAB( const QString& n ) { mRemoteFileNameAB = n;}
74 QString getRemoteFileNameAB( ) { return mRemoteFileNameAB;} 76 QString getRemoteFileNameAB( ) { return mRemoteFileNameAB;}
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;
124 128
125 bool mIncludeInRingSync; 129 bool mIncludeInRingSync;
126 bool mIncludeInRingSyncAB; 130 bool mIncludeInRingSyncAB;
127 int mSyncPrefs; 131 int mSyncPrefs;
128 bool mWriteBackFile; 132 bool mWriteBackFile;
129 bool mWriteBackExisting; 133 bool mWriteBackExisting;
130 bool mWriteBackFuture; 134 bool mWriteBackFuture;
131 int mWriteBackFutureWeeks; 135 int mWriteBackFutureWeeks;
132 bool mAskForPreferences; 136 bool mAskForPreferences;
133 bool mShowSummaryAfterSync; 137 bool mShowSummaryAfterSync;
134 bool mIsLocalFileSync; 138 bool mIsLocalFileSync;
135 bool mIsPhoneSync; 139 bool mIsPhoneSync;
136}; 140};
137 141
138#endif 142#endif