gloox  1.0.1
bookmarkhandler.h
1 /*
2  Copyright (c) 2005-2012 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 BOOKMARKHANDLER_H__
16 #define BOOKMARKHANDLER_H__
17 
18 #include "macros.h"
19 
20 #include <string>
21 #include <list>
22 
23 namespace gloox
24 {
25 
30  {
31  std::string name;
32  std::string url;
33  };
34 
39  {
40  std::string name;
41  std::string jid;
42  std::string nick;
43  std::string password;
44  bool autojoin;
45  };
46 
50  typedef std::list<BookmarkListItem> BookmarkList;
51 
55  typedef std::list<ConferenceListItem> ConferenceList;
56 
64  class GLOOX_API BookmarkHandler
65  {
66  public:
70  virtual ~BookmarkHandler() {}
71 
77  virtual void handleBookmarks( const BookmarkList &bList, const ConferenceList &cList ) = 0;
78  };
79 
80 }
81 
82 #endif // BOOKMARKHANDLER_H__