kpilot/kpilot
kpilotConfigWizard_address.h00001
00002
00003 #ifndef KPILOTWIZARD_ADDRESSCONFIG_H
00004 #define KPILOTWIZARD_ADDRESSCONFIG_H
00005
00006 #include <kconfigskeleton.h>
00007 #include <kdebug.h>
00008
00009 class KPilotWizard_addressConfig : public KConfigSkeleton
00010 {
00011 public:
00012 enum { eAbookResource, eAbookFile };
00013 enum { eOtherPhone, eAssistant, eBusinessFax, eCarPhone, eEmail2, eHomeFax, eTelex, eTTYTTDPhone };
00014 enum { ePilotStreetHome, ePilotStreetWork };
00015 enum { ePilotFaxHome, ePilotFaxWork };
00016 enum { eCustomField, eCustomBirthdate, eCustomURL, eCustomIM };
00017
00018 KPilotWizard_addressConfig( );
00019 ~KPilotWizard_addressConfig();
00020
00024 void setAddressbookType( int v )
00025 {
00026 if (!isImmutable( QString::fromLatin1( "AddressbookType" ) ))
00027 mAddressbookType = v;
00028 }
00029
00033 int addressbookType() const
00034 {
00035 return mAddressbookType;
00036 }
00037
00041 ItemEnum *addressbookTypeItem()
00042 {
00043 return mAddressbookTypeItem;
00044 }
00045
00049 void setFileName( const QString & v )
00050 {
00051 if (!isImmutable( QString::fromLatin1( "FileName" ) ))
00052 mFileName = v;
00053 }
00054
00058 QString fileName() const
00059 {
00060 return mFileName;
00061 }
00062
00066 ItemPath *fileNameItem()
00067 {
00068 return mFileNameItem;
00069 }
00070
00074 void setArchiveDeleted( bool v )
00075 {
00076 if (!isImmutable( QString::fromLatin1( "ArchiveDeleted" ) ))
00077 mArchiveDeleted = v;
00078 }
00079
00083 bool archiveDeleted() const
00084 {
00085 return mArchiveDeleted;
00086 }
00087
00091 ItemBool *archiveDeletedItem()
00092 {
00093 return mArchiveDeletedItem;
00094 }
00095
00099 void setConflictResolution( int v )
00100 {
00101 if (!isImmutable( QString::fromLatin1( "ConflictResolution" ) ))
00102 mConflictResolution = v;
00103 }
00104
00108 int conflictResolution() const
00109 {
00110 return mConflictResolution;
00111 }
00112
00116 ItemInt *conflictResolutionItem()
00117 {
00118 return mConflictResolutionItem;
00119 }
00120
00124 void setPilotOther( int v )
00125 {
00126 if (!isImmutable( QString::fromLatin1( "PilotOther" ) ))
00127 mPilotOther = v;
00128 }
00129
00133 int pilotOther() const
00134 {
00135 return mPilotOther;
00136 }
00137
00141 ItemEnum *pilotOtherItem()
00142 {
00143 return mPilotOtherItem;
00144 }
00145
00149 void setPilotStreet( int v )
00150 {
00151 if (!isImmutable( QString::fromLatin1( "PilotStreet" ) ))
00152 mPilotStreet = v;
00153 }
00154
00158 int pilotStreet() const
00159 {
00160 return mPilotStreet;
00161 }
00162
00166 ItemEnum *pilotStreetItem()
00167 {
00168 return mPilotStreetItem;
00169 }
00170
00174 void setPilotFax( int v )
00175 {
00176 if (!isImmutable( QString::fromLatin1( "PilotFax" ) ))
00177 mPilotFax = v;
00178 }
00179
00183 int pilotFax() const
00184 {
00185 return mPilotFax;
00186 }
00187
00191 ItemEnum *pilotFaxItem()
00192 {
00193 return mPilotFaxItem;
00194 }
00195
00199 void setCustom0( int v )
00200 {
00201 if (!isImmutable( QString::fromLatin1( "Custom0" ) ))
00202 mCustom0 = v;
00203 }
00204
00208 int custom0() const
00209 {
00210 return mCustom0;
00211 }
00212
00216 ItemEnum *custom0Item()
00217 {
00218 return mCustom0Item;
00219 }
00220
00224 void setCustom1( int v )
00225 {
00226 if (!isImmutable( QString::fromLatin1( "Custom1" ) ))
00227 mCustom1 = v;
00228 }
00229
00233 int custom1() const
00234 {
00235 return mCustom1;
00236 }
00237
00241 ItemEnum *custom1Item()
00242 {
00243 return mCustom1Item;
00244 }
00245
00249 void setCustom2( int v )
00250 {
00251 if (!isImmutable( QString::fromLatin1( "Custom2" ) ))
00252 mCustom2 = v;
00253 }
00254
00258 int custom2() const
00259 {
00260 return mCustom2;
00261 }
00262
00266 ItemEnum *custom2Item()
00267 {
00268 return mCustom2Item;
00269 }
00270
00274 void setCustom3( int v )
00275 {
00276 if (!isImmutable( QString::fromLatin1( "Custom3" ) ))
00277 mCustom3 = v;
00278 }
00279
00283 int custom3() const
00284 {
00285 return mCustom3;
00286 }
00287
00291 ItemEnum *custom3Item()
00292 {
00293 return mCustom3Item;
00294 }
00295
00299 void setCustomDateFormat( const QString & v )
00300 {
00301 if (!isImmutable( QString::fromLatin1( "CustomDateFormat" ) ))
00302 mCustomDateFormat = v;
00303 }
00304
00308 QString customDateFormat() const
00309 {
00310 return mCustomDateFormat;
00311 }
00312
00316 ItemString *customDateFormatItem()
00317 {
00318 return mCustomDateFormatItem;
00319 }
00320
00321 protected:
00322
00323
00324 int mAddressbookType;
00325 QString mFileName;
00326 bool mArchiveDeleted;
00327 int mConflictResolution;
00328 int mPilotOther;
00329 int mPilotStreet;
00330 int mPilotFax;
00331 int mCustom0;
00332 int mCustom1;
00333 int mCustom2;
00334 int mCustom3;
00335 QString mCustomDateFormat;
00336
00337 private:
00338 ItemEnum *mAddressbookTypeItem;
00339 ItemPath *mFileNameItem;
00340 ItemBool *mArchiveDeletedItem;
00341 ItemInt *mConflictResolutionItem;
00342 ItemEnum *mPilotOtherItem;
00343 ItemEnum *mPilotStreetItem;
00344 ItemEnum *mPilotFaxItem;
00345 ItemEnum *mCustom0Item;
00346 ItemEnum *mCustom1Item;
00347 ItemEnum *mCustom2Item;
00348 ItemEnum *mCustom3Item;
00349 ItemString *mCustomDateFormatItem;
00350 };
00351
00352 #endif
00353
|