Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
3102dd60
Commit
3102dd60
authored
Jul 24, 2014
by
Fabio Bas
Browse files
Hide unused parameters in common/ to avoid warnings
parent
6c7ba095
Changes
4
Hide whitespace changes
Inline
Side-by-side
common/server.h
View file @
3102dd60
...
@@ -97,7 +97,7 @@ protected slots:
...
@@ -97,7 +97,7 @@ protected slots:
void
externalGameEventContainerReceived
(
const
GameEventContainer
&
cont
,
qint64
sessionId
);
void
externalGameEventContainerReceived
(
const
GameEventContainer
&
cont
,
qint64
sessionId
);
void
externalResponseReceived
(
const
Response
&
resp
,
qint64
sessionId
);
void
externalResponseReceived
(
const
Response
&
resp
,
qint64
sessionId
);
virtual
void
doSendIslMessage
(
const
IslMessage
&
msg
,
int
serverId
)
{
}
virtual
void
doSendIslMessage
(
const
IslMessage
&
/* msg */
,
int
/*
serverId
*/
)
{
}
protected:
protected:
void
prepareDestroy
();
void
prepareDestroy
();
void
setDatabaseInterface
(
Server_DatabaseInterface
*
_databaseInterface
);
void
setDatabaseInterface
(
Server_DatabaseInterface
*
_databaseInterface
);
...
...
common/server_database_interface.h
View file @
3102dd60
...
@@ -12,18 +12,18 @@ public:
...
@@ -12,18 +12,18 @@ public:
:
QObject
(
parent
)
{
}
:
QObject
(
parent
)
{
}
virtual
AuthenticationResult
checkUserPassword
(
Server_ProtocolHandler
*
handler
,
const
QString
&
user
,
const
QString
&
password
,
QString
&
reasonStr
,
int
&
secondsLeft
)
=
0
;
virtual
AuthenticationResult
checkUserPassword
(
Server_ProtocolHandler
*
handler
,
const
QString
&
user
,
const
QString
&
password
,
QString
&
reasonStr
,
int
&
secondsLeft
)
=
0
;
virtual
bool
userExists
(
const
QString
&
user
)
{
return
false
;
}
virtual
bool
userExists
(
const
QString
&
/*
user
*/
)
{
return
false
;
}
virtual
QMap
<
QString
,
ServerInfo_User
>
getBuddyList
(
const
QString
&
name
)
{
return
QMap
<
QString
,
ServerInfo_User
>
();
}
virtual
QMap
<
QString
,
ServerInfo_User
>
getBuddyList
(
const
QString
&
/*
name
*/
)
{
return
QMap
<
QString
,
ServerInfo_User
>
();
}
virtual
QMap
<
QString
,
ServerInfo_User
>
getIgnoreList
(
const
QString
&
name
)
{
return
QMap
<
QString
,
ServerInfo_User
>
();
}
virtual
QMap
<
QString
,
ServerInfo_User
>
getIgnoreList
(
const
QString
&
/*
name
*/
)
{
return
QMap
<
QString
,
ServerInfo_User
>
();
}
virtual
bool
isInBuddyList
(
const
QString
&
whoseList
,
const
QString
&
who
)
{
return
false
;
}
virtual
bool
isInBuddyList
(
const
QString
&
/*
whoseList
*/
,
const
QString
&
/* who */
)
{
return
false
;
}
virtual
bool
isInIgnoreList
(
const
QString
&
whoseList
,
const
QString
&
who
)
{
return
false
;
}
virtual
bool
isInIgnoreList
(
const
QString
&
/*
whoseList
*/
,
const
QString
&
/* who */
)
{
return
false
;
}
virtual
ServerInfo_User
getUserData
(
const
QString
&
name
,
bool
withId
=
false
)
=
0
;
virtual
ServerInfo_User
getUserData
(
const
QString
&
name
,
bool
withId
=
false
)
=
0
;
virtual
void
storeGameInformation
(
const
QString
&
roomName
,
const
QStringList
&
roomGameTypes
,
const
ServerInfo_Game
&
gameInfo
,
const
QSet
<
QString
>
&
allPlayersEver
,
const
QSet
<
QString
>
&
allSpectatorsEver
,
const
QList
<
GameReplay
*>
&
replayList
)
{
}
virtual
void
storeGameInformation
(
const
QString
&
/*
roomName
*/
,
const
QStringList
&
/*
roomGameTypes
*/
,
const
ServerInfo_Game
&
/*
gameInfo
*/
,
const
QSet
<
QString
>
&
/*
allPlayersEver
*/
,
const
QSet
<
QString
>
&
/*
allSpectatorsEver
*/
,
const
QList
<
GameReplay
*>
&
/*
replayList
*/
)
{
}
virtual
DeckList
*
getDeckFromDatabase
(
int
deckId
,
int
userId
)
{
return
0
;
}
virtual
DeckList
*
getDeckFromDatabase
(
int
/*
deckId
*/
,
int
/*
userId
*/
)
{
return
0
;
}
virtual
qint64
startSession
(
const
QString
&
userName
,
const
QString
&
address
)
{
return
0
;
}
virtual
qint64
startSession
(
const
QString
&
/*
userName
*/
,
const
QString
&
/*
address
*/
)
{
return
0
;
}
public
slots
:
public
slots
:
virtual
void
endSession
(
qint64
sessionId
)
{
}
virtual
void
endSession
(
qint64
/*
sessionId
*/
)
{
}
public:
public:
virtual
int
getNextGameId
()
=
0
;
virtual
int
getNextGameId
()
=
0
;
virtual
int
getNextReplayId
()
=
0
;
virtual
int
getNextReplayId
()
=
0
;
...
@@ -31,7 +31,7 @@ public:
...
@@ -31,7 +31,7 @@ public:
virtual
void
clearSessionTables
()
{
}
virtual
void
clearSessionTables
()
{
}
virtual
void
lockSessionTables
()
{
}
virtual
void
lockSessionTables
()
{
}
virtual
void
unlockSessionTables
()
{
}
virtual
void
unlockSessionTables
()
{
}
virtual
bool
userSessionExists
(
const
QString
&
userName
)
{
return
false
;
}
virtual
bool
userSessionExists
(
const
QString
&
/*
userName
*/
)
{
return
false
;
}
};
};
#endif
#endif
common/server_player.cpp
View file @
3102dd60
...
@@ -1594,7 +1594,7 @@ Response::ResponseCode Server_Player::cmdRevealCards(const Command_RevealCards &
...
@@ -1594,7 +1594,7 @@ Response::ResponseCode Server_Player::cmdRevealCards(const Command_RevealCards &
return
Response
::
RespOk
;
return
Response
::
RespOk
;
}
}
Response
::
ResponseCode
Server_Player
::
cmdChangeZoneProperties
(
const
Command_ChangeZoneProperties
&
cmd
,
ResponseContainer
&
rc
,
GameEventStorage
&
ges
)
Response
::
ResponseCode
Server_Player
::
cmdChangeZoneProperties
(
const
Command_ChangeZoneProperties
&
cmd
,
ResponseContainer
&
/* rc */
,
GameEventStorage
&
ges
)
{
{
Server_CardZone
*
zone
=
zones
.
value
(
QString
::
fromStdString
(
cmd
.
zone_name
()));
Server_CardZone
*
zone
=
zones
.
value
(
QString
::
fromStdString
(
cmd
.
zone_name
()));
if
(
!
zone
)
if
(
!
zone
)
...
...
common/server_protocolhandler.h
View file @
3102dd60
...
@@ -49,7 +49,7 @@ protected:
...
@@ -49,7 +49,7 @@ protected:
AuthenticationResult
authState
;
AuthenticationResult
authState
;
bool
acceptsUserListChanges
;
bool
acceptsUserListChanges
;
bool
acceptsRoomListChanges
;
bool
acceptsRoomListChanges
;
virtual
void
logDebugMessage
(
const
QString
&
message
)
{
}
virtual
void
logDebugMessage
(
const
QString
&
/*
message
*/
)
{
}
private:
private:
QList
<
int
>
messageSizeOverTime
,
messageCountOverTime
;
QList
<
int
>
messageSizeOverTime
,
messageCountOverTime
;
int
timeRunning
,
lastDataReceived
;
int
timeRunning
,
lastDataReceived
;
...
@@ -71,13 +71,13 @@ private:
...
@@ -71,13 +71,13 @@ private:
Response
::
ResponseCode
cmdJoinGame
(
const
Command_JoinGame
&
cmd
,
Server_Room
*
room
,
ResponseContainer
&
rc
);
Response
::
ResponseCode
cmdJoinGame
(
const
Command_JoinGame
&
cmd
,
Server_Room
*
room
,
ResponseContainer
&
rc
);
Response
::
ResponseCode
processSessionCommandContainer
(
const
CommandContainer
&
cont
,
ResponseContainer
&
rc
);
Response
::
ResponseCode
processSessionCommandContainer
(
const
CommandContainer
&
cont
,
ResponseContainer
&
rc
);
virtual
Response
::
ResponseCode
processExtendedSessionCommand
(
int
cmdType
,
const
SessionCommand
&
cmd
,
ResponseContainer
&
rc
)
{
return
Response
::
RespFunctionNotAllowed
;
}
virtual
Response
::
ResponseCode
processExtendedSessionCommand
(
int
/*
cmdType
*/
,
const
SessionCommand
&
/* cmd */
,
ResponseContainer
&
/* rc */
)
{
return
Response
::
RespFunctionNotAllowed
;
}
Response
::
ResponseCode
processRoomCommandContainer
(
const
CommandContainer
&
cont
,
ResponseContainer
&
rc
);
Response
::
ResponseCode
processRoomCommandContainer
(
const
CommandContainer
&
cont
,
ResponseContainer
&
rc
);
Response
::
ResponseCode
processGameCommandContainer
(
const
CommandContainer
&
cont
,
ResponseContainer
&
rc
);
Response
::
ResponseCode
processGameCommandContainer
(
const
CommandContainer
&
cont
,
ResponseContainer
&
rc
);
Response
::
ResponseCode
processModeratorCommandContainer
(
const
CommandContainer
&
cont
,
ResponseContainer
&
rc
);
Response
::
ResponseCode
processModeratorCommandContainer
(
const
CommandContainer
&
cont
,
ResponseContainer
&
rc
);
virtual
Response
::
ResponseCode
processExtendedModeratorCommand
(
int
cmdType
,
const
ModeratorCommand
&
cmd
,
ResponseContainer
&
rc
)
{
return
Response
::
RespFunctionNotAllowed
;
}
virtual
Response
::
ResponseCode
processExtendedModeratorCommand
(
int
/*
cmdType
*/
,
const
ModeratorCommand
&
/* cmd */
,
ResponseContainer
&
/* rc */
)
{
return
Response
::
RespFunctionNotAllowed
;
}
Response
::
ResponseCode
processAdminCommandContainer
(
const
CommandContainer
&
cont
,
ResponseContainer
&
rc
);
Response
::
ResponseCode
processAdminCommandContainer
(
const
CommandContainer
&
cont
,
ResponseContainer
&
rc
);
virtual
Response
::
ResponseCode
processExtendedAdminCommand
(
int
cmdType
,
const
AdminCommand
&
cmd
,
ResponseContainer
&
rc
)
{
return
Response
::
RespFunctionNotAllowed
;
}
virtual
Response
::
ResponseCode
processExtendedAdminCommand
(
int
/*
cmdType
*/
,
const
AdminCommand
&
/* cmd */
,
ResponseContainer
&
/* rc */
)
{
return
Response
::
RespFunctionNotAllowed
;
}
private
slots
:
private
slots
:
void
pingClockTimeout
();
void
pingClockTimeout
();
public
slots
:
public
slots
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment