Preparing guest user restrictions when joining games.
This commit is contained in:
+5
-4
@@ -295,10 +295,11 @@ JoinGameAck ::= SEQUENCE {
|
|||||||
|
|
||||||
JoinGameFailed ::= SEQUENCE {
|
JoinGameFailed ::= SEQUENCE {
|
||||||
joinGameFailureReason ENUMERATED {
|
joinGameFailureReason ENUMERATED {
|
||||||
invalidGame (1),
|
invalidGame (1),
|
||||||
gameIsFull (2),
|
gameIsFull (2),
|
||||||
gameIsRunning (3),
|
gameIsRunning (3),
|
||||||
invalidPassword (4)
|
invalidPassword (4),
|
||||||
|
notAllowedAsGuest (5)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -694,7 +694,7 @@ void startWindowImpl::networkError(int errorID, int /*osErrorID*/) {
|
|||||||
break;
|
break;
|
||||||
case ERR_NET_INVALID_PASSWORD:
|
case ERR_NET_INVALID_PASSWORD:
|
||||||
{ QMessageBox::warning(this, tr("Network Error"),
|
{ QMessageBox::warning(this, tr("Network Error"),
|
||||||
tr("Invalid password when joining the game.\nPlease reenter the password and try again."),
|
tr("Invalid login.\nPlease check your username and password."),
|
||||||
QMessageBox::Close); }
|
QMessageBox::Close); }
|
||||||
break;
|
break;
|
||||||
case ERR_NET_INVALID_PASSWORD_STR:
|
case ERR_NET_INVALID_PASSWORD_STR:
|
||||||
@@ -842,6 +842,11 @@ void startWindowImpl::networkNotification(int notificationId)
|
|||||||
tr("Invalid password when joining the game.\nPlease reenter the password and try again."),
|
tr("Invalid password when joining the game.\nPlease reenter the password and try again."),
|
||||||
QMessageBox::Close); }
|
QMessageBox::Close); }
|
||||||
break;
|
break;
|
||||||
|
case NTF_NET_JOIN_GUEST_FORBIDDEN:
|
||||||
|
{ QMessageBox::warning(this, tr("Network Notification"),
|
||||||
|
tr("You cannot join this type of game as guest."),
|
||||||
|
QMessageBox::Close); }
|
||||||
|
break;
|
||||||
case NTF_NET_NEW_RELEASE_AVAILABLE:
|
case NTF_NET_NEW_RELEASE_AVAILABLE:
|
||||||
{ QMessageBox msgBox(QMessageBox::Information, tr("Network Notification"),
|
{ QMessageBox msgBox(QMessageBox::Information, tr("Network Notification"),
|
||||||
tr("A new release of PokerTH is available.<br>Please go to <a href=\"http://www.pokerth.net/\" target=\"_blank\">http://www.pokerth.net</a> and download the latest version."),
|
tr("A new release of PokerTH is available.<br>Please go to <a href=\"http://www.pokerth.net/\" target=\"_blank\">http://www.pokerth.net</a> and download the latest version."),
|
||||||
|
|||||||
@@ -111,6 +111,7 @@
|
|||||||
#define NTF_NET_JOIN_GAME_FULL 211
|
#define NTF_NET_JOIN_GAME_FULL 211
|
||||||
#define NTF_NET_JOIN_ALREADY_RUNNING 212
|
#define NTF_NET_JOIN_ALREADY_RUNNING 212
|
||||||
#define NTF_NET_JOIN_INVALID_PASSWORD 213
|
#define NTF_NET_JOIN_INVALID_PASSWORD 213
|
||||||
|
#define NTF_NET_JOIN_GUEST_FORBIDDEN 214
|
||||||
|
|
||||||
// Notifications - version
|
// Notifications - version
|
||||||
#define NTF_NET_NEW_RELEASE_AVAILABLE 220
|
#define NTF_NET_NEW_RELEASE_AVAILABLE 220
|
||||||
|
|||||||
Reference in New Issue
Block a user