gloox  0.9.9.12
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 
29  {
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__