libkdegames
kgametheme.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KGAMETHEME_H
00021 #define KGAMETHEME_H
00022
00023 #include <libkdegames_export.h>
00024
00025 #include <QtCore/QString>
00026
00027 class KGameThemePrivate;
00028 class QPixmap;
00029
00043 class KDEGAMES_EXPORT KGameTheme
00044 {
00045 public:
00046 KGameTheme(const QString &themeGroup = QLatin1String("KGameTheme"));
00047 virtual ~KGameTheme();
00048
00053 virtual bool loadDefault();
00064 virtual bool load(const QString &file);
00066 QString path() const;
00068 QString fileName() const;
00070 virtual QString graphics() const;
00072 QString property(const QString &key) const;
00074 QPixmap preview() const;
00084 virtual QString themeProperty(const QString &key) const;
00085
00086 private:
00087 friend class KGameThemePrivate;
00088 KGameThemePrivate *const d;
00089 };
00090
00091 #endif