TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
MembershipRequest Struct Reference

Holds all required informations about a membership request. More...

#include <GuildFinderMgr.h>

Public Member Functions

 MembershipRequest (MembershipRequest const &settings)
 
 MembershipRequest (ObjectGuid const &playerGUID, ObjectGuid const &guildId, uint32 availability, uint32 classRoles, uint32 interests, std::string &comment, time_t submitTime)
 
 MembershipRequest ()
 
ObjectGuid constGetGuildGuid () const
 
ObjectGuid constGetPlayerGUID () const
 
uint8 GetAvailability () const
 
uint8 GetClassRoles () const
 
uint8 GetInterests () const
 
time_t GetSubmitTime () const
 
time_t GetExpiryTime () const
 
std::string constGetComment () const
 

Private Attributes

std::string _comment
 
ObjectGuid _guildId
 
ObjectGuid _playerGUID
 
uint8 _availability
 
uint8 _classRoles
 
uint8 _interests
 
time_t _time
 

Detailed Description

Holds all required informations about a membership request.

Constructor & Destructor Documentation

MembershipRequest::MembershipRequest ( MembershipRequest const settings)
inline
61  : _comment(settings.GetComment())
62  {
63  _availability = settings.GetAvailability();
64  _classRoles = settings.GetClassRoles();
65  _interests = settings.GetInterests();
66  _guildId = settings.GetGuildGuid();
67  _playerGUID = settings.GetPlayerGUID();
68  _time = settings.GetSubmitTime();
69  }
uint8 _availability
Definition: GuildFinderMgr.h:93
time_t _time
Definition: GuildFinderMgr.h:97
uint8 _interests
Definition: GuildFinderMgr.h:95
ObjectGuid _playerGUID
Definition: GuildFinderMgr.h:91
std::string _comment
Definition: GuildFinderMgr.h:88
uint8 _classRoles
Definition: GuildFinderMgr.h:94
ObjectGuid _guildId
Definition: GuildFinderMgr.h:90

+ Here is the call graph for this function:

MembershipRequest::MembershipRequest ( ObjectGuid const playerGUID,
ObjectGuid const guildId,
uint32  availability,
uint32  classRoles,
uint32  interests,
std::string &  comment,
time_t  submitTime 
)
inline
71  :
72  _comment(comment), _guildId(guildId), _playerGUID(playerGUID), _availability(availability),
73  _classRoles(classRoles), _interests(interests), _time(submitTime) {}
uint8 _availability
Definition: GuildFinderMgr.h:93
time_t _time
Definition: GuildFinderMgr.h:97
uint8 _interests
Definition: GuildFinderMgr.h:95
ObjectGuid _playerGUID
Definition: GuildFinderMgr.h:91
std::string _comment
Definition: GuildFinderMgr.h:88
uint8 _classRoles
Definition: GuildFinderMgr.h:94
ObjectGuid _guildId
Definition: GuildFinderMgr.h:90
MembershipRequest::MembershipRequest ( )
inline
75  : _availability(0), _classRoles(0),
76  _interests(0), _time(time(NULL)) {}
uint8 _availability
Definition: GuildFinderMgr.h:93
time_t _time
Definition: GuildFinderMgr.h:97
arena_t NULL
Definition: jemalloc_internal.h:624
uint8 _interests
Definition: GuildFinderMgr.h:95
uint8 _classRoles
Definition: GuildFinderMgr.h:94

Member Function Documentation

uint8 MembershipRequest::GetAvailability ( ) const
inline
80 { return _availability; }
uint8 _availability
Definition: GuildFinderMgr.h:93

+ Here is the caller graph for this function:

uint8 MembershipRequest::GetClassRoles ( ) const
inline
81 { return _classRoles; }
uint8 _classRoles
Definition: GuildFinderMgr.h:94

+ Here is the caller graph for this function:

std::string const& MembershipRequest::GetComment ( ) const
inline
85 { return _comment; }
std::string _comment
Definition: GuildFinderMgr.h:88

+ Here is the caller graph for this function:

time_t MembershipRequest::GetExpiryTime ( ) const
inline
84 { return time_t(_time + 30 * 24 * 3600); } // Adding 30 days
time_t _time
Definition: GuildFinderMgr.h:97

+ Here is the caller graph for this function:

ObjectGuid const& MembershipRequest::GetGuildGuid ( ) const
inline
78 { return _guildId; }
ObjectGuid _guildId
Definition: GuildFinderMgr.h:90

+ Here is the caller graph for this function:

uint8 MembershipRequest::GetInterests ( ) const
inline
82 { return _interests; }
uint8 _interests
Definition: GuildFinderMgr.h:95

+ Here is the caller graph for this function:

ObjectGuid const& MembershipRequest::GetPlayerGUID ( ) const
inline
79 { return _playerGUID; }
ObjectGuid _playerGUID
Definition: GuildFinderMgr.h:91

+ Here is the caller graph for this function:

time_t MembershipRequest::GetSubmitTime ( ) const
inline
83 { return _time; }
time_t _time
Definition: GuildFinderMgr.h:97

+ Here is the caller graph for this function:

Member Data Documentation

uint8 MembershipRequest::_availability
private
uint8 MembershipRequest::_classRoles
private
std::string MembershipRequest::_comment
private
ObjectGuid MembershipRequest::_guildId
private
uint8 MembershipRequest::_interests
private
ObjectGuid MembershipRequest::_playerGUID
private
time_t MembershipRequest::_time
private

The documentation for this struct was generated from the following file: