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

superkaramba

  • sources
  • kde-4.12
  • kdeutils
  • superkaramba
  • src
themefile.h
Go to the documentation of this file.
1 /****************************************************************************
2 * themefile.h - Theme file handling
3 *
4 * Copyright (C) 2003 Hans Karlsson <karlsson.h@home.se>
5 * Copyright (C) 2003-2004 Adam Geitgey <adam@rootnode.org>
6 * Copyright (c) 2004 Petri Damst� <damu@iki.fi>
7 *
8 * This file is part of SuperKaramba.
9 *
10 * SuperKaramba is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * SuperKaramba is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License
21 * along with SuperKaramba; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 ****************************************************************************/
24 #ifndef THEMEFILE_H
25 #define THEMEFILE_H
26 
27 #include <KUrl>
28 
29 #include <QTextStream>
30 #include <QDir>
31 
32 #include "superkaramba_export.h"
33 class LineParser;
34 class ThemeLocale;
35 class ZipFile;
36 
41 class SUPERKARAMBA_EXPORT ThemeFile
42 {
43 public:
44  typedef QVector<ThemeFile> List;
45 
46  ThemeFile(const KUrl& url = KUrl());
47  ~ThemeFile();
48 
49  bool isZipTheme() const;
50  const QString& name() const;
51  const QString& version() const;
52  const QString& license() const;
53  const QString& id() const;
54  const QString& mo() const;
55  const QString& file() const;
56  const QString& scriptModule() const;
57  bool scriptModuleExists() const;
58  const QString& path() const;
59  const QString& description() const;
60  const QString& author() const;
61  const QString& authorEmail() const;
62  const QString& homepage() const;
63  QPixmap icon() const;
64  QString iconName() const;
65  bool exists() const;
66  bool isThemeFile(const QString& filename) const;
67  bool isValid() const;
68  QByteArray readThemeFile(const QString& filename) const;
69  bool fileExists(const QString& filename) const;
70  const ThemeLocale* locale() const;
71  bool canUninstall() const;
72  KUrl getUrlPath();
73 
74  bool set(const KUrl& url);
75  bool open();
76  bool nextLine(LineParser& parser);
77  bool close();
78 
79  QString extractArchive() const;
80  bool extractArchiveTo(const QString& path);
81  bool extractArchiveFileTo(const QString& file, const QString& path);
82  bool copyArchiveTo(const QString& path);
83 
84  static bool isZipFile(const QString& filename);
85  static QString canonicalFile(const QString& file);
86 
87 private:
88  void parseXml();
89  void mkdir(QDir dir);
90 
91  class Private;
92  Private* const d;
93 };
94 
95 #endif
superkaramba_export.h
ThemeLocale
Definition: themelocale.h:40
ThemeFile
Definition: themefile.h:41
LineParser
Definition: lineparser.h:6
SUPERKARAMBA_EXPORT
#define SUPERKARAMBA_EXPORT
Definition: superkaramba_export.h:32
ThemeFile::List
QVector< ThemeFile > List
Definition: themefile.h:44
description
static const char description[]
Definition: main.cpp:41
version
static const char version[]
Definition: main.cpp:44
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:07:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

superkaramba

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

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • kremotecontrol
  • ktimer
  • kwallet
  • superkaramba
  • sweeper

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