glooxd  0.3-svn
Public Member Functions | Protected Attributes | List of all members
ComponentBase Class Reference

#include <componentbase.h>

Inheritance diagram for ComponentBase:
Inheritance graph
[legend]

Public Member Functions

 ComponentBase (Router &_router, ConfigManager &cm, const gloox::JID &_name, const gloox::LogSink &_logInstance)
virtual ~ComponentBase ()
const gloox::JID & name () const
- Public Member Functions inherited from TagHandler
virtual ~TagHandler ()
- Public Member Functions inherited from ConfigHandler
virtual ~ConfigHandler ()
virtual bool handleC2SInterfaceAdded (const std::string &interface, int port)
virtual bool handleC2SInterfaceRemoved (const std::string &interface, int port)
virtual void handleDomainAdded (const std::string &domain)=0
virtual void handleDomainRemoved (const std::string &domain)=0
virtual void handleShutdown ()=0

Protected Attributes

gloox::JID m_name
Routerm_router
ConfigManagerm_cm
const gloox::LogSink & m_logInstance

Detailed Description

An abstract base class for the server's components.

Author
Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
Since
0.2

Definition at line 44 of file componentbase.h.

Constructor & Destructor Documentation

ComponentBase ( Router _router,
ConfigManager cm,
const gloox::JID &  _name,
const gloox::LogSink &  _logInstance 
)
inline

Constructor.

Parameters
_routerThe local Router instance.
cmThe local ConfigManager.
_nameThe component's internal name.
_logInstanceThe LogSink to use.

Definition at line 54 of file componentbase.h.

virtual ~ComponentBase ( )
inlinevirtual

Virtual destructor.

Definition at line 65 of file componentbase.h.

Member Function Documentation

const gloox::JID& name ( ) const
inline

Returns the component's name by which it is addressable.

Returns
The component's name.

Definition at line 71 of file componentbase.h.

Member Data Documentation

ConfigManager& m_cm
protected

Local ConfigManager.

Definition at line 85 of file componentbase.h.

const gloox::LogSink& m_logInstance
protected

Local LogSink.

Definition at line 87 of file componentbase.h.

gloox::JID m_name
protected

Internal name.

Definition at line 81 of file componentbase.h.

Router& m_router
protected

Local router.

Definition at line 83 of file componentbase.h.


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