File indexing completed on 2024-12-01 06:50:58

0001 /*
0002     This file is part of the KDE games kwin4 program
0003     SPDX-FileCopyrightText: 2006 Martin Heni <kde@heni-online.de>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #ifndef CHATDLG_H
0009 #define CHATDLG_H
0010 
0011 // Qt
0012 #include <QDialog>
0013 
0014 class KGame;
0015 class KGameChat;
0016 class KChatDialog;
0017 class KWin4Player;
0018 
0019 /**
0020  * Subclass of the chat dialog provided by the KGame lib.
0021  * It supports a user defined chat and the setting of the
0022  * owner player
0023  */
0024 class ChatDlg : public QDialog
0025 {
0026     Q_OBJECT
0027 
0028 public:
0029     explicit ChatDlg(KGame *game, QWidget *parent = nullptr);
0030 
0031 public Q_SLOTS:
0032     void setPlayer(KWin4Player *p);
0033 
0034 private:
0035     KGameChat *mChat;
0036     KChatDialog *mChatDlg;
0037 };
0038 
0039 #endif // CHATDLG_H