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

korganizer

  • sources
  • kde-4.14
  • 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 
28 #include "koprefs.h"
29 
30 namespace KOrg {
31 
37 class ThemeImporter : public QXmlStreamReader
38 {
39  public:
40  ThemeImporter();
41  ThemeImporter( QIODevice *device );
42  ~ThemeImporter();
43 
47  bool read( QIODevice *device );
48 
49  private:
53  void readThemeXml();
54 
56 
60  void readElement( const QString &viewType = QString(),
61  const int year = 0, const int month = 0,
62  const int day = 0 );
63 
67  void readDate( const QString &viewType = QString(),
68  const int year = 0, const int month = 0,
69  const int day = 0 );
73  void readView( const QString &viewType = QString(),
74  const int year = 0, const int month = 0,
75  const int day = 0 );
76 
80  void readUnknownElement();
81 
83 
87  void readCalendarItems( const QString &viewType = QString(),
88  const int year = 0, const int month = 0,
89  const int day = 0 );
93  void readGrid( const QString &viewType = QString(),
94  const int year = 0, const int month = 0,
95  const int day = 0 );
99  void readHolidays( const QString &viewType = QString(),
100  const int year = 0, const int month = 0,
101  const int day = 0 );
105  void readMarcusBainsLine( const QString &viewType = QString(),
106  const int year = 0, const int month = 0,
107  const int day = 0 );
111  void readTimeLabels( const QString &viewType = QString(),
112  const int year = 0, const int month = 0,
113  const int day = 0 );
114 
116 
125  void setColor( const QString &viewType, const int year,
126  const int month, const int day,
127  const QString &key, const QString &value );
128 
133  void setFont( const QString &viewType, const int year, const int month,
134  const int day, const QString &key, const QString &family,
135  const QString &styleHint, const int pointSize,
136  const int weight, const QString &style,
137  const int stretchFactor );
138 
143  void setPath( const QString &viewType, const int year,
144  const int month, const int day,
145  const QString &key, const QString &value );
146 
151  void setString( const QString &viewType, const int year,
152  const int month, const int day,
153  const QString &key, const QString &value );
154 
156 
160  KConfigGroup *configGroup( const QString &viewType );
161 
165  QList<KConfigGroup *> perViewConfigGroups();
166 
171  KConfigGroup *registerPerViewConfigGroup( KConfigGroup *g,
172  const QString &viewType );
176  KConfigGroup *createPerViewConfigGroup( const QString &viewType ) const;
177  QMap<QString, KConfigGroup*> mPerViewConfigGroups;
178 
179 };
180 
181 }
182 
183 #endif
QIODevice
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:37
QMap< QString, KConfigGroup * >
KOrg::ThemeImporter::read
bool read(QIODevice *device)
Read the XML stream from a device.
Definition: themeimporter.cpp:46
QXmlStreamReader::device
QIODevice * device() const
koprefs.h
KOrg::ThemeImporter::~ThemeImporter
~ThemeImporter()
Definition: themeimporter.cpp:38
QString
QList
QXmlStreamReader
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:59 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
  • 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