summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-03 14:31:43 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-03 14:31:43 +0300
commitb643a5c48d53dbeca7672e3c8b5182f9d698abcb (patch)
treeab596dc9a0c573764c1e0b427f22303faa1bfec1 /src/gui
parent6281c1281fe85a1c75155df44c99aa843561a4f2 (diff)
downloadmv-b643a5c48d53dbeca7672e3c8b5182f9d698abcb.tar.gz
mv-b643a5c48d53dbeca7672e3c8b5182f9d698abcb.tar.bz2
mv-b643a5c48d53dbeca7672e3c8b5182f9d698abcb.tar.xz
mv-b643a5c48d53dbeca7672e3c8b5182f9d698abcb.zip
Convert PacketShare enum into strong typed enum.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/tabs/chat/partytab.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/widgets/tabs/chat/partytab.cpp b/src/gui/widgets/tabs/chat/partytab.cpp
index 489f03c94..cb458f1fe 100644
--- a/src/gui/widgets/tabs/chat/partytab.cpp
+++ b/src/gui/widgets/tabs/chat/partytab.cpp
@@ -93,22 +93,22 @@ bool PartyTab::handleCommand(const std::string &restrict type,
{
switch (partyHandler->getShareItems())
{
- case Net::PartyShare::YES:
+ case PartyShare::YES:
// TRANSLATORS: chat message
chatLog(_("Item sharing enabled."),
ChatMsgType::BY_SERVER);
return true;
- case Net::PartyShare::NO:
+ case PartyShare::NO:
// TRANSLATORS: chat message
chatLog(_("Item sharing disabled."),
ChatMsgType::BY_SERVER);
return true;
- case Net::PartyShare::NOT_POSSIBLE:
+ case PartyShare::NOT_POSSIBLE:
// TRANSLATORS: chat message
chatLog(_("Item sharing not possible."),
ChatMsgType::BY_SERVER);
return true;
- case Net::PartyShare::UNKNOWN:
+ case PartyShare::UNKNOWN:
// TRANSLATORS: chat message
chatLog(_("Item sharing unknown."),
ChatMsgType::BY_SERVER);
@@ -124,11 +124,11 @@ bool PartyTab::handleCommand(const std::string &restrict type,
{
case 1:
partyHandler->setShareItems(
- Net::PartyShare::YES);
+ PartyShare::YES);
break;
case 0:
partyHandler->setShareItems(
- Net::PartyShare::NO);
+ PartyShare::NO);
break;
case -1:
chatLog(strprintf(BOOLEAN_OPTIONS, "item"),
@@ -144,22 +144,22 @@ bool PartyTab::handleCommand(const std::string &restrict type,
{
switch (partyHandler->getShareExperience())
{
- case Net::PartyShare::YES:
+ case PartyShare::YES:
// TRANSLATORS: chat message
chatLog(_("Experience sharing enabled."),
ChatMsgType::BY_SERVER);
return true;
- case Net::PartyShare::NO:
+ case PartyShare::NO:
// TRANSLATORS: chat message
chatLog(_("Experience sharing disabled."),
ChatMsgType::BY_SERVER);
return true;
- case Net::PartyShare::NOT_POSSIBLE:
+ case PartyShare::NOT_POSSIBLE:
// TRANSLATORS: chat message
chatLog(_("Experience sharing not possible."),
ChatMsgType::BY_SERVER);
return true;
- case Net::PartyShare::UNKNOWN:
+ case PartyShare::UNKNOWN:
// TRANSLATORS: chat message
chatLog(_("Experience sharing unknown."),
ChatMsgType::BY_SERVER);
@@ -175,11 +175,11 @@ bool PartyTab::handleCommand(const std::string &restrict type,
{
case 1:
partyHandler->setShareExperience(
- Net::PartyShare::YES);
+ PartyShare::YES);
break;
case 0:
partyHandler->setShareExperience(
- Net::PartyShare::NO);
+ PartyShare::NO);
break;
case -1:
chatLog(strprintf(BOOLEAN_OPTIONS, "exp"),