gloox
0.9.9.12
Main Page
Related Pages
Namespaces
Classes
Files
File List
src
privatexml.h
1
/*
2
Copyright (c) 2004-2008 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
15
#ifndef PRIVATEXML_H__
16
#define PRIVATEXML_H__
17
18
#include "iqhandler.h"
19
#include "privatexmlhandler.h"
20
21
#include <string>
22
#include <list>
23
#include <map>
24
25
namespace
gloox
26
{
27
28
class
ClientBase;
29
class
Tag;
30
class
Stanza;
31
37
class
GLOOX_API
PrivateXML
:
public
IqHandler
38
{
39
public
:
46
PrivateXML
(
ClientBase
*parent );
47
51
virtual
~
PrivateXML
();
52
60
std::string requestXML(
const
std::string& tag,
const
std::string& xmlns,
PrivateXMLHandler
*pxh );
61
69
std::string storeXML(
Tag
*tag,
PrivateXMLHandler
*pxh );
70
71
// reimplemented from IqHandler.
72
virtual
bool
handleIq(
Stanza
*stanza );
73
74
// reimplemented from IqHandler.
75
virtual
bool
handleIqID(
Stanza
*stanza,
int
context );
76
77
protected
:
78
ClientBase
*m_parent;
79
80
private
:
81
enum
IdType
82
{
83
RequestXml,
84
StoreXml
85
};
86
87
typedef
std::map<std::string, PrivateXMLHandler*> TrackMap;
88
89
TrackMap m_track;
90
};
91
92
}
93
94
#endif // PRIVATEXML_H__
Generated on Thu Jun 27 2013 13:05:48 for gloox by
1.8.1.2