summaryrefslogtreecommitdiffabout
path: root/libkdepim/ksyncprofile.h
Unidiff
Diffstat (limited to 'libkdepim/ksyncprofile.h') (more/less context) (show whitespace changes)
-rw-r--r--libkdepim/ksyncprofile.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/libkdepim/ksyncprofile.h b/libkdepim/ksyncprofile.h
index a0cfb71..0039a4b 100644
--- a/libkdepim/ksyncprofile.h
+++ b/libkdepim/ksyncprofile.h
@@ -1,14 +1,14 @@
1/* 1/*
2 This file is part of KOrganizer. 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
@@ -24,35 +24,25 @@
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/**
37 @short Class for storing a preferences setting
38 @author Cornelius Schumacher
39 @see KPref
40 36
41 This class represents one preferences setting as used by @ref KPrefs.
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
44 addItem() functions of KPrefs instead. If you subclass this class you will
45 have to register instances with the function KPrefs::addItem().
46*/
47class KSyncProfile : public QObject { 37class KSyncProfile : public QObject {
48 public: 38 public:
49 KSyncProfile(); 39 KSyncProfile();
50 ~KSyncProfile() ; 40 ~KSyncProfile() ;
51 41
52 KSyncProfile* clone(); 42 KSyncProfile* clone();
53 void setDefault(); 43 void setDefault();
54 void readConfig(KConfig *); 44 void readConfig(KConfig *);
55 void writeConfig(KConfig *); 45 void writeConfig(KConfig *);
56 void deleteConfig(KConfig *); 46 void deleteConfig(KConfig *);
57 47
58 void setPreSyncCommand( const QString& n ) {mPreSyncCommand = n;} 48 void setPreSyncCommand( const QString& n ) {mPreSyncCommand = n;}
@@ -87,24 +77,26 @@ class KSyncProfile : public QObject {
87 void setName( const QString& n ) {mName = n;} 77 void setName( const QString& n ) {mName = n;}
88 QString getName( ) { return mName;} 78 QString getName( ) { return mName;}
89 void setShowSummaryAfterSync( bool b ) { mShowSummaryAfterSync = b;} 79 void setShowSummaryAfterSync( bool b ) { mShowSummaryAfterSync = b;}
90 bool getShowSummaryAfterSync( ) { return mShowSummaryAfterSync ;} 80 bool getShowSummaryAfterSync( ) { return mShowSummaryAfterSync ;}
91 void setAskForPreferences( bool b ) { mAskForPreferences= b;} 81 void setAskForPreferences( bool b ) { mAskForPreferences= b;}
92 bool getAskForPreferences( ) { return mAskForPreferences;} 82 bool getAskForPreferences( ) { return mAskForPreferences;}
93 void setWriteBackExisting( bool b ) { mWriteBackExisting = b;} 83 void setWriteBackExisting( bool b ) { mWriteBackExisting = b;}
94 bool getWriteBackExisting( ) { return mWriteBackExisting;} 84 bool getWriteBackExisting( ) { return mWriteBackExisting;}
95 void setWriteBackFuture( bool b ) { mWriteBackFuture = b;} 85 void setWriteBackFuture( bool b ) { mWriteBackFuture = b;}
96 bool getWriteBackFuture( ) { return mWriteBackFuture;} 86 bool getWriteBackFuture( ) { return mWriteBackFuture;}
97 void setWriteBackFile( bool b ) { mWriteBackFile= b;} 87 void setWriteBackFile( bool b ) { mWriteBackFile= b;}
98 bool getWriteBackFile( ) { return mWriteBackFile;} 88 bool getWriteBackFile( ) { return mWriteBackFile;}
89 void setWriteContactToSIM( bool b ) { mWriteContactToSIM= b;}
90 bool getWriteContactToSIM( ) { return mWriteContactToSIM;}
99 void setIncludeInRingSync( bool b ) {mIncludeInRingSync = b;} 91 void setIncludeInRingSync( bool b ) {mIncludeInRingSync = b;}
100 bool getIncludeInRingSync( ) { return mIncludeInRingSync;} 92 bool getIncludeInRingSync( ) { return mIncludeInRingSync;}
101 void setIncludeInRingSyncAB( bool b ) {mIncludeInRingSyncAB = b;} 93 void setIncludeInRingSyncAB( bool b ) {mIncludeInRingSyncAB = b;}
102 bool getIncludeInRingSyncAB( ) { return mIncludeInRingSyncAB;} 94 bool getIncludeInRingSyncAB( ) { return mIncludeInRingSyncAB;}
103 void setSyncPrefs( int n ) { mSyncPrefs= n;} 95 void setSyncPrefs( int n ) { mSyncPrefs= n;}
104 int getSyncPrefs( ) { return mSyncPrefs;} 96 int getSyncPrefs( ) { return mSyncPrefs;}
105 void setWriteBackFutureWeeks( int n ) { mWriteBackFutureWeeks= n;} 97 void setWriteBackFutureWeeks( int n ) { mWriteBackFutureWeeks= n;}
106 int getWriteBackFutureWeeks( ) { return mWriteBackFutureWeeks;} 98 int getWriteBackFutureWeeks( ) { return mWriteBackFutureWeeks;}
107 void setIsLocalFileSync( bool b ) { mIsLocalFileSync= b;} 99 void setIsLocalFileSync( bool b ) { mIsLocalFileSync= b;}
108 bool getIsLocalFileSync( ) { return mIsLocalFileSync;} 100 bool getIsLocalFileSync( ) { return mIsLocalFileSync;}
109 void setIsPhoneSync( bool b ) { mIsPhoneSync= b;} 101 void setIsPhoneSync( bool b ) { mIsPhoneSync= b;}
110 bool getIsPhoneSync( ) { return mIsPhoneSync;} 102 bool getIsPhoneSync( ) { return mIsPhoneSync;}
@@ -125,15 +117,16 @@ class KSyncProfile : public QObject {
125 117
126 bool mIncludeInRingSync; 118 bool mIncludeInRingSync;
127 bool mIncludeInRingSyncAB; 119 bool mIncludeInRingSyncAB;
128 int mSyncPrefs; 120 int mSyncPrefs;
129 bool mWriteBackFile; 121 bool mWriteBackFile;
130 bool mWriteBackExisting; 122 bool mWriteBackExisting;
131 bool mWriteBackFuture; 123 bool mWriteBackFuture;
132 int mWriteBackFutureWeeks; 124 int mWriteBackFutureWeeks;
133 bool mAskForPreferences; 125 bool mAskForPreferences;
134 bool mShowSummaryAfterSync; 126 bool mShowSummaryAfterSync;
135 bool mIsLocalFileSync; 127 bool mIsLocalFileSync;
136 bool mIsPhoneSync; 128 bool mIsPhoneSync;
129 bool mWriteContactToSIM;
137}; 130};
138 131
139#endif 132#endif