Debian Codegraph @

src/network/createroomdialog.h

raw symbols SCIP
1 /***************************************************************************
2 * Copyright (C) 2009 by The qGo Project *
3 * *
4 * This file is part of qGo. *
5 * *
6 * qGo is free software: you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License as published by *
8 * the Free Software Foundation; either version 2 of the License, or *
9 * (at your option) any later version. *
10 * *
11 * This program is distributed in the hope that it will be useful, *
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14 * GNU General Public License for more details. *
15 * *
16 * You should have received a copy of the GNU General Public License *
17 * along with this program; if not, see <http://www.gnu.org/licenses/> *
18 * or write to the Free Software Foundation, Inc., *
19 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
20 ***************************************************************************/
21
22
23 #include <QDialog>
24 #include "ui_createroomdialog.h"
25
26 class QLabel;
27 class QDialogButtonBox;
28 class NetworkConnection;
29
30 class CreateRoomDialog : public QDialog, public Ui::CreateRoomDialog
31 {
32 Q_OBJECT
33 public:
34 CreateRoomDialog(NetworkConnection * conn);
35 ~CreateRoomDialog();
36 void slot_create(void);
37 void slot_cancel(void);
38
39 void slot_privateCB(bool);
40
41 void slot_roomTypeTab(void);
42 void slot_opponentStrongerRB(void);
43 void slot_opponentEvenRB(void);
44 void slot_opponentWeakerRB(void);
45 void slot_opponentAnyRB(void);
46
47 void slot_timeQuickRB(void);
48 void slot_timeNormalRB(void);
49 void slot_timePonderousRB(void);
50 void slot_timeAnyRB(void);
51 void slot_oneOnOneRB(void);
52 void slot_pairRB(void);
53 void slot_teachingRB(void);
54 void slot_liveRB(void);
55 private:
56 NetworkConnection * connection;
57 //Ui::CreateRoomDialog ui;
58 };
59
60 class RoomCreate
61 {
62 public:
63 unsigned char * title;
64 unsigned char * password;
65 enum roomType { GAME = 0, GOMOKU, CHAT, REVIEW, MULTI, VARIATION } type;
66 enum OpponentStrength { STRONGER = 0, EVEN, WEAKER, ANYBODY } opponentStrength;
67 enum TimeLimit { QUICK = 0, NORMAL, PONDEROUS, ANYTIME } timeLimit;
68 enum Topic { BADUK = 0, MOVIES, MUSIC, SPORTS, GAMES, MANGA, HUMOR, CURRENTAFFAIRS,
69 LITERATURE, HOBBIES, TRAVEL, CLIMBING, ENTERTAINMENT, COMPUTING, INTERNET, MISC } topic;
70 enum Age { ALL=0, _9, _10_19, _20_29, _30_39, _40_49, _50_59, _60_69, _70 } age;
71 enum Location { KOREA = 0, CHINA, JAPAN, THAI, US, EUROPE, AUSTRALIA, FOREIGN, OTHER } location;
72 };