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

calendarsupport

  • sources
  • kde-4.14
  • kdepim
  • calendarsupport
kcalprefs.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or
7  (at your option) any later version.
8 
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  GNU General Public License for more details.
13 
14  You should have received a copy of the GNU General Public License along
15  with this program; if not, write to the Free Software Foundation, Inc.,
16  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 
18  As a special exception, permission is given to link this program
19  with any edition of Qt, and distribute the resulting executable,
20  without including the source code for Qt in the source distribution.
21 */
22 #ifndef CALENDARSUPPORT_KCALPREFS_H
23 #define CALENDARSUPPORT_KCALPREFS_H
24 
25 #include "calendarsupport_export.h"
26 #include "kcalprefs_base.h"
27 
28 #include <Akonadi/Entity>
29 
30 #include <KDateTime>
31 
32 namespace CalendarSupport {
33 
34 class CALENDARSUPPORT_EXPORT KCalPrefs : public KCalPrefsBase
35 {
36  public:
39  KCalPrefs();
40  virtual ~KCalPrefs();
41 
44  static KCalPrefs *instance();
45 
47  void usrSetDefaults();
48 
50  void usrReadConfig();
51 
53  void usrWriteConfig();
54 
55  protected:
56  void setTimeZoneDefault();
57 
59  void fillMailDefaults();
60 
61  public:
62  // preferences data
63  void setFullName( const QString & );
64  QString fullName();
65  void setEmail( const QString & );
66  QString email();
68  QStringList allEmails();
70  QStringList fullEmails();
72  bool thatIsMe( const QString &email );
73 
74  void setTimeSpec( const KDateTime::Spec &spec );
75  KDateTime::Spec timeSpec();
76 
77  QString mailTransport() const;
78 
79  Akonadi::Entity::Id defaultCalendarId() const;
80  void setDefaultCalendarId( const Akonadi::Entity::Id );
81 
82  void setCategoryColor( const QString &cat, const QColor &color );
83  QColor categoryColor( const QString &cat ) const;
84  bool hasCategoryColor( const QString &cat ) const;
85 
86  void setDayBegins( const QDateTime &dateTime );
87  QDateTime dayBegins() const;
88 
89  private:
90  class Private;
91  Private *const d;
92 };
93 
94 }
95 
96 #endif
calendarsupport_export.h
KCalPrefsBase
QString
CalendarSupport::KCalPrefs
Definition: kcalprefs.h:34
QColor
QStringList
CALENDARSUPPORT_EXPORT
#define CALENDARSUPPORT_EXPORT
Definition: calendarsupport_export.h:36
QDateTime
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

calendarsupport

Skip menu "calendarsupport"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

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