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

granatier

  • sources
  • kde-4.14
  • kdegames
  • granatier
  • src
  • config
arenasettings.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2009 Mathias Kraus <k.hias@gmx.de>
3  Copyright (C) 2007 Mauricio Piacentini <mauricio@tabuleiro.com>
4  Copyright (C) 2007 Matt Williams <matt@milliams.com>
5 
6  This library is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program; if not, write to the Free Software
18  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef ARENASETTINGS_H
22 #define ARENASETTINGS_H
23 
24 #include <QtCore/QString>
25 
26 class ArenaSettingsPrivate;
27 
41 class ArenaSettings
42 {
43  public:
44  ArenaSettings(const QString &arenaGroup = QLatin1String("Arena"));
45  virtual ~ArenaSettings();
46 
51  virtual bool loadDefault();
61  virtual bool load(const QString &file);
63  QString path() const;
65  QString fileName() const;
67  virtual QString graphics() const;
69  QString property(const QString &key) const;
79  virtual QString arenaProperty(const QString &key) const;
80 
81  private:
82  friend class ArenaSettingsPrivate;
83  ArenaSettingsPrivate *const d;
84 };
85 
86 #endif
ArenaSettings::load
virtual bool load(const QString &file)
Load a specific arena file.
Definition: arenasettings.cpp:64
ArenaSettings::~ArenaSettings
virtual ~ArenaSettings()
Definition: arenasettings.cpp:52
ArenaSettings::fileName
QString fileName() const
Definition: arenasettings.cpp:146
ArenaSettings::graphics
virtual QString graphics() const
Definition: arenasettings.cpp:155
ArenaSettings::property
QString property(const QString &key) const
Definition: arenasettings.cpp:125
ArenaSettings::ArenaSettings
ArenaSettings(const QString &arenaGroup=QLatin1String("Arena"))
Definition: arenasettings.cpp:45
ArenaSettings::ArenaSettingsPrivate
friend class ArenaSettingsPrivate
Definition: arenasettings.h:82
QString
ArenaSettings::arenaProperty
virtual QString arenaProperty(const QString &key) const
Possible keys:
Definition: arenasettings.cpp:164
QLatin1String
ArenaSettings
Class for loading arena files.
Definition: arenasettings.h:41
ArenaSettings::path
QString path() const
Definition: arenasettings.cpp:137
ArenaSettings::loadDefault
virtual bool loadDefault()
Load the default arena file.
Definition: arenasettings.cpp:56
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

granatier

Skip menu "granatier"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdegames API Reference

Skip menu "kdegames API Reference"
  • granatier
  • kapman
  • kblackbox
  • kgoldrunner
  • kigo
  • kmahjongg
  • KShisen
  • ksquares
  • libkdegames
  •   highscore
  •   libkdegamesprivate
  •     kgame
  • libkmahjongg
  • palapeli
  •   libpala

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