• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • sources
  • kde-4.12
  • kdepimlibs
  • akonadi
  • calendar
calendarsettings.cpp
1 // This file is generated by kconfig_compiler from calendarsettings.kcfg.
2 // All changes you do to this file will be lost.
3 
4 #include "calendarsettings.h"
5 
6 #include <klocale.h>
7 
8 #include <kglobal.h>
9 #include <QtCore/QFile>
10 
11 using namespace Akonadi;
12 
13 namespace Akonadi {
14 
15 class CalendarSettingsHelper
16 {
17  public:
18  CalendarSettingsHelper() : q(0) {}
19  ~CalendarSettingsHelper() { delete q; }
20  CalendarSettings *q;
21 };
22 }
23 
24 K_GLOBAL_STATIC(CalendarSettingsHelper, s_globalCalendarSettings)
25 CalendarSettings *CalendarSettings::self()
26 {
27  if (!s_globalCalendarSettings->q) {
28  new CalendarSettings;
29  s_globalCalendarSettings->q->readConfig();
30  }
31 
32  return s_globalCalendarSettings->q;
33 }
34 
35 CalendarSettings::CalendarSettings( )
36  : KConfigSkeleton( QLatin1String( "akonadi-calendarrc" ) )
37 {
38  Q_ASSERT(!s_globalCalendarSettings->q);
39  s_globalCalendarSettings->q = this;
40  setCurrentGroup( QLatin1String( "FreeBusy Publish" ) );
41 
42  mFreeBusyPublishAutoItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "FreeBusyPublishAuto" ), mFreeBusyPublishAuto, false );
43  mFreeBusyPublishAutoItem->setLabel( i18n("FreeBusyPublishAuto") );
44  addItem( mFreeBusyPublishAutoItem, QLatin1String( "FreeBusyPublishAuto" ) );
45  mFreeBusyPublishDelayItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "FreeBusyPublishDelay" ), mFreeBusyPublishDelay, 5 );
46  mFreeBusyPublishDelayItem->setLabel( i18n("FreeBusyPublishDelay") );
47  addItem( mFreeBusyPublishDelayItem, QLatin1String( "FreeBusyPublishDelay" ) );
48  mFreeBusyPublishDaysItem = new KConfigSkeleton::ItemInt( currentGroup(), QLatin1String( "FreeBusyPublishDays" ), mFreeBusyPublishDays, 60 );
49  mFreeBusyPublishDaysItem->setLabel( i18n("FreeBusyPublishDays") );
50  addItem( mFreeBusyPublishDaysItem, QLatin1String( "FreeBusyPublishDays" ) );
51  mFreeBusyPublishUrlItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "FreeBusyPublishUrl" ), mFreeBusyPublishUrl );
52  mFreeBusyPublishUrlItem->setLabel( i18n("Free/Busy Publish URL") );
53  mFreeBusyPublishUrlItem->setWhatsThis( i18n("URL for publishing free/busy information") );
54  addItem( mFreeBusyPublishUrlItem, QLatin1String( "FreeBusyPublishUrl" ) );
55  mFreeBusyPublishUserItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "FreeBusyPublishUser" ), mFreeBusyPublishUser );
56  mFreeBusyPublishUserItem->setLabel( i18n("Free/Busy Publish Username") );
57  mFreeBusyPublishUserItem->setWhatsThis( i18n("Username for publishing free/busy information") );
58  addItem( mFreeBusyPublishUserItem, QLatin1String( "FreeBusyPublishUser" ) );
59  mFreeBusyPublishPasswordItem = new KConfigSkeleton::ItemPassword( currentGroup(), QLatin1String( "FreeBusyPublishPassword" ), mFreeBusyPublishPassword );
60  mFreeBusyPublishPasswordItem->setLabel( i18n("Free/Busy Publish Password") );
61  mFreeBusyPublishPasswordItem->setWhatsThis( i18n("Password for publishing free/busy information") );
62  addItem( mFreeBusyPublishPasswordItem, QLatin1String( "FreeBusyPublishPassword" ) );
63  mFreeBusyPublishSavePasswordItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "FreeBusyPublishSavePassword" ), mFreeBusyPublishSavePassword, false );
64  mFreeBusyPublishSavePasswordItem->setLabel( i18n("FreeBusyPublishSavePassword") );
65  addItem( mFreeBusyPublishSavePasswordItem, QLatin1String( "FreeBusyPublishSavePassword" ) );
66 
67  setCurrentGroup( QLatin1String( "FreeBusy Retrieve" ) );
68 
69  mFreeBusyRetrieveAutoItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "FreeBusyRetrieveAuto" ), mFreeBusyRetrieveAuto, false );
70  mFreeBusyRetrieveAutoItem->setLabel( i18n("Enable Automatic Free/Busy Retrieval") );
71  addItem( mFreeBusyRetrieveAutoItem, QLatin1String( "FreeBusyRetrieveAuto" ) );
72  mFreeBusyFullDomainRetrievalItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "FreeBusyFullDomainRetrieval" ), mFreeBusyFullDomainRetrieval, false );
73  mFreeBusyFullDomainRetrievalItem->setLabel( i18n("Use full email address for retrieval") );
74  mFreeBusyFullDomainRetrievalItem->setWhatsThis( i18n("With this setting, you can change the filename that will be fetched from the server. With this checked, it will download a free/busy file called user@domain.ifb, for example nn@kde.org.ifb. Without this set, it will download user.ifb, for example nn.ifb.") );
75  addItem( mFreeBusyFullDomainRetrievalItem, QLatin1String( "FreeBusyFullDomainRetrieval" ) );
76  mFreeBusyRetrieveUrlItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "FreeBusyRetrieveUrl" ), mFreeBusyRetrieveUrl );
77  mFreeBusyRetrieveUrlItem->setLabel( i18n("Free/Busy Retrieval URL") );
78  addItem( mFreeBusyRetrieveUrlItem, QLatin1String( "FreeBusyRetrieveUrl" ) );
79  mFreeBusyRetrieveUserItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "FreeBusyRetrieveUser" ), mFreeBusyRetrieveUser );
80  mFreeBusyRetrieveUserItem->setLabel( i18n("Free/Busy Retrieval Username") );
81  addItem( mFreeBusyRetrieveUserItem, QLatin1String( "FreeBusyRetrieveUser" ) );
82  mFreeBusyRetrievePasswordItem = new KConfigSkeleton::ItemPassword( currentGroup(), QLatin1String( "FreeBusyRetrievePassword" ), mFreeBusyRetrievePassword );
83  mFreeBusyRetrievePasswordItem->setLabel( i18n("Free/Busy Retrieval Password") );
84  mFreeBusyRetrievePasswordItem->setWhatsThis( i18n("Password for retrieving free/busy information") );
85  addItem( mFreeBusyRetrievePasswordItem, QLatin1String( "FreeBusyRetrievePassword" ) );
86  mFreeBusyRetrieveSavePasswordItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "FreeBusyRetrieveSavePassword" ), mFreeBusyRetrieveSavePassword, false );
87  mFreeBusyRetrieveSavePasswordItem->setLabel( i18n("FreeBusyRetrieveSavePassword") );
88  addItem( mFreeBusyRetrieveSavePasswordItem, QLatin1String( "FreeBusyRetrieveSavePassword" ) );
89 
90  setCurrentGroup( QLatin1String( "Group Scheduling" ) );
91 
92  mBccItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "Bcc" ), mBcc, false );
93  mBccItem->setLabel( i18n("Send copy to owner when mailing events") );
94  mBccItem->setWhatsThis( i18n("Check this box to get a copy of all e-mail messages that KOrganizer sends at your request to event attendees.") );
95  addItem( mBccItem, QLatin1String( "Bcc" ) );
96  mMailTransportItem = new KConfigSkeleton::ItemString( currentGroup(), QLatin1String( "MailTransport" ), mMailTransport, QLatin1String( "false" ) );
97  mMailTransportItem->setLabel( i18n("Mail transport to use for sending e-mail messages") );
98  mMailTransportItem->setWhatsThis( i18n("If specified all, groupware e-mails will use this transport. Otherwise, the default one will be used.") );
99  addItem( mMailTransportItem, QLatin1String( "MailTransport" ) );
100 
101  setCurrentGroup( QLatin1String( "Hidden Options" ) );
102 
103  mOutlookCompatCounterProposalsItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "OutlookCompatCounterProposals" ), mOutlookCompatCounterProposals, false );
104  mOutlookCompatCounterProposalsItem->setLabel( i18n("Send Outlook-like pseudo counter proposals") );
105  addItem( mOutlookCompatCounterProposalsItem, QLatin1String( "OutlookCompatCounterProposals" ) );
106  mFreeBusyCheckHostnameItem = new KConfigSkeleton::ItemBool( currentGroup(), QLatin1String( "FreeBusyCheckHostname" ), mFreeBusyCheckHostname, false );
107  mFreeBusyCheckHostnameItem->setLabel( i18n("Check whether hostname and retrieval email address match") );
108  mFreeBusyCheckHostnameItem->setWhatsThis( i18n("With this setting you can configure whether the domain part of the free/busy URL has to match the domain part of the user ID you are looking for. For example, if this option is set, then looking for the free/busy data of joe@mydomain.com on the server www.yourdomain.com will fail.") );
109  addItem( mFreeBusyCheckHostnameItem, QLatin1String( "FreeBusyCheckHostname" ) );
110 }
111 
112 CalendarSettings::~CalendarSettings()
113 {
114  if (!s_globalCalendarSettings.isDestroyed()) {
115  s_globalCalendarSettings->q = 0;
116  }
117 }
118 
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:26 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal