kgametheme.h

Go to the documentation of this file.
00001 /*
00002     Copyright (C) 2007 Mauricio Piacentini   <mauricio@tabuleiro.com>
00003 
00004     This library is free software; you can redistribute it and/or modify
00005     it under the terms of the GNU General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or
00007     (at your option) any later version.
00008 
00009     This program is distributed in the hope that it will be useful,
00010     but WITHOUT ANY WARRANTY; without even the implied warranty of
00011     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012     GNU General Public License for more details.
00013 
00014     You should have received a copy of the GNU General Public License
00015     along with this program; if not, write to the Free Software
00016     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
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

Generated on Sun Mar 16 08:02:53 2008 for Libkdegames by  doxygen 1.5.3