14 #ifndef COMPONENTBASE_H__
15 #define COMPONENTBASE_H__
17 #include "confighandler.h"
18 #include "configmanager.h"
20 #include "taghandler.h"
23 #include <gloox/jid.h>
24 #include <gloox/tag.h>
55 const gloox::LogSink& _logInstance )
56 : m_name( _name ), m_router( _router ), m_cm( cm ), m_logInstance( _logInstance )
58 m_router.registerDomain(
this, m_name.full(), false );
59 m_cm.registerConfigHandler(
this );
71 const gloox::JID&
name()
const {
return m_name; }
74 virtual void handleIncomingTag( gloox::Tag* tag ) = 0;
77 virtual void handleOutgoingTag( gloox::Tag* tag ) = 0;
96 #endif // COMPONENTBASE_H__