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 #ifndef KGAMETHEME_H
00020 #define KGAMETHEME_H
00021
00022 #include <libkdegames_export.h>
00023
00024 #include <QtCore/QString>
00025
00026 class KGameThemePrivate;
00027 class QPixmap;
00028
00040 class KDEGAMES_EXPORT KGameTheme
00041 {
00042 public:
00043 KGameTheme(const QString &themeGroup = QLatin1String("KGameTheme"));
00044 virtual ~KGameTheme();
00045
00050 virtual bool loadDefault();
00061 virtual bool load(const QString &file);
00063 QString path() const;
00065 QString fileName() const;
00067 virtual QString graphics() const;
00069 QString property(const QString &key) const;
00071 QPixmap preview() const;
00081 virtual QString themeProperty(const QString &key) const;
00082
00083 private:
00084 friend class KGameThemePrivate;
00085 KGameThemePrivate *const d;
00086 };
00087
00088 #endif