gloox
1.0.16
Main Page
Related Pages
Namespaces
Classes
Files
File List
src
privacylisthandler.h
1
/*
2
Copyright (c) 2005-2015 by Jakob Schröter <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
#ifndef PRIVACYLISTHANDLER_H__
15
#define PRIVACYLISTHANDLER_H__
16
17
#include "privacyitem.h"
18
#include "gloox.h"
19
20
#include <string>
21
#include <list>
22
23
namespace
gloox
24
{
25
29
enum
PrivacyListResult
30
{
31
ResultStoreSuccess
,
32
ResultActivateSuccess
,
33
ResultDefaultSuccess
,
34
ResultRemoveSuccess
,
35
ResultRequestNamesSuccess
,
36
ResultRequestListSuccess
,
37
ResultConflict
,
39
ResultItemNotFound
,
40
ResultBadRequest
,
41
ResultUnknownError
42
};
43
50
class
GLOOX_API
PrivacyListHandler
51
{
52
public
:
53
57
typedef
std::list<PrivacyItem>
PrivacyList
;
58
62
virtual
~PrivacyListHandler
() {}
63
71
virtual
void
handlePrivacyListNames(
const
std::string& active,
const
std::string& def,
72
const
StringList
& lists ) = 0;
73
80
virtual
void
handlePrivacyList(
const
std::string& name,
const
PrivacyList& items ) = 0;
81
86
virtual
void
handlePrivacyListChanged(
const
std::string& name ) = 0;
87
93
virtual
void
handlePrivacyListResult(
const
std::string&
id
,
PrivacyListResult
plResult ) = 0;
94
95
};
96
97
}
98
99
#endif // PRIVACYLISTHANDLER_H__
gloox::PrivacyListHandler
A virtual interface that allows to retrieve Privacy Lists.
Definition:
privacylisthandler.h:50
gloox::ResultDefaultSuccess
Definition:
privacylisthandler.h:33
gloox::PrivacyListHandler::~PrivacyListHandler
virtual ~PrivacyListHandler()
Definition:
privacylisthandler.h:62
gloox::ResultBadRequest
Definition:
privacylisthandler.h:40
gloox::StringList
std::list< std::string > StringList
Definition:
gloox.h:1244
gloox::ResultActivateSuccess
Definition:
privacylisthandler.h:32
gloox
The namespace for the gloox library.
Definition:
adhoc.cpp:27
gloox::ResultStoreSuccess
Definition:
privacylisthandler.h:31
gloox::PrivacyListResult
PrivacyListResult
Definition:
privacylisthandler.h:29
gloox::ResultRequestNamesSuccess
Definition:
privacylisthandler.h:35
gloox::ResultUnknownError
Definition:
privacylisthandler.h:41
gloox::ResultRequestListSuccess
Definition:
privacylisthandler.h:36
gloox::ResultConflict
Definition:
privacylisthandler.h:37
gloox::ResultItemNotFound
Definition:
privacylisthandler.h:39
gloox::ResultRemoveSuccess
Definition:
privacylisthandler.h:34
gloox::PrivacyListHandler::PrivacyList
std::list< PrivacyItem > PrivacyList
Definition:
privacylisthandler.h:57
Generated on Sat Jul 16 2016 18:03:28 for gloox by
1.8.8