Anope IRC Services  Version 2.0
Public Member Functions | Private Attributes
MyNewsService Class Reference
Inheritance diagram for MyNewsService:
Inheritance graph
[legend]
Collaboration diagram for MyNewsService:
Collaboration graph
[legend]

Public Member Functions

 MyNewsService (Module *m)
 
 ~MyNewsService ()
 
NewsItemCreateNewsItem () anope_override
 
void AddNewsItem (NewsItem *n)
 
void DelNewsItem (NewsItem *n)
 
std::vector< NewsItem * > & GetNewsList (NewsType t)
 
- Public Member Functions inherited from NewsService
 NewsService (Module *m)
 
- Public Member Functions inherited from Service
 Service (Module *o, const Anope::string &t, const Anope::string &n)
 
virtual ~Service ()
 
void Register ()
 
void Unregister ()
 
- Public Member Functions inherited from Base
 Base ()
 
virtual ~Base ()
 
void AddReference (ReferenceBase *r)
 
void DelReference (ReferenceBase *r)
 

Private Attributes

std::vector< NewsItem * > newsItems [3]
 

Additional Inherited Members

- Static Public Member Functions inherited from Service
static ServiceFindService (const Anope::string &t, const Anope::string &n)
 
static std::vector< Anope::stringGetServiceKeys (const Anope::string &t)
 
static void AddAlias (const Anope::string &t, const Anope::string &n, const Anope::string &v)
 
static void DelAlias (const Anope::string &t, const Anope::string &n)
 
- Data Fields inherited from Service
Moduleowner
 
Anope::string type
 
Anope::string name
 

Detailed Description

Definition at line 96 of file os_news.cpp.

Constructor & Destructor Documentation

◆ MyNewsService()

MyNewsService::MyNewsService ( Module m)
inline

Definition at line 100 of file os_news.cpp.

◆ ~MyNewsService()

MyNewsService::~MyNewsService ( )
inline

Definition at line 102 of file os_news.cpp.

Member Function Documentation

◆ AddNewsItem()

void MyNewsService::AddNewsItem ( NewsItem n)
inlinevirtual

Implements NewsService.

Definition at line 114 of file os_news.cpp.

References NewsItem::type.

◆ CreateNewsItem()

NewsItem* MyNewsService::CreateNewsItem ( )
inlinevirtual

Implements NewsService.

Definition at line 109 of file os_news.cpp.

◆ DelNewsItem()

void MyNewsService::DelNewsItem ( NewsItem n)
inlinevirtual

Implements NewsService.

Definition at line 119 of file os_news.cpp.

References NewsItem::type.

◆ GetNewsList()

std::vector<NewsItem *>& MyNewsService::GetNewsList ( NewsType  t)
inlinevirtual

Implements NewsService.

Definition at line 128 of file os_news.cpp.

Referenced by OSNews::DisplayNews().

Field Documentation

◆ newsItems

std::vector<NewsItem *> MyNewsService::newsItems[3]
private

Definition at line 98 of file os_news.cpp.


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