gloox
0.9.9.12
Main Page
Related Pages
Namespaces
Classes
Files
File List
src
privacylisthandler.h
1
/*
2
Copyright (c) 2005-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
#ifndef PRIVACYLISTHANDLER_H__
15
#define PRIVACYLISTHANDLER_H__
16
17
#include "privacyitem.h"
18
19
#include <string>
20
#include <list>
21
22
namespace
gloox
23
{
24
28
enum
PrivacyListResult
29
{
30
ResultStoreSuccess
,
31
ResultActivateSuccess
,
32
ResultDefaultSuccess
,
33
ResultRemoveSuccess
,
34
ResultRequestNamesSuccess
,
35
ResultRequestListSuccess
,
36
ResultConflict
,
38
ResultItemNotFound
,
39
ResultBadRequest
,
40
ResultUnknownError
41
};
42
49
class
GLOOX_API
PrivacyListHandler
50
{
51
public
:
52
56
typedef
std::list<PrivacyItem>
PrivacyList
;
57
61
virtual
~PrivacyListHandler
() {}
62
70
virtual
void
handlePrivacyListNames(
const
std::string& active,
const
std::string& def,
71
const
StringList
& lists ) = 0;
72
79
virtual
void
handlePrivacyList(
const
std::string& name, PrivacyList& items ) = 0;
80
85
virtual
void
handlePrivacyListChanged(
const
std::string& name ) = 0;
86
92
virtual
void
handlePrivacyListResult(
const
std::string&
id
,
PrivacyListResult
plResult ) = 0;
93
94
};
95
96
}
97
98
#endif // PRIVACYLISTHANDLER_H__
Generated on Thu Jun 27 2013 13:05:48 for gloox by
1.8.1.2