KGameErrorDialog Class Reference
#include <kgameerrordialog.h>
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)
Definition at line 39 of file kgameerrordialog.h.
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) | |
~KGameErrorDialog () | |
void | setKGame (const KGame *g) |
void | connectionError (QString s=QString::null) |
Protected Member Functions | |
void | error (const QString &errorText, QWidget *parent=0) |
Member Function Documentation
void KGameErrorDialog::setKGame | ( | const KGame * | g | ) |
Automatically connects the KGame object to all error dependant slots.
Create a KGameErrorDialog object, call this function and forget everything.
- Parameters:
-
g The KGame which will emit the erorrs (or not ;-) )
Definition at line 50 of file kgameerrordialog.cpp.
void KGameErrorDialog::connectionError | ( | QString | s = QString::null |
) |
KGame couldn't establish a connection.
Use this if KGame::initConnection returns false
- Parameters:
-
s A string that describes the error further (like port is already in use). Will be ignored if QString::null
Definition at line 103 of file kgameerrordialog.cpp.
void KGameErrorDialog::slotServerConnectionLost | ( | ) | [slot] |
The connection to the KMessageServer has been lost.
See KGameNetwork::signalConnectionBroken
Definition at line 77 of file kgameerrordialog.cpp.
void KGameErrorDialog::slotClientConnectionLost | ( | Q_UINT32 | clientID, | |
bool | broken | |||
) | [slot] |
The connection to a client has been lost by accident.
See KGameNetwork::signalClientDisconnected
Definition at line 84 of file kgameerrordialog.cpp.
void KGameErrorDialog::slotUnsetKGame | ( | ) | [slot] |
The documentation for this class was generated from the following files: