Debian Codegraph @

src/network/networkconnection.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 NETWORKCONNECTION_H
24 #define NETWORKCONNECTION_Hcxx . . $ `src/network/networkconnection.h:24:9`!
25 #include <map>
26 #include <QtCore>
27 #include <QtNetwork>
28 #include "messages.h"cxx . . $ `<file>/src/network/messages.h`/
29
30 class GameListingcxx . . $ GameListing#;
31 class PlayerListingcxx . . $ PlayerListing#;
32 class NetworkDispatchcxx . . $ NetworkDispatch#;
33 class ConsoleDispatchcxx . . $ ConsoleDispatch#;
34 class BoardDispatchcxx . . $ BoardDispatch#;
35
36 class GameDialogcxx . . $ GameDialog#;
37
38 class NetworkConnectioncxx . . $ NetworkConnection#;
39
40 class MatchNegotiationStatecxx . . $ MatchNegotiationState#;
41
42 class Roomcxx . . $ Room#;
43 class QMessageBoxcxx . . $ QMessageBox#;
44
45 enum ConnectionStatecxx . . $ ConnectionState# {
46 Logincxx . . $ Login.,
47 Passwordcxx . . $ Password.,
48 PasswordSentcxx . . $ PasswordSent.,
49 AuthFailedcxx . . $ AuthFailed.,
50 PassFailedcxx . . $ PassFailed.,
51 Infocxx . . $ Info.,
52 Setupcxx . . $ Setup.,
53 Connectedcxx . . $ Connected.,
54 Reconnectingcxx . . $ Reconnecting.,
55 Canceledcxx . . $ Canceled.,
56 ProtocolErrorcxx . . $ ProtocolError.,
57 AlreadyLoggedIncxx . . $ AlreadyLoggedIn.,
58 ConnectionRefusedcxx . . $ ConnectionRefused.,
59 HostNotFoundcxx . . $ HostNotFound.,
60 SockTimeoutcxx . . $ SockTimeout.,
61 UnknownErrorcxx . . $ UnknownError.
62 };
63
64 #define NOT_MAIN_CONNECTIONcxx . . $ `src/network/networkconnection.h:64:9`! true
65
66 class ConnectionCredentialscxx . . $ ConnectionCredentials#
67 {
68 public:
69 ConnectionCredentialscxx . . $ ConnectionCredentials#ConnectionCredentials(6b53b78f53fed4f4).(ConnectionTypecxx . . $ ConnectionType# t, QStringcxx . . $ QString# h, qint16cxx . . $ qint16# p, QStringcxx . . $ QString# u, QStringcxx . . $ QString# pass) :
70 typecxx . . $ ConnectionCredentials#type.(t), hostNamecxx . . $ ConnectionCredentials#hostName.(h), portcxx . . $ ConnectionCredentials#port.(p), userNamecxx . . $ ConnectionCredentials#userName.(u), passwordcxx . . $ QString#QString(132dd6869045752b).(pass) {}
71 ConnectionTypecxx . . $ ConnectionType# typecxx . . $ ConnectionCredentials#type.;
72 QStringcxx . . $ QString# hostNamecxx . . $ ConnectionCredentials#hostName.;
73 qint16cxx . . $ qint16# portcxx . . $ ConnectionCredentials#port.;
74 QStringcxx . . $ QString# userNamecxx . . $ ConnectionCredentials#userName.;
75 QStringcxx . . $ QString# passwordcxx . . $ ConnectionCredentials#password.;
76 };
77
78 /* Game refusal motives... like we need a reason. */
79 #define GD_REFUSE_NOTOPENcxx . . $ `src/network/networkconnection.h:79:9`! 0
80 #define GD_REFUSE_DECLINEcxx . . $ `src/network/networkconnection.h:80:9`! 1
81 #define GD_REFUSE_CANCELcxx . . $ `src/network/networkconnection.h:81:9`! 2
82 #define GD_REFUSE_INGAMEcxx . . $ `src/network/networkconnection.h:82:9`! 3
83 #define GD_REFUSE_NODIRECTcxx . . $ `src/network/networkconnection.h:83:9`! 4
84 #define GD_INVALID_PARAMETERScxx . . $ `src/network/networkconnection.h:84:9`! 5
85 #define GD_OPP_NO_NMATCHcxx . . $ `src/network/networkconnection.h:85:9`! 6
86 #define GD_RESETcxx . . $ `src/network/networkconnection.h:86:9`! 7
87
88 /* NetworkConnection should emit signals for many events */
89 class NetworkConnectioncxx . . $ NetworkConnection# : public QObjectcxx . . $ QObject#
90 {
91 Q_OBJECTcxx . . $ NetworkConnection#staticMetaObject.
92
93 public:
94 NetworkConnectioncxx . . $ NetworkConnection#NetworkConnection(231cf4fc7da7cd6f).(ConnectionCredentialscxx . . $ ConnectionCredentials# credentials);
95 ~cxx . . $ NetworkConnection#`~NetworkConnection`(ced63f7c635d850d).NetworkConnectioncxx . . $ NetworkConnection#();
96 void userCanceledcxx . . $ NetworkConnection#userCanceled(49f6e7a06ebc5aa8).(void) { setStatecxx . . $ NetworkConnection#setState(41e728cff2b23034).(Canceledcxx . . $ Canceled.); /* anything else? */}
97 int checkForOpenBoardscxx . . $ NetworkConnection#checkForOpenBoards(b126dc7c1de90089).(void);
98 virtual void sendPlayersRequestcxx . . $ NetworkConnection#sendPlayersRequest(49f6e7a06ebc5aa8).(void) = 0;
99 void onClosecxx . . $ NetworkConnection#onClose(49f6e7a06ebc5aa8).(void); //so far private? we're going to have tygem use it...
100 virtual void sendTextcxx . . $ NetworkConnection#sendText(7df51288a9ebd664).(QStringcxx . . $ QString# text) = 0;
101 virtual void sendTextcxx . . $ NetworkConnection#sendText(85c52e162fed56f9).(const char * text) = 0;
102 void sendConsoleTextcxx . . $ NetworkConnection#sendConsoleText(85c52e162fed56f9).(const char * text);
103 virtual void sendDisconnectcxx . . $ NetworkConnection#sendDisconnect(49f6e7a06ebc5aa8).(void) = 0;
104 virtual void sendMsgcxx . . $ NetworkConnection#sendMsg(679a3afc1f0f3212).(unsigned int game_id, QStringcxx . . $ QString# text) = 0;
105 virtual void sendMsgcxx . . $ NetworkConnection#sendMsg(c3abbc2f7b873519).(PlayerListingcxx . . $ PlayerListing# * player, QStringcxx . . $ QString# text) = 0;
106 virtual void sendTogglecxx . . $ NetworkConnection#sendToggle(37c160c81b6367f7).(const QStringcxx . . $ QString# & param, bool val) = 0;
107 virtual void sendObservecxx . . $ NetworkConnection#sendObserve(963dc8955d49573e).(const GameListingcxx . . $ GameListing# * game) = 0;
108 virtual void sendObserveOutsidecxx . . $ NetworkConnection#sendObserveOutside(963dc8955d49573e).(const GameListingcxx . . $ GameListing# *) {} //optional
109 virtual void stopObservingcxx . . $ NetworkConnection#stopObserving(963dc8955d49573e).(const GameListingcxx . . $ GameListing# *) {}
110 virtual void stopReviewingcxx . . $ NetworkConnection#stopReviewing(963dc8955d49573e).(const GameListingcxx . . $ GameListing# *) {}
111 virtual void sendStatsRequestcxx . . $ NetworkConnection#sendStatsRequest(cac334474c82cf3a).(const PlayerListingcxx . . $ PlayerListing# * opponent) = 0;
112 virtual void sendGamesRequestcxx . . $ NetworkConnection#sendGamesRequest(49f6e7a06ebc5aa8).(void) = 0;
113 virtual void sendMatchInvitecxx . . $ NetworkConnection#sendMatchInvite(cac334474c82cf3a).(const PlayerListingcxx . . $ PlayerListing# *) = 0;
114 virtual void adjournGamecxx . . $ NetworkConnection#adjournGame(963dc8955d49573e).(const GameListingcxx . . $ GameListing# *) {}
115 virtual void sendTimecxx . . $ NetworkConnection#sendTime(f9aae4eee533680e).(BoardDispatchcxx . . $ BoardDispatch# *) {}
116 virtual void sendAddTimecxx . . $ NetworkConnection#sendAddTime(d4f767463ce0a6b3).(int) {}
117 virtual void sendMovecxx . . $ NetworkConnection#sendMove(74f2a753311a2adf).(unsigned int game_id, class MoveRecordcxx . . $ MoveRecord# * m) = 0;
118 virtual void sendRequestCountcxx . . $ NetworkConnection#sendRequestCount(cb2f890c2fdad230).(unsigned int) {}
119 virtual void sendAcceptCountRequestcxx . . $ NetworkConnection#sendAcceptCountRequest(53acbc9cc3152f0d).(class GameDatacxx . . $ GameData# *) {}
120 virtual void sendRefuseCountRequestcxx . . $ NetworkConnection#sendRefuseCountRequest(53acbc9cc3152f0d).(class GameDatacxx . . $ GameData# *) {}
121 virtual void sendAcceptRequestMatchModecxx . . $ NetworkConnection#sendAcceptRequestMatchMode(cb2f890c2fdad230).(unsigned int) {}
122 virtual void sendDeclineRequestMatchModecxx . . $ NetworkConnection#sendDeclineRequestMatchMode(cb2f890c2fdad230).(unsigned int) {}
123 virtual void sendRequestDrawcxx . . $ NetworkConnection#sendRequestDraw(cb2f890c2fdad230).(unsigned int) {}
124 virtual void sendAcceptDrawRequestcxx . . $ NetworkConnection#sendAcceptDrawRequest(53acbc9cc3152f0d).(class GameDatacxx . . $ GameData# *) {}
125 virtual void sendRefuseDrawRequestcxx . . $ NetworkConnection#sendRefuseDrawRequest(53acbc9cc3152f0d).(class GameDatacxx . . $ GameData# *) {}
126 virtual void sendRequestMatchModecxx . . $ NetworkConnection#sendRequestMatchMode(cb2f890c2fdad230).(unsigned int) {}
127 virtual void sendTimeLosscxx . . $ NetworkConnection#sendTimeLoss(cb2f890c2fdad230).(unsigned int) {} //overwrite or not
128 virtual void sendResultcxx . . $ NetworkConnection#sendResult(f9859626c725809).(class GameDatacxx . . $ GameData# *, class GameResultcxx . . $ GameResult# *) {} //optional
129 virtual void sendMatchRequestcxx . . $ NetworkConnection#sendMatchRequest(969a5d62d7a1bd6e).(class MatchRequestcxx . . $ MatchRequest# * mr) = 0;
130 virtual void sendRematchRequestcxx . . $ NetworkConnection#sendRematchRequest(49f6e7a06ebc5aa8).(void) {} //optional
131 virtual void sendRematchAcceptcxx . . $ NetworkConnection#sendRematchAccept(49f6e7a06ebc5aa8).(void) {}
132 virtual void declineMatchOffercxx . . $ NetworkConnection#declineMatchOffer(cac334474c82cf3a).(const PlayerListingcxx . . $ PlayerListing# * opponent) = 0;
133 virtual void cancelMatchOffercxx . . $ NetworkConnection#cancelMatchOffer(cac334474c82cf3a).(const PlayerListingcxx . . $ PlayerListing# * ) {}
134 virtual void acceptMatchOffercxx . . $ NetworkConnection#acceptMatchOffer(27875a747def42ce).(const PlayerListingcxx . . $ PlayerListing# * opponent, class MatchRequestcxx . . $ MatchRequest# * mr) = 0;
135 virtual QTimecxx . . $ QTime# gd_checkMainTimecxx . . $ NetworkConnection#gd_checkMainTime(71240b9f3410da6b).(TimeSystemcxx . . $ TimeSystem#, const QTimecxx . . $ QTime# & t);
136 virtual QTimecxx . . $ QTime# gd_checkPeriodTimecxx . . $ NetworkConnection#gd_checkPeriodTime(71240b9f3410da6b).(TimeSystemcxx . . $ TimeSystem#, const QTimecxx . . $ QTime# & t) { return t; }
137 virtual unsigned int gd_checkPeriodscxx . . $ NetworkConnection#gd_checkPeriods(c827b1ce4ef0d032).(TimeSystemcxx . . $ TimeSystem#, unsigned int p) { return p; }
138 virtual void sendRejectCountcxx . . $ NetworkConnection#sendRejectCount(53acbc9cc3152f0d).(class GameDatacxx . . $ GameData# *) {}
139 virtual void sendAcceptCountcxx . . $ NetworkConnection#sendAcceptCount(53acbc9cc3152f0d).(class GameDatacxx . . $ GameData# *) {}
140 virtual void sendAdjournRequestcxx . . $ NetworkConnection#sendAdjournRequest(49f6e7a06ebc5aa8).(void) {}
141 virtual void sendAdjourncxx . . $ NetworkConnection#sendAdjourn(49f6e7a06ebc5aa8).(void) {}
142 virtual void sendRefuseAdjourncxx . . $ NetworkConnection#sendRefuseAdjourn(49f6e7a06ebc5aa8).(void) {}
143 public:
144 int writecxx . . $ NetworkConnection#write(1df18506ef0a631b).(const char * packet, unsigned int size);
145 void setConsoleDispatchcxx . . $ NetworkConnection#setConsoleDispatch(79ae725d44840fe3).(ConsoleDispatchcxx . . $ ConsoleDispatch# * c);
146 void setDefaultRoomcxx . . $ NetworkConnection#setDefaultRoom(ccfe55e9aba40de).(Roomcxx . . $ Room# * r) { default_roomcxx . . $ NetworkConnection#default_room. = r; }
147 ConsoleDispatchcxx . . $ ConsoleDispatch# * getConsoleDispatchcxx . . $ NetworkConnection#getConsoleDispatch(5304ece8b917e47).(void) { return console_dispatchcxx . . $ NetworkConnection#console_dispatch.; }
148 Roomcxx . . $ Room# * getDefaultRoomcxx . . $ NetworkConnection#getDefaultRoom(93e93f117be81b18).(void) { return default_roomcxx . . $ NetworkConnection#default_room.; }
149 class PlayerListingcxx . . $ PlayerListing# * getPlayerListingFromFriendWatchListingcxx . . $ NetworkConnection#getPlayerListingFromFriendWatchListing(6605e28ac02b1c72).(class FriendWatchListingcxx . . $ FriendWatchListing# & f);
150 virtual void handlePendingDatacxx . . $ NetworkConnection#handlePendingData(49f6e7a06ebc5aa8).() = 0;
151 virtual void changeServercxx . . $ NetworkConnection#changeServer(49f6e7a06ebc5aa8).(void) {}
152 virtual void createRoomcxx . . $ NetworkConnection#createRoom(49f6e7a06ebc5aa8).(void) {}
153 virtual void sendCreateRoomcxx . . $ NetworkConnection#sendCreateRoom(9db6e4897fed4acd).(class RoomCreatecxx . . $ RoomCreate# *) {}
154 virtual void sendJoinRoomcxx . . $ NetworkConnection#sendJoinRoom(27567cc4e87be946).(const RoomListingcxx . . $ RoomListing# &, const char * = 0) {}
155 virtual void sendJoinChannelcxx . . $ NetworkConnection#sendJoinChannel(17c16455472eee56).(const ChannelListingcxx . . $ ChannelListing# &) {}
156
157
158 virtual char * sendRequestAccountInfocxx . . $ NetworkConnection#sendRequestAccountInfo(f967802dd305bc07).(int *, void *) { return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;}
159 virtual void handleAccountInfoMsgcxx . . $ NetworkConnection#handleAccountInfoMsg(577809987ad7a468).(int, char *) {}
160
161 virtual void addFriendcxx . . $ NetworkConnection#addFriend(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * player);
162 virtual void removeFriendcxx . . $ NetworkConnection#removeFriend(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * player);
163 virtual void addWatchcxx . . $ NetworkConnection#addWatch(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * player);
164 virtual void removeWatchcxx . . $ NetworkConnection#removeWatch(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * player);
165 virtual void addBlockcxx . . $ NetworkConnection#addBlock(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * player);
166 virtual void removeBlockcxx . . $ NetworkConnection#removeBlock(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * player);
167 virtual char * sendAddFriendcxx . . $ NetworkConnection#sendAddFriend(f967802dd305bc07).(int *, void *) { return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;}
168 virtual void recvFriendResponsecxx . . $ NetworkConnection#recvFriendResponse(577809987ad7a468).(int, char *) {}
169 virtual char * sendRemoveFriendcxx . . $ NetworkConnection#sendRemoveFriend(f967802dd305bc07).(int *, void *) { return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!;}
170 virtual char * sendAddBlockcxx . . $ NetworkConnection#sendAddBlock(f967802dd305bc07).(int *, void *) { return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; }
171 virtual char * sendRemoveBlockcxx . . $ NetworkConnection#sendRemoveBlock(f967802dd305bc07).(int *, void *) { return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`!; }
172
173 stdcxx . . $ std/::vectorcxx . . $ std/vector#<class FriendWatchListingcxx . . $ FriendWatchListing# *> & getFriendsListcxx . . $ NetworkConnection#getFriendsList(53e89e0c516ea0b4).(void) { return friendedListcxx . . $ NetworkConnection#friendedList.; }
174 stdcxx . . $ std/::vectorcxx . . $ std/vector#<class FriendWatchListingcxx . . $ FriendWatchListing# *> & getWatchesListcxx . . $ NetworkConnection#getWatchesList(53e89e0c516ea0b4).(void) { return watchedListcxx . . $ NetworkConnection#watchedList.; }
175 stdcxx . . $ std/::vectorcxx . . $ std/vector#<class FriendWatchListingcxx . . $ FriendWatchListing# *> & getBlockedListcxx . . $ NetworkConnection#getBlockedList(53e89e0c516ea0b4).(void) { return blockedListcxx . . $ NetworkConnection#blockedList.; }
176
177 // FIXME Not certain but maybe this chunk below should be protected:??
178 BoardDispatchcxx . . $ BoardDispatch# * getBoardDispatchcxx . . $ NetworkConnection#getBoardDispatch(f34f0704202202).(unsigned int game_id);
179 BoardDispatchcxx . . $ BoardDispatch# * getIfBoardDispatchcxx . . $ NetworkConnection#getIfBoardDispatch(f34f0704202202).(unsigned int game_id);
180 virtual void closeBoardDispatchcxx . . $ NetworkConnection#closeBoardDispatch(cb2f890c2fdad230).(unsigned int game_id);
181 int getBoardDispatchescxx . . $ NetworkConnection#getBoardDispatches(b126dc7c1de90089).(void);
182 GameDialogcxx . . $ GameDialog# * getGameDialogcxx . . $ NetworkConnection#getGameDialog(3dcc94127826259).(const PlayerListingcxx . . $ PlayerListing# * opponent);
183 GameDialogcxx . . $ GameDialog# * getIfGameDialogcxx . . $ NetworkConnection#getIfGameDialog(3dcc94127826259).(const PlayerListingcxx . . $ PlayerListing# * opponent);
184 void closeGameDialogcxx . . $ NetworkConnection#closeGameDialog(cac334474c82cf3a).(const PlayerListingcxx . . $ PlayerListing# *opponent);
185 class MatchRequestcxx . . $ MatchRequest# * getAndCloseGameDialogcxx . . $ NetworkConnection#getAndCloseGameDialog(847f6df3a908f59b).(const PlayerListingcxx . . $ PlayerListing# *opponent);
186
187 const QStringcxx . . $ QString# & getUsernamecxx . . $ NetworkConnection#getUsername(a2fb7a6ce195d51).(void) const { return usernamecxx . . $ NetworkConnection#username.; }
188 virtual const PlayerListingcxx . . $ PlayerListing# * getOurListingcxx . . $ NetworkConnection#getOurListing(c84291d55c8466c6).(void);
189 virtual unsigned short getRoomNumbercxx . . $ NetworkConnection#getRoomNumber(32a7769d58713265).(void) { return 0; }
190 virtual void requestGameInfocxx . . $ NetworkConnection#requestGameInfo(cb2f890c2fdad230).(unsigned int) {} //for IGS on board open
191 virtual void requestGameStatscxx . . $ NetworkConnection#requestGameStats(cb2f890c2fdad230).(unsigned int) {} //same
192 virtual unsigned int rankToScorecxx . . $ NetworkConnection#rankToScore(9d92bb507a34628c).(QStringcxx . . $ QString# rank) = 0;
193 virtual unsigned long getGameDialogFlagscxx . . $ NetworkConnection#getGameDialogFlags(f708dce9a8856c70).(void) { return 0; }
194 virtual void getAndSetFriendWatchTypecxx . . $ NetworkConnection#getAndSetFriendWatchType(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# * player);
195 virtual void checkGameWatchedcxx . . $ NetworkConnection#checkGameWatched(963dc8955d49573e).(const GameListingcxx . . $ GameListing# *game);
196
197 virtual int gd_verifyBoardSizecxx . . $ NetworkConnection#gd_verifyBoardSize(7864480464b09eea).(int v) { return v; }
198
199 virtual bool playerTrackingByIDcxx . . $ NetworkConnection#playerTrackingByID(c9857a73d68e59ba).(void) { return false; }
200 virtual bool flipCoordscxx . . $ NetworkConnection#flipCoords(c9857a73d68e59ba).(void) { return true; }
201 virtual bool supportsMultipleUndocxx . . $ NetworkConnection#supportsMultipleUndo(c9857a73d68e59ba).(void) { return false; }
202 virtual bool supportsRequestMatchModecxx . . $ NetworkConnection#supportsRequestMatchMode(c9857a73d68e59ba).(void) { return false; }
203 virtual bool supportsRequestAdjourncxx . . $ NetworkConnection#supportsRequestAdjourn(c9857a73d68e59ba).(void) { return false; }
204 virtual bool supportsRequestDrawcxx . . $ NetworkConnection#supportsRequestDraw(c9857a73d68e59ba).(void) { return false; }
205 virtual bool supportsRequestCountcxx . . $ NetworkConnection#supportsRequestCount(c9857a73d68e59ba).(void) { return false; }
206 virtual bool supportsAddTimecxx . . $ NetworkConnection#supportsAddTime(c9857a73d68e59ba).(void) { return false; }
207 virtual bool supportsObserveOutsidecxx . . $ NetworkConnection#supportsObserveOutside(c9857a73d68e59ba).(void) { return false; }
208 virtual bool supportsServerChangecxx . . $ NetworkConnection#supportsServerChange(c9857a73d68e59ba).(void) { return false; }
209 virtual bool supportsRefreshListsButtonscxx . . $ NetworkConnection#supportsRefreshListsButtons(c9857a73d68e59ba).(void) { return false; }
210 virtual bool consoleIsChatcxx . . $ NetworkConnection#consoleIsChat(c9857a73d68e59ba).(void) { return true; }
211 virtual bool supportsRematchcxx . . $ NetworkConnection#supportsRematch(c9857a73d68e59ba).(void) { return false; }
212 virtual bool startTimerOnOpencxx . . $ NetworkConnection#startTimerOnOpen(c9857a73d68e59ba).(void) { return false; } //name?? no "supports"?
213 virtual bool clientCountsTimecxx . . $ NetworkConnection#clientCountsTime(c9857a73d68e59ba).(void) { return true; }
214 virtual bool clientSendsTimecxx . . $ NetworkConnection#clientSendsTime(c9857a73d68e59ba).(void) { return false; }
215 virtual bool undoResetsScorecxx . . $ NetworkConnection#undoResetsScore(c9857a73d68e59ba).(void) { return false; }
216 virtual bool netWillEnterScoreModecxx . . $ NetworkConnection#netWillEnterScoreMode(c9857a73d68e59ba).(void) { return false; }
217 virtual bool canMarkStonesDeadinScorecxx . . $ NetworkConnection#canMarkStonesDeadinScore(c9857a73d68e59ba).(void) { return true; }
218 virtual bool unmarkUnmarksAllDeadStonescxx . . $ NetworkConnection#unmarkUnmarksAllDeadStones(c9857a73d68e59ba).(void) { return false; }
219 virtual bool cantMarkOppStonesDeadcxx . . $ NetworkConnection#cantMarkOppStonesDead(c9857a73d68e59ba).(void) { return false; }
220 virtual bool twoPassesEndsGamecxx . . $ NetworkConnection#twoPassesEndsGame(c9857a73d68e59ba).(void) { return false; } //used?? FIXME
221 virtual bool supportsFriendListcxx . . $ NetworkConnection#supportsFriendList(c9857a73d68e59ba).(void) { return false; }
222 virtual bool supportsWatchListcxx . . $ NetworkConnection#supportsWatchList(c9857a73d68e59ba).(void) { return false; }
223 virtual bool supportsBlockListcxx . . $ NetworkConnection#supportsBlockList(c9857a73d68e59ba).(void) { return false; }
224 virtual bool supportsSeekcxx . . $ NetworkConnection#supportsSeek(c9857a73d68e59ba).(void) { return false; }
225 virtual const char * getCodecStringcxx . . $ NetworkConnection#getCodecString(33a1f659e94feb42).(void) { return ""; }
226 virtual QStringcxx . . $ QString# getPlaceStringcxx . . $ NetworkConnection#getPlaceString(4365c3963150523e).(void) { return ""cxx . . $ QString#QString(85c52e162fed56f9).; }
227 virtual void saveIfDoesntSavecxx . . $ NetworkConnection#saveIfDoesntSave(53acbc9cc3152f0d).(GameDatacxx . . $ GameData# *) {}
228 virtual unsigned long getPlayerListColumnscxx . . $ NetworkConnection#getPlayerListColumns(f708dce9a8856c70).(void) { return 0; }
229 #define PL_NOWINSLOSSEScxx . . $ `src/network/networkconnection.h:229:11`! 0x01
230 #define PL_NOMATCHPREFScxx . . $ `src/network/networkconnection.h:230:11`! 0x02
231 virtual bool supportsChannelscxx . . $ NetworkConnection#supportsChannels(c9857a73d68e59ba).(void) { return false; }
232 virtual bool supportsCreateRoomcxx . . $ NetworkConnection#supportsCreateRoom(c9857a73d68e59ba).(void) { return false; }
233 virtual unsigned long getRoomStructureFlagscxx . . $ NetworkConnection#getRoomStructureFlags(f708dce9a8856c70).(void) = 0;
234 #define RS_NOROOMLISTcxx . . $ `src/network/networkconnection.h:234:11`! 0x01
235 #define RS_SHORTROOMLISTcxx . . $ `src/network/networkconnection.h:235:11`! 0x02
236 #define RS_LONGROOMLISTcxx . . $ `src/network/networkconnection.h:236:11`! 0x04
237 #define RS_ONEROOMATATIMEcxx . . $ `src/network/networkconnection.h:237:11`! 0x08
238 #define RS_ONEGAMEPERROOMcxx . . $ `src/network/networkconnection.h:238:11`! 0x10
239 stdcxx . . $ std/::vectorcxx . . $ std/vector#<class RoomListingcxx . . $ RoomListing# *> * getRoomListcxx . . $ NetworkConnection#getRoomList(dddf432dc8261a6a).(void) { return 0; }
240 void recvRoomListingcxx . . $ NetworkConnection#recvRoomListing(cd0728ed85364d48).(class RoomListingcxx . . $ RoomListing# * r);
241 void recvChannelListingcxx . . $ NetworkConnection#recvChannelListing(1317f7c0eb828e93).(class ChannelListingcxx . . $ ChannelListing# * r);
242 /* again, recvRoom is solely for igs handlers which aren't
243 * part of networkconnection FIXME */
244
245 void recvSeekConditioncxx . . $ NetworkConnection#recvSeekCondition(c6d377b4419439f6).(class SeekConditioncxx . . $ SeekCondition# * s);
246 void recvSeekCancelcxx . . $ NetworkConnection#recvSeekCancel(49f6e7a06ebc5aa8).(void);
247 void recvSeekPlayercxx . . $ NetworkConnection#recvSeekPlayer(3458fe3960d5051).(QStringcxx . . $ QString# player, QStringcxx . . $ QString# condition);
248 virtual void sendSeekcxx . . $ NetworkConnection#sendSeek(c6d377b4419439f6).(class SeekConditioncxx . . $ SeekCondition# *) {}
249 virtual void sendSeekCancelcxx . . $ NetworkConnection#sendSeekCancel(49f6e7a06ebc5aa8).(void) {}
250
251 signalscxx . . $ `<external>/1208926524888476972/qobjectdefs.h:89:14`!:
252 void readycxx . . $ NetworkConnection#ready(49f6e7a06ebc5aa8).(void);
253 void playerListingReceivedcxx . . $ NetworkConnection#playerListingReceived(122195e397f39e1b).(PlayerListingcxx . . $ PlayerListing# *);
254 void gameListingReceivedcxx . . $ NetworkConnection#gameListingReceived(9a447f3b9a8a5041).(GameListingcxx . . $ GameListing# *);
255 void stateChangedcxx . . $ NetworkConnection#stateChanged(41e728cff2b23034).(ConnectionStatecxx . . $ ConnectionState#);
256
257 protected:
258 void closeConnectioncxx . . $ NetworkConnection#closeConnection(b45ddcbc8423892c).(bool send_disconnect = true);
259 virtual void onAuthenticationNegotiatedcxx . . $ NetworkConnection#onAuthenticationNegotiated(49f6e7a06ebc5aa8).(void);
260 virtual void onReadycxx . . $ NetworkConnection#onReady(49f6e7a06ebc5aa8).(void);
261 QTcpSocketcxx . . $ QTcpSocket# * getQSocketcxx . . $ NetworkConnection#getQSocket(3b0f0a12ef6ae0dd).(void) { return qsocketcxx . . $ NetworkConnection#qsocket.; }
262 void writeZeroPaddedStringcxx . . $ NetworkConnection#writeZeroPaddedString(13ac1ff599cf8ed8).(char * dst, const QStringcxx . . $ QString# & src, int size);
263 bool openConnectioncxx . . $ NetworkConnection#openConnection(6f40ee5c4c30d87e).(const QStringcxx . . $ QString# & host, const unsigned short port, bool not_main_connection = false);
264 void latencyOnSendcxx . . $ NetworkConnection#latencyOnSend(49f6e7a06ebc5aa8).(void);
265 void latencyOnRecvcxx . . $ NetworkConnection#latencyOnRecv(49f6e7a06ebc5aa8).(void);
266 void changeChannelcxx . . $ NetworkConnection#changeChannel(3520e46b33348bf6).(const QStringcxx . . $ QString# & s);
267 void setStatecxx . . $ NetworkConnection#setState(41e728cff2b23034).(ConnectionStatecxx . . $ ConnectionState# newState);
268
269 bool firstonReadyCallcxx . . $ NetworkConnection#firstonReadyCall.;
270 Roomcxx . . $ Room# * default_roomcxx . . $ NetworkConnection#default_room.;
271 ConsoleDispatchcxx . . $ ConsoleDispatch# * console_dispatchcxx . . $ NetworkConnection#console_dispatch.;
272
273 ConnectionTypecxx . . $ ConnectionType# connectionTypecxx . . $ NetworkConnection#connectionType.;
274 QStringcxx . . $ QString# hostnamecxx . . $ NetworkConnection#hostname.;
275 qint16cxx . . $ qint16# portcxx . . $ NetworkConnection#port.;
276 QStringcxx . . $ QString# usernamecxx . . $ NetworkConnection#username.;
277 QStringcxx . . $ QString# passwordcxx . . $ NetworkConnection#password.;
278
279 ConnectionStatecxx . . $ ConnectionState# connectionStatecxx . . $ NetworkConnection#connectionState.;
280
281 bool friendwatch_notify_defaultcxx . . $ NetworkConnection#friendwatch_notify_default.;
282
283 stdcxx . . $ std/::vectorcxx . . $ std/vector#<FriendWatchListingcxx . . $ FriendWatchListing# *> friendedListcxx . . $ NetworkConnection#friendedList.;
284 stdcxx . . $ std/::vectorcxx . . $ std/vector#<FriendWatchListingcxx . . $ FriendWatchListing# *> watchedListcxx . . $ NetworkConnection#watchedList.;
285 stdcxx . . $ std/::vectorcxx . . $ std/vector#<FriendWatchListingcxx . . $ FriendWatchListing# *> blockedListcxx . . $ NetworkConnection#blockedList.;
286
287 MatchNegotiationStatecxx . . $ MatchNegotiationState# * match_negotiation_statecxx . . $ NetworkConnection#match_negotiation_state.;
288 int lastMainTimeCheckedcxx . . $ NetworkConnection#lastMainTimeChecked., lastPeriodTimeCheckedcxx . . $ NetworkConnection#lastPeriodTimeChecked., lastPeriodsCheckedcxx . . $ NetworkConnection#lastPeriodsChecked.;
289
290 QTcpSocketcxx . . $ QTcpSocket# * qsocketcxx . . $ NetworkConnection#qsocket.;
291
292 private:
293 void setupRoomAndConsolecxx . . $ NetworkConnection#setupRoomAndConsole(49f6e7a06ebc5aa8).(void);
294 void tearDownRoomAndConsolecxx . . $ NetworkConnection#tearDownRoomAndConsole(49f6e7a06ebc5aa8).(void);
295 void loadfriendswatchescxx . . $ NetworkConnection#loadfriendswatches(49f6e7a06ebc5aa8).(void);
296 void savefriendswatchescxx . . $ NetworkConnection#savefriendswatches(49f6e7a06ebc5aa8).(void);
297
298 void drawPleaseWaitcxx . . $ NetworkConnection#drawPleaseWait(49f6e7a06ebc5aa8).(void);
299
300 Roomcxx . . $ Room# * mainwindowroomcxx . . $ NetworkConnection#mainwindowroom.;
301
302 QMessageBoxcxx . . $ QMessageBox# * connectingDialogcxx . . $ NetworkConnection#connectingDialog.;
303 #ifdef LATENCY
304 struct timeval latencyLast;
305 unsigned long latencyAverage;
306 #endif //LATENCY
307
308 protected:
309 QMapcxx . . $ QMap# <unsigned int, BoardDispatchcxx . . $ BoardDispatch# *> boardDispatchMapcxx . . $ NetworkConnection#boardDispatchMap.;
310 // Accessed by IGS connection class
311 PlayerListingcxx . . $ PlayerListing# * ourListingcxx . . $ NetworkConnection#ourListing.;
312 private:
313 QMapcxx . . $ QMap# <const PlayerListingcxx . . $ PlayerListing# *, GameDialogcxx . . $ GameDialog# *> gameDialogMapcxx . . $ NetworkConnection#gameDialogMap.;
314
315 protected:
316 virtual void OnConnectedcxx . . $ NetworkConnection#OnConnected(49f6e7a06ebc5aa8).();
317 private:
318 //void OnHostFound();
319 void OnReadyReadcxx . . $ NetworkConnection#OnReadyRead(49f6e7a06ebc5aa8).();
320 void OnConnectionClosedcxx . . $ NetworkConnection#OnConnectionClosed(49f6e7a06ebc5aa8).();
321 //OnDelayedCloseFinish();
322 //OnBytesWritten(int);
323 void OnErrorcxx . . $ NetworkConnection#OnError(c866838463bd22b).(QAbstractSocketcxx . . $ QAbstractSocket#::SocketErrorcxx . . $ QAbstractSocket#SocketError#);
324
325 void slot_cancelConnectingcxx . . $ NetworkConnection#slot_cancelConnecting(49f6e7a06ebc5aa8).(void);
326 };
327
328 class FriendWatchListingcxx . . $ FriendWatchListing#
329 {
330 public:
331 FriendWatchListingcxx . . $ FriendWatchListing#FriendWatchListing(4e51b35ce1bea96b).(QStringcxx . . $ QString# n, bool b = false) : namecxx . . $ QString#QString(132dd6869045752b).(n), idcxx . . $ FriendWatchListing#id.(0), notifycxx . . $ FriendWatchListing#notify.(b), onlinecxx . . $ FriendWatchListing#online.(false) {}
332 QStringcxx . . $ QString# namecxx . . $ FriendWatchListing#name.;
333 unsigned short idcxx . . $ FriendWatchListing#id.; //if necessary
334 bool notifycxx . . $ FriendWatchListing#notify.;
335 bool onlinecxx . . $ FriendWatchListing#online.;
336 };
337 #endif //NETWORKCONNECTION_H