• 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
playerselector.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright 2012 Mathias Kraus <k.hias@gmx.de> *
3  * Copyright 2012 Stefan Majewsky <majewsky@gmx.net> *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU Library General Public License *
7  * version 2 as published by the Free Software Foundation *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU Library General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU Library General Public *
15  * License along with this program; if not, write to the *
16  * Free Software Foundation, Inc., *
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
18  ***************************************************************************/
19 
20 #ifndef PLAYERSELECTOR_H
21 #define PLAYERSELECTOR_H
22 
23 #include <QtGui/QWidget>
24 
25 class PlayerSettings;
26 class PlayerProvider;
27 
28 class PlayerSelector : public QWidget
29 {
30  Q_OBJECT
31  Q_DISABLE_COPY(PlayerSelector)
32 public:
34  enum Option {
35  DefaultBehavior = 0,
38  EnableNewStuffDownload = 1 << 0
39  };
40  Q_DECLARE_FLAGS(Options, Option)
41 
42  explicit PlayerSelector(PlayerSettings* playerSettings, Options options = DefaultBehavior, QWidget* parent = 0);
43  virtual ~PlayerSelector();
44 public Q_SLOTS:
50  void showAsDialog(const QString& caption = QString());
51 private:
52  class Dialog;
53  class Private;
54  Private* const d;
55 
56  Q_PRIVATE_SLOT(d, void _k_showNewStuffDialog());
57 };
58 
59 Q_DECLARE_OPERATORS_FOR_FLAGS(PlayerSelector::Options)
60 
61 #endif // PLAYERSELECTOR_H
QWidget
PlayerSelector::EnableNewStuffDownload
Enable downloading of additional themes with KNewStuff3.
Definition: playerselector.h:38
PlayerSelector
Definition: playerselector.h:28
PlayerSettings
Definition: playersettings.h:27
QString
PlayerSelector::Option
Option
Flags which control the behavior of PlayerSelector.
Definition: playerselector.h:34
PlayerSelector::showAsDialog
void showAsDialog(const QString &caption=QString())
Create and show a non-modal dialog which displays this selector.
Definition: playerselector.cpp:203
QObject::parent
QObject * parent() const
PlayerSelector::DefaultBehavior
Definition: playerselector.h:35
QWidget::caption
QString caption() const
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