ManaPlus
|
Functions | |
void | processMailIcon (Net::MessageIn &msg) |
void | processOpenNewMailWindow (Net::MessageIn &msg) |
void | processAddItemResult (Net::MessageIn &msg) |
void | processRemoveItemResult (Net::MessageIn &msg) |
void | processCheckNameResult (Net::MessageIn &msg) |
void | processSendResult (Net::MessageIn &msg) |
void | processMailListPage (Net::MessageIn &msg) |
void | processReadMail (Net::MessageIn &msg) |
void | processMailDelete (Net::MessageIn &msg) |
void | processRequestMoney (Net::MessageIn &msg) |
void | processRequestItems (Net::MessageIn &msg) |
Variables | |
std::queue< MailQueue * > | mMailQueue |
std::string | mCheckedName |
void EAthena::Mail2Recv::processAddItemResult | ( | Net::MessageIn & | msg | ) |
Definition at line 80 of file mail2recv.cpp.
References ItemOptionsList::add(), Inventory::addItem(), Equipm_false, Equipped_false, Inventory::findItemByTag(), fromBool, ItemColorManager::getColorFromCards(), MailEditWindow::getInventory(), Item::increaseQuantity(), INVENTORY_OFFSET, NotifyTypes::MAIL_ATTACH_ITEM_FATAL_ERROR, NotifyTypes::MAIL_ATTACH_ITEM_NO_SPACE, NotifyTypes::MAIL_ATTACH_ITEM_NOT_TRADEABLE, NotifyTypes::MAIL_ATTACH_ITEM_UNKNOWN_ERROR, NotifyTypes::MAIL_ATTACH_ITEM_WEIGHT_ERROR, mailEditWindow, maxCards, Actions::msg(), NotifyManager::notify(), reportAlways, Inventory::setCards(), Inventory::setOptions(), Inventory::setTag(), UNIMPLEMENTEDPACKETFIELD, and MailEditWindow::updateItems().
void EAthena::Mail2Recv::processCheckNameResult | ( | Net::MessageIn & | msg | ) |
Definition at line 241 of file mail2recv.cpp.
References MailQueue::body, MailWindow::createMail(), MailQueueType::EditMail, mail2Handler, NotifyTypes::MAIL_NAME_VALIDATION_ERROR, mailEditWindow, mailWindow, mCheckedName, mMailQueue, MailQueue::money, Actions::msg(), NotifyManager::notify(), reportAlways, MailQueueType::SendMail, Net::Mail2Handler::sendMail(), MailQueue::title, MailQueue::to, MailQueue::type, MailQueueType::Unknown, MailEditWindow::validatedTo(), and MailQueueType::ValidateTo.
void EAthena::Mail2Recv::processMailDelete | ( | Net::MessageIn & | msg | ) |
Definition at line 488 of file mail2recv.cpp.
References mailWindow, Actions::msg(), MailWindow::removeMail(), and reportAlways.
void EAthena::Mail2Recv::processMailIcon | ( | Net::MessageIn & | msg | ) |
void EAthena::Mail2Recv::processMailListPage | ( | Net::MessageIn & | msg | ) |
Definition at line 329 of file mail2recv.cpp.
References MailWindow::addMail(), CAST_S32, cur_time, MailMessage::expired, MailMessage::expireTime, fromInt, MailMessage::id, mailWindow, Actions::msg(), packetVersion, MailMessage::read, reportAlways, MailMessage::sender, MailWindow::setLastPage(), MailWindow::setOpenType(), MailMessage::strTime, MailMessage::time, timeToStr(), MailMessage::title, and MailMessage::type.
void EAthena::Mail2Recv::processOpenNewMailWindow | ( | Net::MessageIn & | msg | ) |
void EAthena::Mail2Recv::processReadMail | ( | Net::MessageIn & | msg | ) |
Definition at line 389 of file mail2recv.cpp.
References ItemOptionsList::add(), Inventory::addItem(), Equipm_false, Equipped_false, Favorite_false, MailWindow::findMail(), fromBool, ItemColorManager::getColorFromCards(), MailViewWindow::getInventory(), MailWindow::getOpenType(), mailViewWindow, mailWindow, maxCards, MailMessage::money, Actions::msg(), reportAlways, Inventory::setCards(), Inventory::setOptions(), MailWindow::showMessage(), MailMessage::text, and MailViewWindow::updateItems().
void EAthena::Mail2Recv::processRemoveItemResult | ( | Net::MessageIn & | msg | ) |
Definition at line 181 of file mail2recv.cpp.
References _, Inventory::findIndexByTag(), PlayerInfo::getInventory(), MailEditWindow::getInventory(), Inventory::getItem(), Item::getName(), Item::increaseQuantity(), INVENTORY_OFFSET, NotifyTypes::MAIL_REMOVE_ITEM_ERROR, mailEditWindow, Actions::msg(), NotifyManager::notify(), reportAlways, and MailEditWindow::updateItems().
void EAthena::Mail2Recv::processRequestItems | ( | Net::MessageIn & | msg | ) |
Definition at line 529 of file mail2recv.cpp.
References NotifyTypes::MAIL_GET_ATTACH_ERROR, NotifyTypes::MAIL_GET_ATTACH_FULL_ERROR, NotifyTypes::MAIL_GET_ATTACH_OK, mailViewWindow, Actions::msg(), NotifyManager::notify(), MailViewWindow::removeItems(), and UNIMPLEMENTEDPACKETFIELD.
void EAthena::Mail2Recv::processRequestMoney | ( | Net::MessageIn & | msg | ) |
Definition at line 500 of file mail2recv.cpp.
References NotifyTypes::MAIL_GET_MONEY_ERROR, NotifyTypes::MAIL_GET_MONEY_LIMIT_ERROR, NotifyTypes::MAIL_GET_MONEY_OK, mailViewWindow, Actions::msg(), NotifyManager::notify(), MailViewWindow::removeMoney(), and UNIMPLEMENTEDPACKETFIELD.
void EAthena::Mail2Recv::processSendResult | ( | Net::MessageIn & | msg | ) |
Definition at line 301 of file mail2recv.cpp.
References MailEditWindow::close(), NotifyTypes::MAIL_SEND_COUNT_ERROR, NotifyTypes::MAIL_SEND_ERROR, NotifyTypes::MAIL_SEND_FATAL_ERROR, NotifyTypes::MAIL_SEND_ITEM_ERROR, NotifyTypes::MAIL_SEND_OK, NotifyTypes::MAIL_SEND_RECEIVER_ERROR, mailEditWindow, Actions::msg(), and NotifyManager::notify().
std::string EAthena::Mail2Recv::mCheckedName |
Definition at line 64 of file mail2recv.cpp.
Referenced by EAthena::Mail2Handler::getCheckedName(), processCheckNameResult(), EAthena::Mail2Handler::sendMail(), and EAthena::Mail2Handler::~Mail2Handler().
std::queue< MailQueue * > EAthena::Mail2Recv::mMailQueue |
Definition at line 63 of file mail2recv.cpp.
Referenced by processCheckNameResult(), EAthena::Mail2Handler::queueCheckName(), and EAthena::Mail2Handler::~Mail2Handler().