| 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 | #ifndef GAMEDIALOG_H |
| 24 | #define GAMEDIALOG_Hcxx . . $ `src/network/gamedialog.h:24:9`! |
| 25 | |
| 26 | #include "ui_gamedialog.h"cxx . . $ `<file>/build/ui/ui_gamedialog.h`/ |
| 27 | #include "defines.h"cxx . . $ `<file>/src/defines.h`/ |
| 28 | #include <QtWidgets> |
| 29 | |
| 30 | class NetworkConnectioncxx . . $ NetworkConnection#; |
| 31 | class PlayerListingcxx . . $ PlayerListing#; |
| 32 | |
| 33 | class GameDialogcxx . . $ GameDialog# : public QDialogcxx . . $ QDialog#,/*public NewGameDialog,*/public Uicxx . . $ Ui/::GameDialogcxx . . $ Ui/GameDialog# //, public Misc<QString> |
| 34 | { |
| 35 | Q_OBJECTcxx . . $ GameDialog#QPrivateSignal# |
| 36 | |
| 37 | public: |
| 38 | GameDialogcxx . . $ GameDialog#GameDialog(7882215976d6ada).(NetworkConnectioncxx . . $ NetworkConnection# * conn, const PlayerListingcxx . . $ PlayerListing# * opp);//QWidget* parent = 0, const char* name = 0, bool modal = true, WFlags fl = 0); |
| 39 | ~cxx . . $ GameDialog#`~GameDialog`(ced63f7c635d850d).GameDialogcxx . . $ GameDialog#(); |
| 40 | void set_oppRkcxx . . $ GameDialog#set_oppRk(4c89b026053e4d32).(QStringcxx . . $ QString# &rk) { oppRkcxx . . $ GameDialog#oppRk. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). rk; qDebugcxx . . $ QMessageLogger#QMessageLogger(1e8c11a11d48e725).("oppRk: %s", rk.toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).()); } |
| 41 | void set_myRkcxx . . $ GameDialog#set_myRk(4c89b026053e4d32).(QStringcxx . . $ QString# &rk) { myRkcxx . . $ GameDialog#myRk. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). rk; qDebugcxx . . $ QMessageLogger#QMessageLogger(1e8c11a11d48e725).("myRk: %s", rk.toLatin1cxx . . $ QString#toLatin1(ef52b713090bc85a).().constDatacxx . . $ QByteArray#constData(a9f41ea0e82d88cf).()); } |
| 42 | void set_myNamecxx . . $ GameDialog#set_myName(4c89b026053e4d32).(QStringcxx . . $ QString# &name) { myNamecxx . . $ GameDialog#myName. =cxx . . $ QString#`operator=`(b79fde0b0ce9b948). name; } |
| 43 | void set_is_nmatchcxx . . $ GameDialog#set_is_nmatch(b45ddcbc8423892c). (bool b) { is_nmatchcxx . . $ GameDialog#is_nmatch. = b; } |
| 44 | Uicxx . . $ Ui/::GameDialogcxx . . $ Ui/GameDialog# getUicxx . . $ GameDialog#getUi(bfff8b14f441f930).() {return uicxx . . $ GameDialog#ui.;} |
| 45 | void recvRequestcxx . . $ GameDialog#recvRequest(461bc273ee812ab9).(class MatchRequestcxx . . $ MatchRequest# * mr, unsigned long flags = 0); |
| 46 | void recvRefuseMatchcxx . . $ GameDialog#recvRefuseMatch(d4f767463ce0a6b3).(int motive = 0); |
| 47 | class MatchRequestcxx . . $ MatchRequest# * getMatchRequestcxx . . $ GameDialog#getMatchRequest(bd616a0a6add31e0).(void); |
| 48 | protected: |
| 49 | void closeEventcxx . . $ GameDialog#closeEvent(642e80679aeb34f8).(QCloseEventcxx . . $ QCloseEvent# *e); |
| 50 | |
| 51 | signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!: |
| 52 | void signal_sendCommandcxx . . $ GameDialog#signal_sendCommand(37c160c81b6367f7).(const QStringcxx . . $ QString# &cmd, bool localecho); |
| 53 | void signal_matchSettingscxx . . $ GameDialog#signal_matchSettings(23cd533786be7a23).(const QStringcxx . . $ QString#&, const QStringcxx . . $ QString#&, const QStringcxx . . $ QString#&, assessTypecxx . . $ assessType#); |
| 54 | void signal_removeDialogcxx . . $ GameDialog#signal_removeDialog(675ce9ca5dc6d27e).(GameDialogcxx . . $ GameDialog# *);//const QString&); |
| 55 | |
| 56 | public: |
| 57 | void slot_play_black_buttoncxx . . $ GameDialog#slot_play_black_button(49f6e7a06ebc5aa8).(void); |
| 58 | void slot_play_white_buttoncxx . . $ GameDialog#slot_play_white_button(49f6e7a06ebc5aa8).(void); |
| 59 | void slot_play_nigiri_buttoncxx . . $ GameDialog#slot_play_nigiri_button(49f6e7a06ebc5aa8).(void); |
| 60 | void ratedCB_changedcxx . . $ GameDialog#ratedCB_changed(b45ddcbc8423892c).(bool checked); |
| 61 | void slot_boardSizeSpincxx . . $ GameDialog#slot_boardSizeSpin(d4f767463ce0a6b3).(int); |
| 62 | void slot_handicapSpincxx . . $ GameDialog#slot_handicapSpin(d4f767463ce0a6b3).(int); |
| 63 | void slot_komiSpincxx . . $ GameDialog#slot_komiSpin(d4f767463ce0a6b3).(int); |
| 64 | void slot_timeTabcxx . . $ GameDialog#slot_timeTab(d4f767463ce0a6b3).(int); |
| 65 | void slot_timeSpincxx . . $ GameDialog#slot_timeSpin(49dbfc5ca47449c).(const QTimecxx . . $ QTime# &); |
| 66 | void slot_stonesTimeSpincxx . . $ GameDialog#slot_stonesTimeSpin(49dbfc5ca47449c).(const QTimecxx . . $ QTime# &); |
| 67 | void slot_stonesSpincxx . . $ GameDialog#slot_stonesSpin(d4f767463ce0a6b3).(int); |
| 68 | void slot_BYTimeSpincxx . . $ GameDialog#slot_BYTimeSpin(49dbfc5ca47449c).(const QTimecxx . . $ QTime# &); |
| 69 | void slot_BYPeriodTimeSpincxx . . $ GameDialog#slot_BYPeriodTimeSpin(49dbfc5ca47449c).(const QTimecxx . . $ QTime# &); |
| 70 | void slot_BYPeriodsSpincxx . . $ GameDialog#slot_BYPeriodsSpin(d4f767463ce0a6b3).(int); |
| 71 | void slot_ASIATimeSpincxx . . $ GameDialog#slot_ASIATimeSpin(49dbfc5ca47449c).(const QTimecxx . . $ QTime# &); |
| 72 | void slot_ASIAPeriodTimeSpincxx . . $ GameDialog#slot_ASIAPeriodTimeSpin(49dbfc5ca47449c).(const QTimecxx . . $ QTime# &); |
| 73 | void slot_ASIAPeriodsSpincxx . . $ GameDialog#slot_ASIAPeriodsSpin(d4f767463ce0a6b3).(int); |
| 74 | // pushbuttons |
| 75 | // void slot_swapcolors(); |
| 76 | // void slot_pbsuggest(); |
| 77 | void slot_offercxx . . $ GameDialog#slot_offer(b45ddcbc8423892c).(bool); |
| 78 | void slot_declinecxx . . $ GameDialog#slot_decline(49f6e7a06ebc5aa8).(); |
| 79 | void slot_changedcxx . . $ GameDialog#slot_changed(49f6e7a06ebc5aa8).(); |
| 80 | void slot_cancelcxx . . $ GameDialog#slot_cancel(49f6e7a06ebc5aa8).(); |
| 81 | // parser |
| 82 | // void slot_suggest(const QString&, const QString&, const QString&, const QString&, int); |
| 83 | // void slot_matchCreate(const QString&, const QString&); |
| 84 | |
| 85 | void slot_komiRequestcxx . . $ GameDialog#slot_komiRequest(7ae16150a604556).(const QStringcxx . . $ QString#&, int, int, bool); |
| 86 | // void slot_opponentopen(const QString&); |
| 87 | //void slot_dispute(const QString&, const QString&); |
| 88 | |
| 89 | private: |
| 90 | void save_to_preferencescxx . . $ GameDialog#save_to_preferences(49f6e7a06ebc5aa8).(void); |
| 91 | QTimecxx . . $ QTime# qtimeFromSecondscxx . . $ GameDialog#qtimeFromSeconds(bc1d3073fb5de629).(int); |
| 92 | unsigned int timeToSecondscxx . . $ GameDialog#timeToSeconds(9d92bb507a34628c).(QStringcxx . . $ QString# time); //duplicated in connect code FIXME |
| 93 | unsigned int timeToSecondscxx . . $ GameDialog#timeToSeconds(eec77867f105fb76).(const QTimecxx . . $ QTime# & t); |
| 94 | void clearChangedFlagscxx . . $ GameDialog#clearChangedFlags(49f6e7a06ebc5aa8).(void); |
| 95 | bool getProperKomiHandicapcxx . . $ GameDialog#getProperKomiHandicap(a24a5210c7470c29).(QStringcxx . . $ QString# rankA, QStringcxx . . $ QString# rankB, float * komi, unsigned int * handicap); |
| 96 | bool we_are_challengercxx . . $ GameDialog#we_are_challenger.; //FIXME, do we need this? |
| 97 | Uicxx . . $ Ui/::GameDialogcxx . . $ Ui/GameDialog# uicxx . . $ GameDialog#ui.; |
| 98 | bool have_suggestdatacxx . . $ GameDialog#have_suggestdata.; |
| 99 | int dialog_changedcxx . . $ GameDialog#dialog_changed.; |
| 100 | bool color_request_changedcxx . . $ GameDialog#color_request_changed.; |
| 101 | bool ratedchangedcxx . . $ GameDialog#ratedchanged.; |
| 102 | bool boardSizechangedcxx . . $ GameDialog#boardSizechanged.; |
| 103 | bool handicapchangedcxx . . $ GameDialog#handicapchanged.; |
| 104 | bool komichangedcxx . . $ GameDialog#komichanged.; |
| 105 | bool ttchangedcxx . . $ GameDialog#ttchanged.; |
| 106 | bool timechangedcxx . . $ GameDialog#timechanged.; |
| 107 | bool stonesTimechangedcxx . . $ GameDialog#stonesTimechanged.; |
| 108 | bool stoneschangedcxx . . $ GameDialog#stoneschanged.; |
| 109 | bool BYPeriodTimechangedcxx . . $ GameDialog#BYPeriodTimechanged.; |
| 110 | bool BYPeriodschangedcxx . . $ GameDialog#BYPeriodschanged.; |
| 111 | bool ASIATimechangedcxx . . $ GameDialog#ASIATimechanged.; |
| 112 | bool ASIAPeriodTimechangedcxx . . $ GameDialog#ASIAPeriodTimechanged.; |
| 113 | bool ASIAPeriodschangedcxx . . $ GameDialog#ASIAPeriodschanged.; |
| 114 | QStringcxx . . $ QString# pwhitecxx . . $ GameDialog#pwhite.; |
| 115 | QStringcxx . . $ QString# pblackcxx . . $ GameDialog#pblack.; |
| 116 | QStringcxx . . $ QString# h19cxx . . $ GameDialog#h19., h13cxx . . $ GameDialog#h13., h9cxx . . $ GameDialog#h9.; |
| 117 | QStringcxx . . $ QString# k19cxx . . $ GameDialog#k19., k13cxx . . $ GameDialog#k13., k9cxx . . $ GameDialog#k9.; |
| 118 | QStringcxx . . $ QString# oppRkcxx . . $ GameDialog#oppRk.; |
| 119 | QStringcxx . . $ QString# myRkcxx . . $ GameDialog#myRk.; |
| 120 | QStringcxx . . $ QString# myNamecxx . . $ GameDialog#myName.; |
| 121 | bool komi_requestcxx . . $ GameDialog#komi_request.; |
| 122 | bool is_nmatchcxx . . $ GameDialog#is_nmatch.; |
| 123 | NetworkConnectioncxx . . $ NetworkConnection# * connectioncxx . . $ GameDialog#connection.; |
| 124 | class MatchRequestcxx . . $ MatchRequest# * current_match_requestcxx . . $ GameDialog#current_match_request.; |
| 125 | const PlayerListingcxx . . $ PlayerListing# * opponentcxx . . $ GameDialog#opponent.; |
| 126 | class Soundcxx . . $ Sound# * gameSoundcxx . . $ GameDialog#gameSound.; |
| 127 | bool offered_and_unrefusedcxx . . $ GameDialog#offered_and_unrefused.; |
| 128 | unsigned long flagscxx . . $ GameDialog#flags.; |
| 129 | }; |
| 130 | |
| 131 | #endif |