TrinityCore
Loading...
Searching...
No Matches
Mail.h File Reference
#include "Common.h"
#include "DatabaseEnvFwd.h"
#include "EnumFlag.h"
#include "ObjectGuid.h"
#include <map>
+ Include dependency graph for Mail.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MailSender
 
class  MailReceiver
 
class  MailDraft
 
struct  MailItemInfo
 
struct  Mail
 

Macros

#define MAIL_BODY_ITEM_TEMPLATE   8383
 
#define MAX_CLIENT_MAIL_ITEMS   12
 
#define MAX_MAIL_ITEMS   16
 

Typedefs

typedef std::vector< MailItemInfo > MailItemInfoVec
 

Enumerations

enum  MailMessageType {
  MAIL_NORMAL = 0 , MAIL_AUCTION = 2 , MAIL_CREATURE = 3 , MAIL_GAMEOBJECT = 4 ,
  MAIL_CALENDAR = 5 , MAIL_BLACKMARKET = 6 , MAIL_COMMERCE_AUCTION = 7 , MAIL_AUCTION_2 = 8 ,
  MAIL_ARTISANS_CONSORTIUM = 9
}
 
enum  MailCheckMask : uint32 {
  MAIL_CHECK_MASK_NONE = 0x00000 , MAIL_CHECK_MASK_READ = 0x00001 , MAIL_CHECK_MASK_RETURNED = 0x00002 , MAIL_CHECK_MASK_COPIED = 0x00004 ,
  MAIL_CHECK_MASK_COD_PAYMENT = 0x00008 , MAIL_CHECK_MASK_HAS_BODY = 0x00010 , MAIL_CHECK_MASK_UNK_5 = 0x00020 , MAIL_CHECK_MASK_AUCTION_WON = 0x00040 ,
  MAIL_CHECK_MASK_UNK_7 = 0x00080 , MAIL_CHECK_MASK_CALENDAR_INVITE = 0x00100 , MAIL_CHECK_MASK_NOT_RETURNABLE = 0x00200 , MAIL_CHECK_MASK_AUCTION = 0x00400 ,
  MAIL_CHECK_MASK_NOT_DELETABLE_WITH_ATTACHMENTS = 0x00800 , MAIL_CHECK_MASK_UNK_12 = 0x01000 , MAIL_CHECK_MASK_UNK_13 = 0x02000 , MAIL_CHECK_MASK_RESTORED_ITEM = 0x04000 ,
  MAIL_CHECK_MASK_NOT_COPYABLE = 0x08000 , MAIL_CHECK_MASK_COMMERCE = 0x10000
}
 
enum  MailStationery {
  MAIL_STATIONERY_TEST = 1 , MAIL_STATIONERY_DEFAULT = 41 , MAIL_STATIONERY_GM = 61 , MAIL_STATIONERY_AUCTION = 62 ,
  MAIL_STATIONERY_VAL = 64 , MAIL_STATIONERY_CHR = 65 , MAIL_STATIONERY_ORP = 67
}
 
enum  MailState { MAIL_STATE_UNCHANGED = 1 , MAIL_STATE_CHANGED = 2 , MAIL_STATE_DELETED = 3 }
 

Functions

 DEFINE_ENUM_FLAG (MailCheckMask)
 

Macro Definition Documentation

◆ MAIL_BODY_ITEM_TEMPLATE

#define MAIL_BODY_ITEM_TEMPLATE   8383

Definition at line 34 of file Mail.h.

◆ MAX_CLIENT_MAIL_ITEMS

#define MAX_CLIENT_MAIL_ITEMS   12

Definition at line 35 of file Mail.h.

◆ MAX_MAIL_ITEMS

#define MAX_MAIL_ITEMS   16

Definition at line 36 of file Mail.h.

Typedef Documentation

◆ MailItemInfoVec

typedef std::vector<MailItemInfo> MailItemInfoVec

Definition at line 178 of file Mail.h.

Enumeration Type Documentation

◆ MailCheckMask

Enumerator
MAIL_CHECK_MASK_NONE 
MAIL_CHECK_MASK_READ 

This mail was read.

MAIL_CHECK_MASK_RETURNED 

This mail was returned. Do not allow returning mail back again.

MAIL_CHECK_MASK_COPIED 

This mail was copied. Do not allow making a copy of items in mail.

MAIL_CHECK_MASK_COD_PAYMENT 

This mail is payable on delivery.

MAIL_CHECK_MASK_HAS_BODY 

This mail has body text.

MAIL_CHECK_MASK_UNK_5 
MAIL_CHECK_MASK_AUCTION_WON 

This mail is delivering won auction items.

MAIL_CHECK_MASK_UNK_7 
MAIL_CHECK_MASK_CALENDAR_INVITE 

This mail is related to calendar invite.

MAIL_CHECK_MASK_NOT_RETURNABLE 

This mail cannot be returned even if mail was not returned before.

MAIL_CHECK_MASK_AUCTION 

This mail came from auction house.

MAIL_CHECK_MASK_NOT_DELETABLE_WITH_ATTACHMENTS 

This mail cannot be deleted without taking attachments first.

MAIL_CHECK_MASK_UNK_12 
MAIL_CHECK_MASK_UNK_13 
MAIL_CHECK_MASK_RESTORED_ITEM 

This mail contains recovered items.

MAIL_CHECK_MASK_NOT_COPYABLE 

This mail cannot be copied.

MAIL_CHECK_MASK_COMMERCE 

WoW Token mail.

Definition at line 51 of file Mail.h.

◆ MailMessageType

Enumerator
MAIL_NORMAL 
MAIL_AUCTION 
MAIL_CREATURE 
MAIL_GAMEOBJECT 
MAIL_CALENDAR 
MAIL_BLACKMARKET 
MAIL_COMMERCE_AUCTION 
MAIL_AUCTION_2 
MAIL_ARTISANS_CONSORTIUM 

Definition at line 38 of file Mail.h.

◆ MailState

enum MailState
Enumerator
MAIL_STATE_UNCHANGED 
MAIL_STATE_CHANGED 
MAIL_STATE_DELETED 

Definition at line 87 of file Mail.h.

◆ MailStationery

Enumerator
MAIL_STATIONERY_TEST 
MAIL_STATIONERY_DEFAULT 
MAIL_STATIONERY_GM 
MAIL_STATIONERY_AUCTION 
MAIL_STATIONERY_VAL 
MAIL_STATIONERY_CHR 
MAIL_STATIONERY_ORP 

Definition at line 76 of file Mail.h.

Function Documentation

◆ DEFINE_ENUM_FLAG()

DEFINE_ENUM_FLAG ( MailCheckMask  )