KGameErrorDialog Class Reference
Use error(), warning() and information() to display the information about a network game. Error handling for KGame. More...
#include <kgameerrordialog.h>
Inheritance diagram for KGameErrorDialog:

Public Slots | |
void | slotError (int error, QString text) |
void | slotServerConnectionLost () |
void | slotClientConnectionLost (Q_UINT32 clientID, bool broken) |
void | slotUnsetKGame () |
Public Member Functions | |
KGameErrorDialog (QWidget *parent) | |
void | setKGame (const KGame *g) |
void | connectionError (QString s=QString::null) |
Protected Member Functions | |
void | error (const QString &errorText, QWidget *parent=0) |
Detailed Description
Use error(), warning() and information() to display the information about a network game. Error handling for KGame.Maybe a better solution is to use KMessageBoxes You can connect to the public slots, too - they will call the static functions, so that you can always have a KGameErrorDialog object lying around without losing much memory (a KGameErrorMessageDialog Object will be created)
- Author:
- Andreas Beckermann <b_mann@gmx.de>
Definition at line 39 of file kgameerrordialog.h.
Member Function Documentation
|
Automatically connects the KGame object to all error dependant slots. Create a KGameErrorDialog object, call this function and forget everything.
Definition at line 50 of file kgameerrordialog.cpp. References setKGame(), slotClientConnectionLost(), slotServerConnectionLost(), and slotUnsetKGame(). Referenced by setKGame(). |
|
KGame couldn't establish a connection. Use this if KGame::initConnection returns false
Definition at line 103 of file kgameerrordialog.cpp. References connectionError(). Referenced by connectionError(). |
|
The connection to the KMessageServer has been lost. See KGameNetwork::signalConnectionBroken Definition at line 77 of file kgameerrordialog.cpp. Referenced by setKGame(). |
|
The connection to a client has been lost by accident. See KGameNetwork::signalClientDisconnected Definition at line 84 of file kgameerrordialog.cpp. References slotClientConnectionLost(). Referenced by setKGame(), and slotClientConnectionLost(). |
|
Unsets a KGame which has been set using setKGame before. This is called automatically when the KGame object is destroyed and you normally don't have to call this yourself. Note that setKGame also unsets an already existing KGame object if exising. Definition at line 66 of file kgameerrordialog.cpp. Referenced by setKGame(). |
The documentation for this class was generated from the following files: