• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • libtdegames
 

libtdegames

  • libtdegames
  • kgame
  • dialogs
kgameerrordialog.h
1/*
2 This file is part of the TDE games library
3 Copyright (C) 2001 Andreas Beckermann (b_mann@gmx.de)
4 Copyright (C) 2001 Martin Heni (martin@heni-online.de)
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License version 2 as published by the Free Software Foundation.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
19*/
20
21#ifndef __KGAMEERRORDIALOG_H__
22#define __KGAMEERRORDIALOG_H__
23
24#include <kdialogbase.h>
25
26class KGame;
27class KGameErrorDialogPrivate;
28
39class KGameErrorDialog : public TQObject
40{
41 TQ_OBJECT
42
43public:
44 KGameErrorDialog(TQWidget* parent);
45 ~KGameErrorDialog();
46
53 void setKGame(const KGame* g);
54
61 void connectionError(TQString s = TQString());
62
63public slots:
64 void slotError(int error, TQString text);
65
71 void slotServerConnectionLost();
72
78 void slotClientConnectionLost(TQ_UINT32 clientID,bool broken);
79
88 void slotUnsetKGame();
89
90protected:
91 void error(const TQString& errorText, TQWidget* parent = 0);
92
93private:
94 KGameErrorDialogPrivate* d;
95};
96
104class KGameErrorMessageDialog : public KDialogBase
105{
106 TQ_OBJECT
107
108public:
109 KGameErrorMessageDialog(TQWidget* parent);
110 ~KGameErrorMessageDialog();
111
112private:
113};
114
115#endif
KGameErrorDialog
Use error(), warning() and information() to display the information about a network game.
Definition: kgameerrordialog.h:40
KGameErrorDialog::slotClientConnectionLost
void slotClientConnectionLost(TQ_UINT32 clientID, bool broken)
The connection to a client has been lost by accident.
Definition: kgameerrordialog.cpp:84
KGameErrorDialog::slotServerConnectionLost
void slotServerConnectionLost()
The connection to the KMessageServer has been lost.
Definition: kgameerrordialog.cpp:77
KGameErrorDialog::connectionError
void connectionError(TQString s=TQString())
KGame couldn't establish a connection.
Definition: kgameerrordialog.cpp:103
KGameErrorDialog::slotUnsetKGame
void slotUnsetKGame()
Unsets a KGame which has been set using setKGame before.
Definition: kgameerrordialog.cpp:66
KGameErrorDialog::setKGame
void setKGame(const KGame *g)
Automatically connects the KGame object to all error dependant slots.
Definition: kgameerrordialog.cpp:50
KGameErrorMessageDialog
The real class for error messages.
Definition: kgameerrordialog.h:105
KGame
The main KDE game object.
Definition: kgame.h:63

libtdegames

Skip menu "libtdegames"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

libtdegames

Skip menu "libtdegames"
  • libtdegames
Generated for libtdegames by doxygen 1.9.4
This website is maintained by Timothy Pearson.