3 #ifndef AKONADI_CALENDARSETTINGS_H
4 #define AKONADI_CALENDARSETTINGS_H
6 #include <akonadi/calendar/akonadi-calendar_export.h>
8 #include <kconfigskeleton.h>
13 class AKONADI_CALENDAR_EXPORT CalendarSettings :
public KConfigSkeleton
17 static CalendarSettings *
self();
24 void setFreeBusyPublishAuto(
bool v )
26 if (!
self()->isImmutable( QString::fromLatin1(
"FreeBusyPublishAuto" ) ))
27 self()->mFreeBusyPublishAuto = v;
34 bool freeBusyPublishAuto()
36 return self()->mFreeBusyPublishAuto;
42 ItemBool *freeBusyPublishAutoItem()
44 return mFreeBusyPublishAutoItem;
51 void setFreeBusyPublishDelay(
int v )
53 if (!
self()->isImmutable( QString::fromLatin1(
"FreeBusyPublishDelay" ) ))
54 self()->mFreeBusyPublishDelay = v;
61 int freeBusyPublishDelay()
63 return self()->mFreeBusyPublishDelay;
69 ItemInt *freeBusyPublishDelayItem()
71 return mFreeBusyPublishDelayItem;
78 void setFreeBusyPublishDays(
int v )
80 if (!
self()->isImmutable( QString::fromLatin1(
"FreeBusyPublishDays" ) ))
81 self()->mFreeBusyPublishDays = v;
88 int freeBusyPublishDays()
90 return self()->mFreeBusyPublishDays;
96 ItemInt *freeBusyPublishDaysItem()
98 return mFreeBusyPublishDaysItem;
105 void setFreeBusyPublishUrl(
const QString & v )
107 if (!
self()->isImmutable( QString::fromLatin1(
"FreeBusyPublishUrl" ) ))
108 self()->mFreeBusyPublishUrl = v;
115 QString freeBusyPublishUrl()
117 return self()->mFreeBusyPublishUrl;
123 ItemString *freeBusyPublishUrlItem()
125 return mFreeBusyPublishUrlItem;
132 void setFreeBusyPublishUser(
const QString & v )
134 if (!
self()->isImmutable( QString::fromLatin1(
"FreeBusyPublishUser" ) ))
135 self()->mFreeBusyPublishUser = v;
142 QString freeBusyPublishUser()
144 return self()->mFreeBusyPublishUser;
150 ItemString *freeBusyPublishUserItem()
152 return mFreeBusyPublishUserItem;
159 void setFreeBusyPublishPassword(
const QString & v )
161 if (!
self()->isImmutable( QString::fromLatin1(
"FreeBusyPublishPassword" ) ))
162 self()->mFreeBusyPublishPassword = v;
169 QString freeBusyPublishPassword()
171 return self()->mFreeBusyPublishPassword;
177 ItemPassword *freeBusyPublishPasswordItem()
179 return mFreeBusyPublishPasswordItem;
186 void setFreeBusyPublishSavePassword(
bool v )
188 if (!
self()->isImmutable( QString::fromLatin1(
"FreeBusyPublishSavePassword" ) ))
189 self()->mFreeBusyPublishSavePassword = v;
196 bool freeBusyPublishSavePassword()
198 return self()->mFreeBusyPublishSavePassword;
204 ItemBool *freeBusyPublishSavePasswordItem()
206 return mFreeBusyPublishSavePasswordItem;
213 void setFreeBusyRetrieveAuto(
bool v )
215 if (!
self()->isImmutable( QString::fromLatin1(
"FreeBusyRetrieveAuto" ) ))
216 self()->mFreeBusyRetrieveAuto = v;
223 bool freeBusyRetrieveAuto()
225 return self()->mFreeBusyRetrieveAuto;
231 ItemBool *freeBusyRetrieveAutoItem()
233 return mFreeBusyRetrieveAutoItem;
240 void setFreeBusyFullDomainRetrieval(
bool v )
242 if (!
self()->isImmutable( QString::fromLatin1(
"FreeBusyFullDomainRetrieval" ) ))
243 self()->mFreeBusyFullDomainRetrieval = v;
250 bool freeBusyFullDomainRetrieval()
252 return self()->mFreeBusyFullDomainRetrieval;
258 ItemBool *freeBusyFullDomainRetrievalItem()
260 return mFreeBusyFullDomainRetrievalItem;
267 void setFreeBusyRetrieveUrl(
const QString & v )
269 if (!
self()->isImmutable( QString::fromLatin1(
"FreeBusyRetrieveUrl" ) ))
270 self()->mFreeBusyRetrieveUrl = v;
277 QString freeBusyRetrieveUrl()
279 return self()->mFreeBusyRetrieveUrl;
285 ItemString *freeBusyRetrieveUrlItem()
287 return mFreeBusyRetrieveUrlItem;
294 void setFreeBusyRetrieveUser(
const QString & v )
296 if (!
self()->isImmutable( QString::fromLatin1(
"FreeBusyRetrieveUser" ) ))
297 self()->mFreeBusyRetrieveUser = v;
304 QString freeBusyRetrieveUser()
306 return self()->mFreeBusyRetrieveUser;
312 ItemString *freeBusyRetrieveUserItem()
314 return mFreeBusyRetrieveUserItem;
321 void setFreeBusyRetrievePassword(
const QString & v )
323 if (!
self()->isImmutable( QString::fromLatin1(
"FreeBusyRetrievePassword" ) ))
324 self()->mFreeBusyRetrievePassword = v;
331 QString freeBusyRetrievePassword()
333 return self()->mFreeBusyRetrievePassword;
339 ItemPassword *freeBusyRetrievePasswordItem()
341 return mFreeBusyRetrievePasswordItem;
348 void setFreeBusyRetrieveSavePassword(
bool v )
350 if (!
self()->isImmutable( QString::fromLatin1(
"FreeBusyRetrieveSavePassword" ) ))
351 self()->mFreeBusyRetrieveSavePassword = v;
358 bool freeBusyRetrieveSavePassword()
360 return self()->mFreeBusyRetrieveSavePassword;
366 ItemBool *freeBusyRetrieveSavePasswordItem()
368 return mFreeBusyRetrieveSavePasswordItem;
375 void setBcc(
bool v )
377 if (!
self()->isImmutable( QString::fromLatin1(
"Bcc" ) ))
402 void setMailTransport(
const QString & v )
404 if (!
self()->isImmutable( QString::fromLatin1(
"MailTransport" ) ))
405 self()->mMailTransport = v;
412 QString mailTransport()
414 return self()->mMailTransport;
420 ItemString *mailTransportItem()
422 return mMailTransportItem;
429 void setOutlookCompatCounterProposals(
bool v )
431 if (!
self()->isImmutable( QString::fromLatin1(
"OutlookCompatCounterProposals" ) ))
432 self()->mOutlookCompatCounterProposals = v;
439 bool outlookCompatCounterProposals()
441 return self()->mOutlookCompatCounterProposals;
447 ItemBool *outlookCompatCounterProposalsItem()
449 return mOutlookCompatCounterProposalsItem;
456 void setFreeBusyCheckHostname(
bool v )
458 if (!
self()->isImmutable( QString::fromLatin1(
"FreeBusyCheckHostname" ) ))
459 self()->mFreeBusyCheckHostname = v;
466 bool freeBusyCheckHostname()
468 return self()->mFreeBusyCheckHostname;
474 ItemBool *freeBusyCheckHostnameItem()
476 return mFreeBusyCheckHostnameItem;
481 friend class CalendarSettingsHelper;
485 bool mFreeBusyPublishAuto;
486 int mFreeBusyPublishDelay;
487 int mFreeBusyPublishDays;
488 QString mFreeBusyPublishUrl;
489 QString mFreeBusyPublishUser;
490 QString mFreeBusyPublishPassword;
491 bool mFreeBusyPublishSavePassword;
494 bool mFreeBusyRetrieveAuto;
495 bool mFreeBusyFullDomainRetrieval;
496 QString mFreeBusyRetrieveUrl;
497 QString mFreeBusyRetrieveUser;
498 QString mFreeBusyRetrievePassword;
499 bool mFreeBusyRetrieveSavePassword;
503 QString mMailTransport;
506 bool mOutlookCompatCounterProposals;
507 bool mFreeBusyCheckHostname;
510 ItemBool *mFreeBusyPublishAutoItem;
511 ItemInt *mFreeBusyPublishDelayItem;
512 ItemInt *mFreeBusyPublishDaysItem;
513 ItemString *mFreeBusyPublishUrlItem;
514 ItemString *mFreeBusyPublishUserItem;
515 ItemPassword *mFreeBusyPublishPasswordItem;
516 ItemBool *mFreeBusyPublishSavePasswordItem;
517 ItemBool *mFreeBusyRetrieveAutoItem;
518 ItemBool *mFreeBusyFullDomainRetrievalItem;
519 ItemString *mFreeBusyRetrieveUrlItem;
520 ItemString *mFreeBusyRetrieveUserItem;
521 ItemPassword *mFreeBusyRetrievePasswordItem;
522 ItemBool *mFreeBusyRetrieveSavePasswordItem;
524 ItemString *mMailTransportItem;
525 ItemBool *mOutlookCompatCounterProposalsItem;
526 ItemBool *mFreeBusyCheckHostnameItem;