gloox
1.0.1
Main Page
Related Pages
Namespaces
Classes
Files
File List
src
messagefilter.cpp
1
/*
2
Copyright (c) 2005-2012 by Jakob Schroeter <js@camaya.net>
3
This file is part of the gloox library. http://camaya.net/gloox
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
#include "messagefilter.h"
15
16
17
namespace
gloox
18
{
19
20
MessageFilter::MessageFilter
(
MessageSession
* parent )
21
: m_parent( 0 )
22
{
23
if
( parent )
24
attachTo
( parent );
25
}
26
27
MessageFilter::~MessageFilter
()
28
{
29
}
30
31
void
MessageFilter::attachTo
(
MessageSession
* session )
32
{
33
if
( m_parent )
34
m_parent->
removeMessageFilter
(
this
);
35
36
if
( session )
37
session->
registerMessageFilter
(
this
);
38
39
m_parent = session;
40
}
41
42
}
Generated on Sun Jun 30 2013 14:37:36 for gloox by
1.8.1.2