gloox  1.0.22
privacylisthandler.h
1 /*
2  Copyright (c) 2005-2017 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 
30  {
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::ResultRequestNamesSuccess
@ ResultRequestNamesSuccess
Definition: privacylisthandler.h:35
gloox::PrivacyListHandler::~PrivacyListHandler
virtual ~PrivacyListHandler()
Definition: privacylisthandler.h:62
gloox::ResultItemNotFound
@ ResultItemNotFound
Definition: privacylisthandler.h:39
gloox::ResultRequestListSuccess
@ ResultRequestListSuccess
Definition: privacylisthandler.h:36
gloox::PrivacyListHandler::handlePrivacyList
virtual void handlePrivacyList(const std::string &name, const PrivacyList &items)=0
gloox::PrivacyListHandler::handlePrivacyListResult
virtual void handlePrivacyListResult(const std::string &id, PrivacyListResult plResult)=0
gloox::ResultConflict
@ ResultConflict
Definition: privacylisthandler.h:37
gloox::ResultUnknownError
@ ResultUnknownError
Definition: privacylisthandler.h:41
gloox::PrivacyListResult
PrivacyListResult
Definition: privacylisthandler.h:30
gloox::StringList
std::list< std::string > StringList
Definition: gloox.h:1251
gloox::ResultActivateSuccess
@ ResultActivateSuccess
Definition: privacylisthandler.h:32
gloox::ResultRemoveSuccess
@ ResultRemoveSuccess
Definition: privacylisthandler.h:34
gloox::ResultDefaultSuccess
@ ResultDefaultSuccess
Definition: privacylisthandler.h:33
gloox::PrivacyListHandler::handlePrivacyListNames
virtual void handlePrivacyListNames(const std::string &active, const std::string &def, const StringList &lists)=0
gloox::PrivacyListHandler::PrivacyList
std::list< PrivacyItem > PrivacyList
Definition: privacylisthandler.h:57
gloox
The namespace for the gloox library.
Definition: adhoc.cpp:28
gloox::ResultBadRequest
@ ResultBadRequest
Definition: privacylisthandler.h:40
gloox::PrivacyListHandler::handlePrivacyListChanged
virtual void handlePrivacyListChanged(const std::string &name)=0
gloox::PrivacyListHandler
A virtual interface that allows to retrieve Privacy Lists.
Definition: privacylisthandler.h:51
gloox::ResultStoreSuccess
@ ResultStoreSuccess
Definition: privacylisthandler.h:31