Horizon Official Technical Documentation
Horizon::Zone::UI::Mail Class Reference

#include <UserInterface.hpp>

Public Member Functions

 Mail (std::shared_ptr< ZoneSession > session)
 Mail. More...
 
 ~Mail ()
 
std::shared_ptr< ZoneSessionget_session ()
 
void check_receiver_name (std::string name)
 
void add_item (int inventory_index, int amount)
 
void delete_ (int mail_id)
 
void retrieve_attachment (int mail_id)
 
void list ()
 
void open (int mail_id)
 
void reset (cz_mail_reset_item_type reset)
 
void send (std::string recipient, std::string title, std::string body)
 
void return_ (int mail_id, std::string receiver_name)
 
bool notify_add_item (int inventory_index, zc_ack_mail_add_item_result_type result)
 
bool notify_delete (int mail_id, zc_ack_mail_delete_result_type result)
 
bool notify_return (int mail_id, zc_ack_mail_return_result_type result)
 

Private Attributes

std::weak_ptr< ZoneSession_session
 

Constructor & Destructor Documentation

◆ Mail()

Horizon::Zone::UI::Mail::Mail ( std::shared_ptr< ZoneSession session)

Mail.

325{
326
327}

◆ ~Mail()

Horizon::Zone::UI::Mail::~Mail ( )
330{
331
332}

Member Function Documentation

◆ add_item()

void Horizon::Zone::UI::Mail::add_item ( int  inventory_index,
int  amount 
)
340{
341
342}

◆ check_receiver_name()

void Horizon::Zone::UI::Mail::check_receiver_name ( std::string  name)
335{
336
337}

◆ delete_()

void Horizon::Zone::UI::Mail::delete_ ( int  mail_id)
345{
346
347}

◆ get_session()

std::shared_ptr< ZoneSession > Horizon::Zone::UI::Mail::get_session ( )
inline
151{ return _session.lock(); }
std::weak_ptr< ZoneSession > _session
Definition: UserInterface.hpp:167

References _session.

◆ list()

void Horizon::Zone::UI::Mail::list ( )
355{
356
357}

◆ notify_add_item()

bool Horizon::Zone::UI::Mail::notify_add_item ( int  inventory_index,
zc_ack_mail_add_item_result_type  result 
)
380{
381 ZC_ACK_MAIL_ADD_ITEM pkt(get_session());
382 pkt.deliver(inventory_index, result);
383 return true;
384}
std::shared_ptr< ZoneSession > get_session()
Definition: UserInterface.hpp:151

References Horizon::Zone::ZC_ACK_MAIL_ADD_ITEM::deliver().

+ Here is the call graph for this function:

◆ notify_delete()

bool Horizon::Zone::UI::Mail::notify_delete ( int  mail_id,
zc_ack_mail_delete_result_type  result 
)
386{
387 ZC_ACK_MAIL_DELETE pkt(get_session());
388 pkt.deliver(mail_id, result);
389 return true;
390}

References Horizon::Zone::ZC_ACK_MAIL_DELETE::deliver().

+ Here is the call graph for this function:

◆ notify_return()

bool Horizon::Zone::UI::Mail::notify_return ( int  mail_id,
zc_ack_mail_return_result_type  result 
)
392{
393 ZC_ACK_MAIL_RETURN pkt(get_session());
394 pkt.deliver(mail_id, result);
395 return true;
396}

References Horizon::Zone::ZC_ACK_MAIL_RETURN::deliver().

+ Here is the call graph for this function:

◆ open()

void Horizon::Zone::UI::Mail::open ( int  mail_id)
360{
361
362}

◆ reset()

void Horizon::Zone::UI::Mail::reset ( cz_mail_reset_item_type  reset)
365{
366
367}

◆ retrieve_attachment()

void Horizon::Zone::UI::Mail::retrieve_attachment ( int  mail_id)
350{
351
352}

◆ return_()

void Horizon::Zone::UI::Mail::return_ ( int  mail_id,
std::string  receiver_name 
)
375{
376
377}

◆ send()

void Horizon::Zone::UI::Mail::send ( std::string  recipient,
std::string  title,
std::string  body 
)
370{
371
372}

Member Data Documentation

◆ _session

std::weak_ptr<ZoneSession> Horizon::Zone::UI::Mail::_session
private

Referenced by get_session().


The documentation for this class was generated from the following files: