| 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 | class NetworkConnectioncxx . . $ NetworkConnection#; |
| 24 | class QStringcxx . . $ QString#; |
| 25 | |
| 26 | class BoardDispatchcxx . . $ BoardDispatch# |
| 27 | { |
| 28 | public: |
| 29 | BoardDispatchcxx . . $ BoardDispatch#BoardDispatch(6099f5785a5456d1).(NetworkConnectioncxx . . $ NetworkConnection# * conn, class GameListingcxx . . $ GameListing# * l); |
| 30 | ~cxx . . $ BoardDispatch#`~BoardDispatch`(49f6e7a06ebc5aa8).BoardDispatchcxx . . $ BoardDispatch#(); |
| 31 | bool canClosecxx . . $ BoardDispatch#canClose(c9857a73d68e59ba).(void); |
| 32 | void closeBoardcxx . . $ BoardDispatch#closeBoard(49f6e7a06ebc5aa8).(void); |
| 33 | void setConnectioncxx . . $ BoardDispatch#setConnection(bdf7e61fb2b15626).(NetworkConnectioncxx . . $ NetworkConnection# * conn); |
| 34 | void recvMovecxx . . $ BoardDispatch#recvMove(d174a3d9cfb0dd75).(class MoveRecordcxx . . $ MoveRecord# * m); |
| 35 | void sendMovecxx . . $ BoardDispatch#sendMove(d174a3d9cfb0dd75).(class MoveRecordcxx . . $ MoveRecord# * m); |
| 36 | void sendRequestMatchModecxx . . $ BoardDispatch#sendRequestMatchMode(49f6e7a06ebc5aa8).(); |
| 37 | bool isClockStoppedcxx . . $ BoardDispatch#isClockStopped(c9857a73d68e59ba).(void) { return clockStoppedcxx . . $ BoardDispatch#clockStopped.; }; |
| 38 | void stopTimecxx . . $ BoardDispatch#stopTime(49f6e7a06ebc5aa8).(void) { clockStoppedcxx . . $ BoardDispatch#clockStopped. = true; }; |
| 39 | void startTimecxx . . $ BoardDispatch#startTime(49f6e7a06ebc5aa8).(void) { clockStoppedcxx . . $ BoardDispatch#clockStopped. = false; }; |
| 40 | void moveControlcxx . . $ BoardDispatch#moveControl(4c89b026053e4d32).(QStringcxx . . $ QString# & player); |
| 41 | void sendTimeLosscxx . . $ BoardDispatch#sendTimeLoss(49f6e7a06ebc5aa8).(void); |
| 42 | void gameDataChangedcxx . . $ BoardDispatch#gameDataChanged(49f6e7a06ebc5aa8).(void); |
| 43 | void openBoardcxx . . $ BoardDispatch#openBoard(49f6e7a06ebc5aa8).(void); |
| 44 | void recvTimecxx . . $ BoardDispatch#recvTime(63f8d2dcefae8817).(const class TimeRecordcxx . . $ TimeRecord# & wt, const class TimeRecordcxx . . $ TimeRecord# & bt); |
| 45 | void recvAddTimecxx . . $ BoardDispatch#recvAddTime(909c33aa10af95dd).(int minutes, QStringcxx . . $ QString# player_name); |
| 46 | void recvResultcxx . . $ BoardDispatch#recvResult(c72a8b5aed169521).(class GameResultcxx . . $ GameResult# * r); |
| 47 | void saveRecordToGameDatacxx . . $ BoardDispatch#saveRecordToGameData(49f6e7a06ebc5aa8).(void); |
| 48 | void recvObservercxx . . $ BoardDispatch#recvObserver(fcd883ebbd0934ee).(class PlayerListingcxx . . $ PlayerListing# * p, bool present); |
| 49 | void clearObserverscxx . . $ BoardDispatch#clearObservers(49f6e7a06ebc5aa8).(void); |
| 50 | void recvKibitzcxx . . $ BoardDispatch#recvKibitz(3458fe3960d5051).(QStringcxx . . $ QString# name, QStringcxx . . $ QString# text); |
| 51 | void sendKibitzcxx . . $ BoardDispatch#sendKibitz(7df51288a9ebd664).(QStringcxx . . $ QString# text); |
| 52 | void recvEnterScoreModecxx . . $ BoardDispatch#recvEnterScoreMode(49f6e7a06ebc5aa8).(void); |
| 53 | void recvLeaveScoreModecxx . . $ BoardDispatch#recvLeaveScoreMode(49f6e7a06ebc5aa8).(void); |
| 54 | void createCountDialogcxx . . $ BoardDispatch#createCountDialog(49f6e7a06ebc5aa8).(void); |
| 55 | void sendRequestCountcxx . . $ BoardDispatch#sendRequestCount(49f6e7a06ebc5aa8).(void); |
| 56 | void recvRequestCountcxx . . $ BoardDispatch#recvRequestCount(49f6e7a06ebc5aa8).(void); |
| 57 | void recvAcceptCountRequestcxx . . $ BoardDispatch#recvAcceptCountRequest(49f6e7a06ebc5aa8).(void); |
| 58 | void recvRejectCountRequestcxx . . $ BoardDispatch#recvRejectCountRequest(49f6e7a06ebc5aa8).(void); |
| 59 | void sendAcceptCountRequestcxx . . $ BoardDispatch#sendAcceptCountRequest(49f6e7a06ebc5aa8).(void); |
| 60 | void sendRefuseCountRequestcxx . . $ BoardDispatch#sendRefuseCountRequest(49f6e7a06ebc5aa8).(void); |
| 61 | void recvAcceptDrawRequestcxx . . $ BoardDispatch#recvAcceptDrawRequest(49f6e7a06ebc5aa8).(void); |
| 62 | void recvRefuseDrawRequestcxx . . $ BoardDispatch#recvRefuseDrawRequest(49f6e7a06ebc5aa8).(void); |
| 63 | void recvRequestDrawcxx . . $ BoardDispatch#recvRequestDraw(49f6e7a06ebc5aa8).(void); |
| 64 | void sendAcceptDrawRequestcxx . . $ BoardDispatch#sendAcceptDrawRequest(49f6e7a06ebc5aa8).(void); |
| 65 | void sendRefuseDrawRequestcxx . . $ BoardDispatch#sendRefuseDrawRequest(49f6e7a06ebc5aa8).(void); |
| 66 | void recvRequestMatchModecxx . . $ BoardDispatch#recvRequestMatchMode(49f6e7a06ebc5aa8).(void); |
| 67 | void sendAcceptMatchModeRequestcxx . . $ BoardDispatch#sendAcceptMatchModeRequest(49f6e7a06ebc5aa8).(void); |
| 68 | void sendRefuseMatchModeRequestcxx . . $ BoardDispatch#sendRefuseMatchModeRequest(49f6e7a06ebc5aa8).(void); |
| 69 | void recvRejectMatchModeRequestcxx . . $ BoardDispatch#recvRejectMatchModeRequest(49f6e7a06ebc5aa8).(void); |
| 70 | void clearCountDialogcxx . . $ BoardDispatch#clearCountDialog(49f6e7a06ebc5aa8).(void) { countdialogcxx . . $ BoardDispatch#countdialog. = 0; }; |
| 71 | void recvRejectCountcxx . . $ BoardDispatch#recvRejectCount(49f6e7a06ebc5aa8).(void); |
| 72 | void recvAcceptCountcxx . . $ BoardDispatch#recvAcceptCount(49f6e7a06ebc5aa8).(void); |
| 73 | void sendRejectCountcxx . . $ BoardDispatch#sendRejectCount(49f6e7a06ebc5aa8).(void); |
| 74 | void sendAcceptCountcxx . . $ BoardDispatch#sendAcceptCount(49f6e7a06ebc5aa8).(void); |
| 75 | void sendResultcxx . . $ BoardDispatch#sendResult(c72a8b5aed169521).(class GameResultcxx . . $ GameResult# * r); |
| 76 | |
| 77 | void recvRequestAdjourncxx . . $ BoardDispatch#recvRequestAdjourn(49f6e7a06ebc5aa8).(void); |
| 78 | void sendAdjournRequestcxx . . $ BoardDispatch#sendAdjournRequest(49f6e7a06ebc5aa8).(void); |
| 79 | void sendAdjourncxx . . $ BoardDispatch#sendAdjourn(49f6e7a06ebc5aa8).(void); |
| 80 | void sendRefuseAdjourncxx . . $ BoardDispatch#sendRefuseAdjourn(49f6e7a06ebc5aa8).(void); |
| 81 | void adjournGamecxx . . $ BoardDispatch#adjournGame(49f6e7a06ebc5aa8).(void); |
| 82 | void recvRefuseAdjourncxx . . $ BoardDispatch#recvRefuseAdjourn(49f6e7a06ebc5aa8).(void); |
| 83 | void setRematchDialogcxx . . $ BoardDispatch#setRematchDialog(916b84551040fc84).(class ResultDialogcxx . . $ ResultDialog# * r); |
| 84 | void sendRematchRequestcxx . . $ BoardDispatch#sendRematchRequest(49f6e7a06ebc5aa8).(void); |
| 85 | void sendRematchAcceptcxx . . $ BoardDispatch#sendRematchAccept(49f6e7a06ebc5aa8).(void); |
| 86 | void recvRematchRequestcxx . . $ BoardDispatch#recvRematchRequest(49f6e7a06ebc5aa8).(void); |
| 87 | void sendTimecxx . . $ BoardDispatch#sendTime(49f6e7a06ebc5aa8).(void); |
| 88 | void sendAddTimecxx . . $ BoardDispatch#sendAddTime(d4f767463ce0a6b3).(int minutes); |
| 89 | void startGamecxx . . $ BoardDispatch#startGame(49f6e7a06ebc5aa8).(void); |
| 90 | bool isAttribBoardcxx . . $ BoardDispatch#isAttribBoard(261315095228867b).(QStringcxx . . $ QString# black_player, unsigned int black_captures, float black_komi, QStringcxx . . $ QString# white_player, unsigned int white_captures, float white_komi); |
| 91 | bool isOpponentBoardcxx . . $ BoardDispatch#isOpponentBoard(80825a4bb658cac2).(QStringcxx . . $ QString# us, QStringcxx . . $ QString# them); |
| 92 | void swapColorscxx . . $ BoardDispatch#swapColors(b45ddcbc8423892c).(bool noswap = false); |
| 93 | |
| 94 | void requestGameInfocxx . . $ BoardDispatch#requestGameInfo(49f6e7a06ebc5aa8).(void); |
| 95 | bool getReviewInVariationcxx . . $ BoardDispatch#getReviewInVariation(c9857a73d68e59ba).(void) { return reviewInVariationcxx . . $ BoardDispatch#reviewInVariation.; }; //tygem |
| 96 | void setReviewInVariationcxx . . $ BoardDispatch#setReviewInVariation(b45ddcbc8423892c).(bool b) { reviewInVariationcxx . . $ BoardDispatch#reviewInVariation. = b; }; //tygem |
| 97 | class GameDatacxx . . $ GameData# * getGameDatacxx . . $ BoardDispatch#getGameData(f917540193955ea7).(void); |
| 98 | class TimeRecordcxx . . $ TimeRecord# getOurTimeRecordcxx . . $ BoardDispatch#getOurTimeRecord(3d89b73610291578).(void); |
| 99 | class TimeRecordcxx . . $ TimeRecord# getTheirTimeRecordcxx . . $ BoardDispatch#getTheirTimeRecord(3d89b73610291578).(void); |
| 100 | QStringcxx . . $ QString# getOpponentNamecxx . . $ BoardDispatch#getOpponentName(4365c3963150523e).(void); |
| 101 | QStringcxx . . $ QString# getUsernamecxx . . $ BoardDispatch#getUsername(4365c3963150523e).(void); |
| 102 | QStringcxx . . $ QString# getOurRankcxx . . $ BoardDispatch#getOurRank(4365c3963150523e).(void); |
| 103 | bool getBlackTurncxx . . $ BoardDispatch#getBlackTurn(c9857a73d68e59ba).(void); |
| 104 | class ObserverListModelcxx . . $ ObserverListModel# * getObserverListModelForRematchcxx . . $ BoardDispatch#getObserverListModelForRematch(ac139ea84b69b4da).(void); |
| 105 | void setObserverListModelcxx . . $ BoardDispatch#setObserverListModel(a089598c119048f6).(class ObserverListModelcxx . . $ ObserverListModel# * olm); |
| 106 | bool flipCoordscxx . . $ BoardDispatch#flipCoords(c9857a73d68e59ba).(void); |
| 107 | bool supportsRequestMatchModecxx . . $ BoardDispatch#supportsRequestMatchMode(c9857a73d68e59ba).(void); |
| 108 | bool supportsAddTimecxx . . $ BoardDispatch#supportsAddTime(c9857a73d68e59ba).(void); |
| 109 | bool supportsRequestCountcxx . . $ BoardDispatch#supportsRequestCount(c9857a73d68e59ba).(void); |
| 110 | bool supportsRequestDrawcxx . . $ BoardDispatch#supportsRequestDraw(c9857a73d68e59ba).(void); |
| 111 | bool supportsRequestAdjourncxx . . $ BoardDispatch#supportsRequestAdjourn(c9857a73d68e59ba).(void); |
| 112 | bool supportsRematchcxx . . $ BoardDispatch#supportsRematch(c9857a73d68e59ba).(void); |
| 113 | bool undoResetsScorecxx . . $ BoardDispatch#undoResetsScore(c9857a73d68e59ba).(void); |
| 114 | bool canMarkStonesDeadinScorecxx . . $ BoardDispatch#canMarkStonesDeadinScore(c9857a73d68e59ba).(void); |
| 115 | public: |
| 116 | NetworkConnectioncxx . . $ NetworkConnection# * connectioncxx . . $ BoardDispatch#connection.; |
| 117 | private: |
| 118 | void mergeListingIntoRecordcxx . . $ BoardDispatch#mergeListingIntoRecord(f3b8c0e6f011b5d7).(class GameDatacxx . . $ GameData# * r, class GameListingcxx . . $ GameListing# * l); |
| 119 | class BoardWindowcxx . . $ BoardWindow# * boardwindowcxx . . $ BoardDispatch#boardwindow.; |
| 120 | class GameDatacxx . . $ GameData# * gameDatacxx . . $ BoardDispatch#gameData.; |
| 121 | class GameListingcxx . . $ GameListing# * gameListingcxx . . $ BoardDispatch#gameListing.; |
| 122 | class ResultDialogcxx . . $ ResultDialog# * resultdialogcxx . . $ BoardDispatch#resultdialog.; |
| 123 | class CountDialogcxx . . $ CountDialog# * countdialogcxx . . $ BoardDispatch#countdialog.; |
| 124 | class ObserverListModelcxx . . $ ObserverListModel# * observerListModelcxx . . $ BoardDispatch#observerListModel.; |
| 125 | |
| 126 | bool clockStoppedcxx . . $ BoardDispatch#clockStopped.; |
| 127 | bool reviewInVariationcxx . . $ BoardDispatch#reviewInVariation.; |
| 128 | }; |