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

korganizer

  • sources
  • kde-4.12
  • kdepim
  • korganizer
  • themes
themeimporter.h
Go to the documentation of this file.
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 2007 Loïc Corbasson <loic.corbasson@gmail.com>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License as published by the Free Software Foundation; either
9  version 2 of the License, or (at your option) any later version.
10 
11  This library is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  Library General Public License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to
18  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  Boston, MA 02110-1301, USA.
20 */
21 #ifndef THEMEIMPORTER_H
22 #define THEMEIMPORTER_H
23 
24 #include <QtXml/QXmlStreamReader>
25 
26 #include <KConfig>
27 #include <KUrl>
28 
29 #include "koprefs.h"
30 
31 namespace KOrg {
32 
38 class ThemeImporter : public QXmlStreamReader
39 {
40  public:
41  ThemeImporter();
42  ThemeImporter( QIODevice *device );
43  ~ThemeImporter();
44 
48  bool read( QIODevice *device );
49 
50  private:
54  void readThemeXml();
55 
57 
61  void readElement( const QString &viewType = QString(),
62  const int year = 0, const int month = 0,
63  const int day = 0 );
64 
68  void readDate( const QString &viewType = QString(),
69  const int year = 0, const int month = 0,
70  const int day = 0 );
74  void readView( const QString &viewType = QString(),
75  const int year = 0, const int month = 0,
76  const int day = 0 );
77 
81  void readUnknownElement();
82 
84 
88  void readCalendarItems( const QString &viewType = QString(),
89  const int year = 0, const int month = 0,
90  const int day = 0 );
94  void readGrid( const QString &viewType = QString(),
95  const int year = 0, const int month = 0,
96  const int day = 0 );
100  void readHolidays( const QString &viewType = QString(),
101  const int year = 0, const int month = 0,
102  const int day = 0 );
106  void readMarcusBainsLine( const QString &viewType = QString(),
107  const int year = 0, const int month = 0,
108  const int day = 0 );
112  void readTimeLabels( const QString &viewType = QString(),
113  const int year = 0, const int month = 0,
114  const int day = 0 );
115 
117 
126  void setColor( const QString &viewType, const int year,
127  const int month, const int day,
128  const QString &key, const QString &value );
129 
134  void setFont( const QString &viewType, const int year, const int month,
135  const int day, const QString &key, const QString &family,
136  const QString &styleHint, const int pointSize,
137  const int weight, const QString &style,
138  const int stretchFactor );
139 
144  void setPath( const QString &viewType, const int year,
145  const int month, const int day,
146  const QString &key, const QString &value );
147 
152  void setString( const QString &viewType, const int year,
153  const int month, const int day,
154  const QString &key, const QString &value );
155 
157 
161  KConfigGroup *configGroup( const QString &viewType );
162 
166  QList<KConfigGroup *> perViewConfigGroups();
167 
172  KConfigGroup *registerPerViewConfigGroup( KConfigGroup *g,
173  const QString &viewType );
177  KConfigGroup *createPerViewConfigGroup( const QString &viewType ) const;
178  QMap<QString, KConfigGroup*> mPerViewConfigGroups;
179 
180 };
181 
182 }
183 
184 #endif
KOrg::ThemeImporter::ThemeImporter
ThemeImporter()
Definition: themeimporter.cpp:29
KOrg::ThemeImporter
Class to import an XML theme file's settings into KOrganizer's KConfig-based configuration file...
Definition: themeimporter.h:38
KOrg::ThemeImporter::read
bool read(QIODevice *device)
Read the XML stream from a device.
Definition: themeimporter.cpp:46
koprefs.h
KOrg::ThemeImporter::~ThemeImporter
~ThemeImporter()
Definition: themeimporter.cpp:38
QXmlStreamReader
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

korganizer

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

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

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