diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-03 14:31:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-03 14:31:43 +0300 |
commit | b643a5c48d53dbeca7672e3c8b5182f9d698abcb (patch) | |
tree | ab596dc9a0c573764c1e0b427f22303faa1bfec1 /src/gui/widgets | |
parent | 6281c1281fe85a1c75155df44c99aa843561a4f2 (diff) | |
download | plus-b643a5c48d53dbeca7672e3c8b5182f9d698abcb.tar.gz plus-b643a5c48d53dbeca7672e3c8b5182f9d698abcb.tar.bz2 plus-b643a5c48d53dbeca7672e3c8b5182f9d698abcb.tar.xz plus-b643a5c48d53dbeca7672e3c8b5182f9d698abcb.zip |
Convert PacketShare enum into strong typed enum.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/tabs/chat/partytab.cpp | 24 |
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"), |