glooxd
0.3-svn
Main Page
Namespaces
Classes
Files
File List
src
plugin.h
1
/*
2
Copyright (c) 2009 by Jakob Schroeter <js@camaya.net>
3
This file is part of the glooxd library. http://camaya.net/glooxd
4
5
This software is distributed under a license. The full license
6
agreement can be found in the file LICENSE in this distribution.
7
This software may not be copied, modified, sold or distributed
8
other than expressed in the named license agreement.
9
10
This software is distributed without any warranty.
11
*/
12
13
14
#ifndef PLUGIN_H__
15
#define PLUGIN_H__
16
17
#include "macros.h"
18
19
#include <string>
20
21
namespace
gloox
22
{
23
class
Tag;
24
}
25
26
namespace
glooxd
27
{
28
29
class
SM;
30
class
TagHandler;
31
39
class
GLOOXD_API
Plugin
40
{
41
public
:
47
Plugin
(
SM
& sm,
TagHandler
& router )
48
: m_sm( sm ), m_router( router )
49
{}
50
54
virtual
~Plugin
() {}
55
63
virtual
bool
handleTag(
const
gloox::Tag* tag ) = 0;
64
70
virtual
const
std::string& filterString()
const
= 0;
71
72
protected
:
73
SM
& m_sm;
74
TagHandler
& m_router;
75
76
private
:
77
Plugin
(
const
Plugin
& );
78
79
};
80
81
}
82
83
#endif // PLUGIN_H__
Generated on Wed Aug 28 2013 16:09:27 for glooxd by
1.8.1.2