Debian Codegraph @

src/network/tygemconnection.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 #ifndef TYGEMCONNECTION_H
24 #define TYGEMCONNECTION_Hcxx . . $ `src/network/tygemconnection.h:24:9`!
25 #include <QtNetwork>
26 #include "networkconnection.h"cxx . . $ `<file>/src/network/networkconnection.h`/
27 #include "messages.h"cxx . . $ `<file>/src/network/messages.h`/
28 #include <vector>
29 #include <stdint.h>
30
31 class BoardDispatchcxx . . $ BoardDispatch#;
32 class GameDialogDispatchcxx . . $ GameDialogDispatch#;
33 class TalkDispatchcxx . . $ TalkDispatch#;
34
35 class TygemConnectioncxx . . $ TygemConnection# : public NetworkConnectioncxx . . $ NetworkConnection#
36 {
37 public:
38 TygemConnectioncxx . . $ TygemConnection#TygemConnection(231cf4fc7da7cd6f).(const ConnectionCredentialscxx . . $ ConnectionCredentials# credentials);
39 ~cxx . . $ TygemConnection#`~TygemConnection`(ced63f7c635d850d).TygemConnectioncxx . . $ TygemConnection#();
40 /* Protocols are way similar so probably most of these don't have to be
41 * virtual FIXME */
42 virtual void sendTextcxx . . $ TygemConnection#sendText(7df51288a9ebd664).(QStringcxx . . $ QString#);
43 virtual void sendTextcxx . . $ TygemConnection#sendText(85c52e162fed56f9).(const char * text);
44 virtual void sendDisconnectcxx . . $ TygemConnection#sendDisconnect(49f6e7a06ebc5aa8).(void);
45 virtual void sendMsgcxx . . $ TygemConnection#sendMsg(679a3afc1f0f3212).(unsigned int game_id, QStringcxx . . $ QString# text);
46 virtual void sendMsgcxx . . $ TygemConnection#sendMsg(c3abbc2f7b873519).(PlayerListingcxx . . $ PlayerListing# * player, QStringcxx . . $ QString# text);
47 virtual void sendTogglecxx . . $ TygemConnection#sendToggle(37c160c81b6367f7).(const QStringcxx . . $ QString# & param, bool val);
48 virtual void sendObservecxx . . $ TygemConnection#sendObserve(963dc8955d49573e).(const GameListingcxx . . $ GameListing# * game);
49 virtual void sendStatsRequestcxx . . $ TygemConnection#sendStatsRequest(cac334474c82cf3a).(const PlayerListingcxx . . $ PlayerListing# *) {}
50 virtual void sendPlayersRequestcxx . . $ TygemConnection#sendPlayersRequest(49f6e7a06ebc5aa8).(void) {}
51 virtual void sendGamesRequestcxx . . $ TygemConnection#sendGamesRequest(49f6e7a06ebc5aa8).(void) {}
52
53 virtual void sendMatchInvitecxx . . $ TygemConnection#sendMatchInvite(cac334474c82cf3a).(const PlayerListingcxx . . $ PlayerListing# * opponent);
54 virtual void sendTimecxx . . $ TygemConnection#sendTime(f9aae4eee533680e).(BoardDispatchcxx . . $ BoardDispatch# * boarddispatch);
55 virtual void sendMovecxx . . $ TygemConnection#sendMove(74f2a753311a2adf).(unsigned int game_id, class MoveRecordcxx . . $ MoveRecord# * move);
56
57 //EndgameMsg should probably be protected or even private
58 enum EGVersioncxx . . $ TygemConnection#EGVersion# {passcxx . . $ TygemConnection#pass., done_scoringcxx . . $ TygemConnection#done_scoring., accept_countcxx . . $ TygemConnection#accept_count., reject_countcxx . . $ TygemConnection#reject_count.,
59 request_countcxx . . $ TygemConnection#request_count., accept_count_requestcxx . . $ TygemConnection#accept_count_request., refuse_count_requestcxx . . $ TygemConnection#refuse_count_request.,
60 request_drawcxx . . $ TygemConnection#request_draw., accept_draw_requestcxx . . $ TygemConnection#accept_draw_request., refuse_draw_requestcxx . . $ TygemConnection#refuse_draw_request.,
61 request_undocxx . . $ TygemConnection#request_undo., accept_undo_requestcxx . . $ TygemConnection#accept_undo_request., refuse_undo_requestcxx . . $ TygemConnection#refuse_undo_request.,
62 opponent_disconnect_timercxx . . $ TygemConnection#opponent_disconnect_timer., we_resumecxx . . $ TygemConnection#we_resume., opponent_reconnectscxx . . $ TygemConnection#opponent_reconnects.};
63 virtual void sendEndgameMsgcxx . . $ TygemConnection#sendEndgameMsg(2ecea8996989f997).(const class GameDatacxx . . $ GameData# * game, enum EGVersioncxx . . $ TygemConnection#EGVersion# version);
64 virtual void sendStopTimecxx . . $ TygemConnection#sendStopTime(77d63710c4751141).(BoardDispatchcxx . . $ BoardDispatch# * boarddispatch, enum EGVersioncxx . . $ TygemConnection#EGVersion# version);
65
66 virtual void sendResultcxx . . $ TygemConnection#sendResult(f9859626c725809).(class GameDatacxx . . $ GameData# * game, class GameResultcxx . . $ GameResult# * result);
67 virtual void sendMatchRequestcxx . . $ TygemConnection#sendMatchRequest(969a5d62d7a1bd6e).(class MatchRequestcxx . . $ MatchRequest# * mr);
68 virtual void sendRematchRequestcxx . . $ TygemConnection#sendRematchRequest(49f6e7a06ebc5aa8).(void);
69 virtual void sendRematchAcceptcxx . . $ TygemConnection#sendRematchAccept(49f6e7a06ebc5aa8).(void);
70 virtual void declineMatchOffercxx . . $ TygemConnection#declineMatchOffer(cac334474c82cf3a).(const PlayerListingcxx . . $ PlayerListing# * opponent);
71 virtual void cancelMatchOffercxx . . $ TygemConnection#cancelMatchOffer(cac334474c82cf3a).(const PlayerListingcxx . . $ PlayerListing# * opponent);
72 virtual void acceptMatchOffercxx . . $ TygemConnection#acceptMatchOffer(27875a747def42ce).(const PlayerListingcxx . . $ PlayerListing# * opponent, class MatchRequestcxx . . $ MatchRequest# * mr);
73 virtual void sendRequestCountcxx . . $ TygemConnection#sendRequestCount(cb2f890c2fdad230).(unsigned int game_id);
74 virtual void sendAcceptCountRequestcxx . . $ TygemConnection#sendAcceptCountRequest(53acbc9cc3152f0d).(class GameDatacxx . . $ GameData# * data);
75 virtual void sendRefuseCountRequestcxx . . $ TygemConnection#sendRefuseCountRequest(53acbc9cc3152f0d).(class GameDatacxx . . $ GameData# * data);
76 virtual void sendRequestDrawcxx . . $ TygemConnection#sendRequestDraw(cb2f890c2fdad230).(unsigned int game_id);
77 virtual void sendAcceptDrawRequestcxx . . $ TygemConnection#sendAcceptDrawRequest(53acbc9cc3152f0d).(class GameDatacxx . . $ GameData# * data);
78 virtual void sendRefuseDrawRequestcxx . . $ TygemConnection#sendRefuseDrawRequest(53acbc9cc3152f0d).(class GameDatacxx . . $ GameData# * data);
79 virtual void sendRejectCountcxx . . $ TygemConnection#sendRejectCount(53acbc9cc3152f0d).(class GameDatacxx . . $ GameData# * data);
80 virtual void sendAcceptCountcxx . . $ TygemConnection#sendAcceptCount(53acbc9cc3152f0d).(class GameDatacxx . . $ GameData# * data);
81 virtual void handlePendingDatacxx . . $ TygemConnection#handlePendingData(49f6e7a06ebc5aa8).();
82 virtual void onReadycxx . . $ TygemConnection#onReady(49f6e7a06ebc5aa8).(void);
83 virtual void changeServercxx . . $ TygemConnection#changeServer(49f6e7a06ebc5aa8).(void);
84 virtual void createRoomcxx . . $ TygemConnection#createRoom(49f6e7a06ebc5aa8).(void);
85 virtual void sendCreateRoomcxx . . $ TygemConnection#sendCreateRoom(9db6e4897fed4acd).(class RoomCreatecxx . . $ RoomCreate# * room);
86 virtual void sendJoinRoomcxx . . $ TygemConnection#sendJoinRoom(27567cc4e87be946).(const RoomListingcxx . . $ RoomListing# & room, const char * password = 0);
87
88 virtual void addFriendcxx . . $ TygemConnection#addFriend(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * player);
89 virtual void removeFriendcxx . . $ TygemConnection#removeFriend(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * player);
90 virtual void addBlockcxx . . $ TygemConnection#addBlock(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * player);
91 virtual void removeBlockcxx . . $ TygemConnection#removeBlock(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * player);
92
93 //FIXME these are unused right now:
94 virtual void requestLongInfocxx . . $ TygemConnection#requestLongInfo(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * player);
95 virtual void requestShortInfocxx . . $ TygemConnection#requestShortInfo(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * player);
96
97 virtual unsigned short getRoomNumbercxx . . $ TygemConnection#getRoomNumber(32a7769d58713265).(void); //FIXME for gamedialog unsure of necessity or reliability here
98
99 virtual void closeTalkcxx . . $ TygemConnection#closeTalk(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# *opponent);
100 virtual void closeBoardDispatchcxx . . $ TygemConnection#closeBoardDispatch(cb2f890c2fdad230).(unsigned int game_id);
101
102 virtual int gd_verifyBoardSizecxx . . $ TygemConnection#gd_verifyBoardSize(7864480464b09eea).(int v);
103 virtual QTimecxx . . $ QTime# gd_checkMainTimecxx . . $ TygemConnection#gd_checkMainTime(71240b9f3410da6b).(TimeSystemcxx . . $ TimeSystem# s, const QTimecxx . . $ QTime# & t);
104 virtual QTimecxx . . $ QTime# gd_checkPeriodTimecxx . . $ TygemConnection#gd_checkPeriodTime(71240b9f3410da6b).(TimeSystemcxx . . $ TimeSystem# s, const QTimecxx . . $ QTime# & t);
105 virtual unsigned int gd_checkPeriodscxx . . $ TygemConnection#gd_checkPeriods(c827b1ce4ef0d032).(TimeSystemcxx . . $ TimeSystem# s, unsigned int p);
106
107 virtual unsigned int rankToScorecxx . . $ TygemConnection#rankToScore(9d92bb507a34628c).(QStringcxx . . $ QString# rank);
108 virtual unsigned long getGameDialogFlagscxx . . $ TygemConnection#getGameDialogFlags(f708dce9a8856c70).(void);
109 virtual bool supportsMultipleUndocxx . . $ TygemConnection#supportsMultipleUndo(c9857a73d68e59ba).(void) { return false; }
110 virtual bool supportsObserveOutsidecxx . . $ TygemConnection#supportsObserveOutside(c9857a73d68e59ba).(void) { return false; }
111 virtual bool supportsRequestCountcxx . . $ TygemConnection#supportsRequestCount(c9857a73d68e59ba).(void) { return false; }
112 virtual bool supportsRequestDrawcxx . . $ TygemConnection#supportsRequestDraw(c9857a73d68e59ba).(void) { return true; }
113 virtual bool clientCountsTimecxx . . $ TygemConnection#clientCountsTime(c9857a73d68e59ba).(void) { return false; }
114 virtual bool clientSendsTimecxx . . $ TygemConnection#clientSendsTime(c9857a73d68e59ba).(void) { return true; }
115 virtual bool unmarkUnmarksAllDeadStonescxx . . $ TygemConnection#unmarkUnmarksAllDeadStones(c9857a73d68e59ba).(void) { return true; }
116 virtual bool canMarkStonesDeadinScorecxx . . $ TygemConnection#canMarkStonesDeadinScore(c9857a73d68e59ba).(void) { return false; }
117 virtual bool cantMarkOppStonesDeadcxx . . $ TygemConnection#cantMarkOppStonesDead(c9857a73d68e59ba).(void) { return true; }
118 virtual bool twoPassesEndsGamecxx . . $ TygemConnection#twoPassesEndsGame(c9857a73d68e59ba).(void) { return true; }
119 virtual bool supportsServerChangecxx . . $ TygemConnection#supportsServerChange(c9857a73d68e59ba).(void) { return true; }
120 virtual bool supportsRematchcxx . . $ TygemConnection#supportsRematch(c9857a73d68e59ba).(void) { return true; }
121 virtual bool supportsFriendListcxx . . $ TygemConnection#supportsFriendList(c9857a73d68e59ba).(void) { return true; }
122 virtual bool supportsBlockListcxx . . $ TygemConnection#supportsBlockList(c9857a73d68e59ba).(void) { return true; }
123 virtual unsigned long getPlayerListColumnscxx . . $ TygemConnection#getPlayerListColumns(f708dce9a8856c70).(void) { return PL_NOMATCHPREFScxx . . $ `src/network/networkconnection.h:230:11`!; }
124 virtual bool supportsCreateRoomcxx . . $ TygemConnection#supportsCreateRoom(c9857a73d68e59ba).(void) { return true; }
125 virtual unsigned long getRoomStructureFlagscxx . . $ TygemConnection#getRoomStructureFlags(f708dce9a8856c70).(void) { return (RS_NOROOMLISTcxx . . $ `src/network/networkconnection.h:234:11`! | RS_ONEROOMATATIMEcxx . . $ `src/network/networkconnection.h:237:11`! | RS_ONEGAMEPERROOMcxx . . $ `src/network/networkconnection.h:238:11`!); }
126 virtual const char * getCodecStringcxx . . $ TygemConnection#getCodecString(33a1f659e94feb42).(void);
127 virtual QStringcxx . . $ QString# getPlaceStringcxx . . $ TygemConnection#getPlaceString(4365c3963150523e).(void);
128 virtual void timerEventcxx . . $ TygemConnection#timerEvent(b9e57d1150f23bf5).(QTimerEventcxx . . $ QTimerEvent# * event);
129 protected:
130 virtual int requestServerInfocxx . . $ TygemConnection#requestServerInfo(b126dc7c1de90089).(void);
131 /* this is called handleServerList in ORO, not sure why we changed
132 * the name minor FIXME */
133 virtual void handleServerInfocxx . . $ TygemConnection#handleServerInfo(e1e8b00c42c42532).(unsigned char * msg, unsigned int length);
134 int reconnectToServercxx . . $ TygemConnection#reconnectToServer(b126dc7c1de90089).(void);
135 virtual void handleGamesListcxx . . $ TygemConnection#handleGamesList(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
136
137 //FIXME secondsToDate obviously should not be here
138 void secondsToDatecxx . . $ TygemConnection#secondsToDate(4b79e85d1d97ff5b).(unsigned short & year, unsigned char & month, unsigned char & day, unsigned char & hour, unsigned char & minute, unsigned char & second);
139 virtual QByteArraycxx . . $ QByteArray# getTygemGameRecordQByteArraycxx . . $ TygemConnection#getTygemGameRecordQByteArray(921a24916160e04).(class GameDatacxx . . $ GameData# * game);
140 QByteArraycxx . . $ QByteArray# getTygemGameTagQByteArraycxx . . $ TygemConnection#getTygemGameTagQByteArray(aa2910e9f95d7575).(GameDatacxx . . $ GameData# * game, unsigned char white_level, unsigned char black_level, int margin);
141 unsigned char getVictoryCodecxx . . $ TygemConnection#getVictoryCode(28ad371a65273a73).(GameResultcxx . . $ GameResult# & aGameResult);
142 enum TimeFlagscxx . . $ TygemConnection#TimeFlags# { BLACK_LOSEScxx . . $ TygemConnection#BLACK_LOSES., WHITE_LOSEScxx . . $ TygemConnection#WHITE_LOSES., GAME_ONcxx . . $ TygemConnection#GAME_ON. };
143 enum TimeFlagscxx . . $ TygemConnection#TimeFlags# handleTimeChunkcxx . . $ TygemConnection#handleTimeChunk(6a8d10de6566324a).(BoardDispatchcxx . . $ BoardDispatch# * boarddispatch, unsigned char chunk[8], bool black_first);
144 void fillTimeChunkcxx . . $ TygemConnection#fillTimeChunk(4dabb2484803c741).(BoardDispatchcxx . . $ BoardDispatch# * boarddispatch, unsigned char * packet);
145 /* FIXME */
146 QTextCodeccxx . . $ QTextCodec# * serverCodeccxx . . $ TygemConnection#serverCodec.;
147 stdcxx . . $ std/::vectorcxx . . $ std/vector# <class ServerItemcxx . . $ ServerItem# *> serverListcxx . . $ TygemConnection#serverList.;
148 int current_server_indexcxx . . $ TygemConnection#current_server_index.;
149
150 int move_message_numbercxx . . $ TygemConnection#move_message_number.; //FIXME can't use if more than one game
151 int move_message_number_ackcxx . . $ TygemConnection#move_message_number_ack.;
152 int seconds_until_opp_forfeitscxx . . $ TygemConnection#seconds_until_opp_forfeits.;
153 private:
154 void sendJoincxx . . $ TygemConnection#sendJoin(ed53e3bbd3fa2f69).(unsigned short game_number);
155 void sendMatchMsg1cxx . . $ TygemConnection#sendMatchMsg1(35cead64ffbd9888).(const PlayerListingcxx . . $ PlayerListing# * player, unsigned short game_number);
156 void sendLogincxx . . $ TygemConnection#sendLogin(b0b38cda41d4ede4).(bool response_bit = false, bool change_server = false);
157 void handleLogincxx . . $ TygemConnection#handleLogin(e1e8b00c42c42532).(unsigned char * msg, unsigned int length);
158 void sendRequestGamescxx . . $ TygemConnection#sendRequestGames(49f6e7a06ebc5aa8).(void);
159 void sendRequestPlayerscxx . . $ TygemConnection#sendRequestPlayers(49f6e7a06ebc5aa8).(void);
160 void sendNamecxx . . $ TygemConnection#sendName(49f6e7a06ebc5aa8).(void);
161 void sendRequestcxx . . $ TygemConnection#sendRequest(49f6e7a06ebc5aa8).(void);
162 void sendRequest2cxx . . $ TygemConnection#sendRequest2(49f6e7a06ebc5aa8).(void);
163 void sendFriendsBlocksRequestcxx . . $ TygemConnection#sendFriendsBlocksRequest(49f6e7a06ebc5aa8).(void);
164 void promptResumeMatchcxx . . $ TygemConnection#promptResumeMatch(49f6e7a06ebc5aa8).(void);
165 void sendOpenConversationcxx . . $ TygemConnection#sendOpenConversation(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * player);
166 enum MIVersioncxx . . $ TygemConnection#MIVersion# {offercxx . . $ TygemConnection#offer., acceptcxx . . $ TygemConnection#accept., declinecxx . . $ TygemConnection#decline., decline_allcxx . . $ TygemConnection#decline_all., modifycxx . . $ TygemConnection#modify., createcxx . . $ TygemConnection#create., acknowledgecxx . . $ TygemConnection#acknowledge., alreadyingamecxx . . $ TygemConnection#alreadyingame.};
167 void sendConversationReplycxx . . $ TygemConnection#sendConversationReply(ca5adf404307529).(PlayerListingcxx . . $ PlayerListing# * player, enum MIVersioncxx . . $ TygemConnection#MIVersion# version);
168 void sendConversationMsgcxx . . $ TygemConnection#sendConversationMsg(1598b02156041f24).(PlayerListingcxx . . $ PlayerListing# * player, const char * text);
169 void sendCloseConversationcxx . . $ TygemConnection#sendCloseConversation(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * player);
170 void sendPersonalChatcxx . . $ TygemConnection#sendPersonalChat(7ed01115d689877).(const PlayerListingcxx . . $ PlayerListing# * player, const char * text);
171 void sendServerChatcxx . . $ TygemConnection#sendServerChat(7df51288a9ebd664).(QStringcxx . . $ QString# text);
172 void sendResumecxx . . $ TygemConnection#sendResume(ed53e3bbd3fa2f69).(unsigned short game_number);
173 void sendFinishObservingcxx . . $ TygemConnection#sendFinishObserving(ed53e3bbd3fa2f69).(unsigned short game_number);
174 void sendObserversRequestcxx . . $ TygemConnection#sendObserversRequest(ed53e3bbd3fa2f69).(unsigned short game_number);
175 void sendServerKeepAlivecxx . . $ TygemConnection#sendServerKeepAlive(cb2f890c2fdad230).(uint32_tcxx . . $ uint32_t# keepaliveIV);
176 uint32_tcxx . . $ uint32_t# encodeKeepAliveIVcxx . . $ TygemConnection#encodeKeepAliveIV(2141b656ce2cc063).(uint32_tcxx . . $ uint32_t# a);
177 void sendMatchInvitecxx . . $ TygemConnection#sendMatchInvite(72df06a5942d44e9).(const PlayerListingcxx . . $ PlayerListing# * player, enum MIVersioncxx . . $ TygemConnection#MIVersion# version = offercxx . . $ TygemConnection#offer., unsigned short room_number = 0xffff);
178 void sendMatchOffercxx . . $ TygemConnection#sendMatchOffer(9e01310764b0ff93).(const MatchRequestcxx . . $ MatchRequest# & mr, enum MIVersioncxx . . $ TygemConnection#MIVersion# version = offercxx . . $ TygemConnection#offer.);
179 void sendStartGamecxx . . $ TygemConnection#sendStartGame(9f9e9a38fcfe00de).(const MatchRequestcxx . . $ MatchRequest# & mr);
180 void sendInvitationSettingscxx . . $ TygemConnection#sendInvitationSettings(b45ddcbc8423892c).(bool invite);
181 void sendResumeFromDisconnectcxx . . $ TygemConnection#sendResumeFromDisconnect(cb2f890c2fdad230).(unsigned int game_number);
182 enum OpponentDisconnectUpdatecxx . . $ TygemConnection#OpponentDisconnectUpdate# { opponent_disconnectcxx . . $ TygemConnection#opponent_disconnect., opponent_reconnectcxx . . $ TygemConnection#opponent_reconnect. };
183 void sendOpponentDisconnectcxx . . $ TygemConnection#sendOpponentDisconnect(89ee62dcaa58bdba).(unsigned int game_number, enum OpponentDisconnectUpdatecxx . . $ TygemConnection#OpponentDisconnectUpdate# opp);
184 void sendLongOpponentDisconnectcxx . . $ TygemConnection#sendLongOpponentDisconnect(cb2f890c2fdad230).(unsigned int game_number);
185 void sendOpponentDisconnectTimercxx . . $ TygemConnection#sendOpponentDisconnectTimer(cb2f890c2fdad230).(unsigned int game_number);
186 void sendMatchResultcxx . . $ TygemConnection#sendMatchResult(ed53e3bbd3fa2f69).(unsigned short game_code);
187 void sendLongMatchResultcxx . . $ TygemConnection#sendLongMatchResult(ed53e3bbd3fa2f69).(unsigned short game_code);
188 void sendDisconnectMsgcxx . . $ TygemConnection#sendDisconnectMsg(49f6e7a06ebc5aa8).(void);
189 void encodecxx . . $ TygemConnection#encode(e1e8b00c42c42532).(unsigned char * h, unsigned int cycle_size);
190 void handleMessagecxx . . $ TygemConnection#handleMessage(7df51288a9ebd664).(QStringcxx . . $ QString# msg);
191 void handleMessagecxx . . $ TygemConnection#handleMessage(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
192 void handleConnectedcxx . . $ TygemConnection#handleConnected(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
193 void handlePlayerListcxx . . $ TygemConnection#handlePlayerList(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
194 void handleFriendsBlocksListcxx . . $ TygemConnection#handleFriendsBlocksList(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
195 void handleServerPlayerCountscxx . . $ TygemConnection#handleServerPlayerCounts(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
196 QStringcxx . . $ QString# rating_pointsToRankcxx . . $ TygemConnection#rating_pointsToRank(538777a873a4ab5d).(unsigned int rp);
197 QStringcxx . . $ QString# getCountryFromCodecxx . . $ TygemConnection#getCountryFromCode(e76153c3c184c917).(unsigned char code);
198 int getPhasecxx . . $ TygemConnection#getPhase(b27dbea426b7b93).(unsigned char byte);
199 QStringcxx . . $ QString# getRoomTagcxx . . $ TygemConnection#getRoomTag(e76153c3c184c917).(unsigned char byte);
200
201 void writeNotNicknameAndRankcxx . . $ TygemConnection#writeNotNicknameAndRank(68fc2a8c6a57e4cc).(char * p, const PlayerListingcxx . . $ PlayerListing# * player);
202 void writeNicknameAndCIDcxx . . $ TygemConnection#writeNicknameAndCID(68fc2a8c6a57e4cc).(char * p, const PlayerListingcxx . . $ PlayerListing# * player);
203 PlayerListingcxx . . $ PlayerListing# * getOrCreatePlayerListingFromRecordcxx . . $ TygemConnection#getOrCreatePlayerListingFromRecord(c707c4736c9748ef).(char * r);
204
205 void handleServerAnnouncementcxx . . $ TygemConnection#handleServerAnnouncement(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
206 void handleRequestKeepAlivecxx . . $ TygemConnection#handleRequestKeepAlive(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
207 void handleServerRoomChatcxx . . $ TygemConnection#handleServerRoomChat(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
208 void handlePersonalChatcxx . . $ TygemConnection#handlePersonalChat(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
209 void handleOpenConversationcxx . . $ TygemConnection#handleOpenConversation(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
210 void handleConversationReplycxx . . $ TygemConnection#handleConversationReply(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
211 void handleConversationMsgcxx . . $ TygemConnection#handleConversationMsg(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
212 void handleGameChatcxx . . $ TygemConnection#handleGameChat(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
213 void handleBettingMatchStartcxx . . $ TygemConnection#handleBettingMatchStart(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
214 void handleTimecxx . . $ TygemConnection#handleTime(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
215 void handleMovecxx . . $ TygemConnection#handleMove(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
216 void handlePasscxx . . $ TygemConnection#handlePass(24a4435ba77f1dc6).(unsigned char * msg, unsigned int size, int pass_number);
217 void handleObserverListcxx . . $ TygemConnection#handleObserverList(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
218 void handleBoardOpenedcxx . . $ TygemConnection#handleBoardOpened(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
219 void handleMatchOpenedcxx . . $ TygemConnection#handleMatchOpened(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
220 void handleResumeMatchcxx . . $ TygemConnection#handleResumeMatch(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
221 QStringcxx . . $ QString# getStatusFromCodecxx . . $ TygemConnection#getStatusFromCode(31cb2f216a834e82).(unsigned char code, QStringcxx . . $ QString# rank);
222 int compareRankscxx . . $ TygemConnection#compareRanks(cf8c7f074bbf9512).(QStringcxx . . $ QString# rankA, QStringcxx . . $ QString# rankB);
223 void handleMatchInvitecxx . . $ TygemConnection#handleMatchInvite(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
224 void handleMatchOffercxx . . $ TygemConnection#handleMatchOffer(892cc42ac5eea747).(unsigned char * msg, unsigned int size, enum MIVersioncxx . . $ TygemConnection#MIVersion# = offercxx . . $ TygemConnection#offer.);
225 void sendCreateRoomcxx . . $ TygemConnection#sendCreateRoom(49f6e7a06ebc5aa8).(void);
226 void handleMatchInviteResponsecxx . . $ TygemConnection#handleMatchInviteResponse(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
227 void handleCreateRoomResponsecxx . . $ TygemConnection#handleCreateRoomResponse(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
228 //FIXME
229 void handleScoreMsg1cxx . . $ TygemConnection#handleScoreMsg1(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
230 void handleEndgameMsgcxx . . $ TygemConnection#handleEndgameMsg(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
231 void handleGameStateChangecxx . . $ TygemConnection#handleGameStateChange(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
232 void handleCountRequestcxx . . $ TygemConnection#handleCountRequest(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
233 void handleCountRequestResponsecxx . . $ TygemConnection#handleCountRequestResponse(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
234 void handleGameResultcxx . . $ TygemConnection#handleGameResult(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
235 void handleGameResult2cxx . . $ TygemConnection#handleGameResult2(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
236 void handleMsg2cxx . . $ TygemConnection#handleMsg2(e1e8b00c42c42532).(unsigned char * msg, unsigned int size);
237 int time_to_secondscxx . . $ TygemConnection#time_to_seconds(645d6210e0be3a78).(const QStringcxx . . $ QString# & time);
238
239 unsigned int http_connect_content_lengthcxx . . $ TygemConnection#http_connect_content_length.;
240 bool http_response_checkedcxx . . $ TygemConnection#http_response_checked.;
241 /* We should really just have the player listing for ourself FIXME */
242 unsigned short our_player_idcxx . . $ TygemConnection#our_player_id.;
243 bool opponent_is_challengercxx . . $ TygemConnection#opponent_is_challenger.;
244 bool havenot_requested_friendsblockscxx . . $ TygemConnection#havenot_requested_friendsblocks.;
245
246 stdcxx . . $ std/::vectorcxx . . $ std/vector#<PlayerListingcxx . . $ PlayerListing# *> decline_all_invitationscxx . . $ TygemConnection#decline_all_invitations.;
247 QTextCodeccxx . . $ QTextCodec# * textCodeccxx . . $ TygemConnection#textCodec.;
248 unsigned long encode_offsetcxx . . $ TygemConnection#encode_offset.;
249
250 stdcxx . . $ std/::mapcxx . . $ std/map# <PlayerListingcxx . . $ PlayerListing# *, QStringcxx . . $ QString#> pendingConversationMsgcxx . . $ TygemConnection#pendingConversationMsg.;
251
252 int matchKeepAliveTimerIDcxx . . $ TygemConnection#matchKeepAliveTimerID., matchRequestKeepAliveTimerIDcxx . . $ TygemConnection#matchRequestKeepAliveTimerID.;
253 int retryLoginTimerIDcxx . . $ TygemConnection#retryLoginTimerID.;
254 int opponentDisconnectTimerIDcxx . . $ TygemConnection#opponentDisconnectTimerID.;
255
256 bool received_playerscxx . . $ TygemConnection#received_players.;
257 bool received_gamescxx . . $ TygemConnection#received_games.;
258 bool initial_connectcxx . . $ TygemConnection#initial_connect.;
259 bool dont_validate_maintimecxx . . $ TygemConnection#dont_validate_maintime., dont_validate_periodtimecxx . . $ TygemConnection#dont_validate_periodtime., dont_validate_periodscxx . . $ TygemConnection#dont_validate_periods.;
260
261 virtual void OnConnectedcxx . . $ TygemConnection#OnConnected(49f6e7a06ebc5aa8).();
262 };
263 #endif //TYGEMCONNECTION_H