libtdegames
kgameerrordialog.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __KGAMEERRORDIALOG_H__
00022 #define __KGAMEERRORDIALOG_H__
00023
00024 #include <kdialogbase.h>
00025
00026 class KGame;
00027 class KGameErrorDialogPrivate;
00028
00039 class KGameErrorDialog : public TQObject
00040 {
00041 Q_OBJECT
00042
00043 public:
00044 KGameErrorDialog(TQWidget* parent);
00045 ~KGameErrorDialog();
00046
00053 void setKGame(const KGame* g);
00054
00061 void connectionError(TQString s = TQString());
00062
00063 public slots:
00064 void slotError(int error, TQString text);
00065
00071 void slotServerConnectionLost();
00072
00078 void slotClientConnectionLost(TQ_UINT32 clientID,bool broken);
00079
00088 void slotUnsetKGame();
00089
00090 protected:
00091 void error(const TQString& errorText, TQWidget* parent = 0);
00092
00093 private:
00094 KGameErrorDialogPrivate* d;
00095 };
00096
00104 class KGameErrorMessageDialog : public KDialogBase
00105 {
00106 Q_OBJECT
00107
00108 public:
00109 KGameErrorMessageDialog(TQWidget* parent);
00110 ~KGameErrorMessageDialog();
00111
00112 private:
00113 };
00114
00115 #endif