libkdegames/kgame
kgameerrordialog.h
Go to the documentation of this file.00001 /* 00002 This file is part of the KDE games library 00003 Copyright (C) 2001 Andreas Beckermann (b_mann@gmx.de) 00004 Copyright (C) 2001 Martin Heni (kde at heni-online.de) 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License version 2 as published by the Free Software Foundation. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef __KGAMEERRORDIALOG_H__ 00022 #define __KGAMEERRORDIALOG_H__ 00023 00024 #include <kdialog.h> 00025 00026 class KGame; 00027 class KGameErrorDialogPrivate; 00028 00041 class KGameErrorDialog : public QObject 00042 { 00043 Q_OBJECT 00044 public: 00045 explicit KGameErrorDialog(QWidget* parent); 00046 ~KGameErrorDialog(); 00047 00054 void setKGame(const KGame* g); 00055 00062 void connectionError(const QString& s = QString()); 00063 00064 public Q_SLOTS: 00065 void slotError(int error, const QString& text); 00066 00072 void slotServerConnectionLost(); 00073 00079 void slotClientConnectionLost(quint32 clientID,bool broken); 00080 00089 void slotUnsetKGame(); 00090 00091 protected: 00092 void error(const QString& errorText, QWidget* parent = 0); 00093 00094 private: 00095 KGameErrorDialogPrivate* d; 00096 }; 00097 00107 class KGameErrorMessageDialog : public KDialog 00108 { 00109 Q_OBJECT 00110 public: 00111 KGameErrorMessageDialog(QWidget* parent); 00112 ~KGameErrorMessageDialog(); 00113 00114 private: 00115 }; 00116 00117 #endif
KDE 4.2 API Reference