Anope IRC Services  Version 2.0
Public Member Functions | Static Public Member Functions | Data Fields | Private Member Functions | Private Attributes
XLine Class Reference

#include <xline.h>

Inheritance diagram for XLine:
Inheritance graph
[legend]
Collaboration diagram for XLine:
Collaboration graph
[legend]

Public Member Functions

 XLine (const Anope::string &mask, const Anope::string &reason="", const Anope::string &uid="")
 
 XLine (const Anope::string &mask, const Anope::string &by, const time_t expires, const Anope::string &reason, const Anope::string &uid="")
 
 ~XLine ()
 
const Anope::stringGetNick () const
 
const Anope::stringGetUser () const
 
const Anope::stringGetHost () const
 
const Anope::stringGetReal () const
 
Anope::string GetReason () const
 
bool HasNickOrReal () const
 
bool IsRegex () const
 
void Serialize (Serialize::Data &data) const anope_override
 
- Public Member Functions inherited from Serializable
virtual ~Serializable ()
 
void QueueUpdate ()
 
bool IsCached (Serialize::Data &)
 
void UpdateCache (Serialize::Data &)
 
bool IsTSCached ()
 
void UpdateTS ()
 
Serialize::TypeGetSerializableType () const
 
- Public Member Functions inherited from Base
 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 

Static Public Member Functions

static SerializableUnserialize (Serializable *obj, Serialize::Data &data)
 
- Static Public Member Functions inherited from Serializable
static const std::list
< Serializable * > & 
GetItems ()
 

Data Fields

cidrc
 
Anope::string mask
 
Regexregex
 
Anope::string by
 
time_t created
 
time_t expires
 
Anope::string reason
 
XLineManagermanager
 
Anope::string id
 
- Data Fields inherited from Serializable
uint64_t id
 
unsigned short redis_ignore
 

Private Member Functions

void Init ()
 

Private Attributes

Anope::string nick
 
Anope::string user
 
Anope::string host
 
Anope::string real
 

Additional Inherited Members

- Protected Member Functions inherited from Serializable
 Serializable (const Anope::string &serialize_type)
 
 Serializable (const Serializable &)
 
Serializableoperator= (const Serializable &)
 

Detailed Description

Definition at line 18 of file xline.h.

Constructor & Destructor Documentation

XLine::XLine ( const Anope::string mask,
const Anope::string reason = "",
const Anope::string uid = "" 
)

Definition at line 90 of file xline.cpp.

References c, Init(), manager, and regex.

Referenced by Unserialize().

XLine::XLine ( const Anope::string mask,
const Anope::string by,
const time_t  expires,
const Anope::string reason,
const Anope::string uid = "" 
)

Definition at line 99 of file xline.cpp.

References c, Init(), manager, and regex.

XLine::~XLine ( )

Definition at line 108 of file xline.cpp.

References c, and regex.

Member Function Documentation

const Anope::string & XLine::GetHost ( ) const

Definition at line 124 of file xline.cpp.

References host.

const Anope::string & XLine::GetNick ( ) const

Definition at line 114 of file xline.cpp.

References nick.

Referenced by HasNickOrReal().

const Anope::string & XLine::GetReal ( ) const

Definition at line 129 of file xline.cpp.

References real.

Referenced by HasNickOrReal().

Anope::string XLine::GetReason ( ) const

Definition at line 134 of file xline.cpp.

References reason.

const Anope::string & XLine::GetUser ( ) const

Definition at line 119 of file xline.cpp.

References user.

bool XLine::HasNickOrReal ( ) const

Definition at line 142 of file xline.cpp.

References Anope::string::empty(), GetNick(), and GetReal().

void XLine::Init ( )
private
bool XLine::IsRegex ( ) const

Definition at line 147 of file xline.cpp.

References Anope::string::empty(), Anope::string::length(), and mask.

void XLine::Serialize ( Serialize::Data data) const
virtual

Implements Serializable.

Definition at line 152 of file xline.cpp.

References by, created, expires, id, manager, mask, Service::name, and reason.

Serializable * XLine::Unserialize ( Serializable obj,
Serialize::Data data 
)
static

Field Documentation

Anope::string XLine::by
cidr* XLine::c

Definition at line 23 of file xline.h.

Referenced by Init(), XLine(), and ~XLine().

time_t XLine::created
time_t XLine::expires
Anope::string XLine::host
private

Definition at line 21 of file xline.h.

Referenced by GetHost(), and Init().

Anope::string XLine::id
XLineManager* XLine::manager
Anope::string XLine::mask
Anope::string XLine::nick
private

Definition at line 21 of file xline.h.

Referenced by GetNick(), and Init().

Anope::string XLine::real
private

Definition at line 21 of file xline.h.

Referenced by GetReal(), and Init().

Anope::string XLine::reason
Regex* XLine::regex

Definition at line 25 of file xline.h.

Referenced by SQLineManager::CheckChannel(), Init(), XLine(), and ~XLine().

Anope::string XLine::user
private

Definition at line 21 of file xline.h.

Referenced by GetUser(), and Init().


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