KDEGames

kgametheme.h
1 /*
2  Copyright (C) 2007 Mauricio Piacentini <[email protected]>
3  Copyright (C) 2007 Matt Williams <[email protected]>
4 
5  This library is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18 */
19 
20 #ifndef KGAMETHEME_H
21 #define KGAMETHEME_H
22 
23 #include "libkdegamesprivate_export.h"
24 
25 #include <QString>
26 #include <QLoggingCategory>
27 
28 Q_DECLARE_LOGGING_CATEGORY(GAMES_LIB)
29 
30 class KGameThemePrivate;
31 class QPixmap;
32 
47 class KDEGAMESPRIVATE_EXPORT KGameTheme
48 {
49  public:
50  explicit KGameTheme(const QString &themeGroup = QStringLiteral("KGameTheme"));
51  virtual ~KGameTheme();
52 
57  virtual bool loadDefault();
68  virtual bool load(const QString &file);
70  QString path() const;
72  QString prefix() const;
74  QString fileName() const;
76  virtual QString graphics() const;
78  QString property(const QString &key) const;
80  QPixmap preview() const;
90  virtual QString themeProperty(const QString &key) const;
91 
92  private:
93  friend class KGameThemePrivate;
94  KGameThemePrivate *const d;
95 };
96 
97 #endif
Class for loading theme files.
Definition: kgametheme.h:47
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Nov 26 2020 22:36:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.