00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef BOOKMARKHANDLER_H__
00016 #define BOOKMARKHANDLER_H__
00017
00018 #include "macros.h"
00019
00020 #include <string>
00021 #include <list>
00022
00023 namespace gloox
00024 {
00025
00029 struct BookmarkListItem
00030 {
00031 std::string name;
00032 std::string url;
00033 };
00034
00038 struct ConferenceListItem
00039 {
00040 std::string name;
00041 std::string jid;
00042 std::string nick;
00043 std::string password;
00044 bool autojoin;
00045 };
00046
00050 typedef std::list<BookmarkListItem> BookmarkList;
00051
00055 typedef std::list<ConferenceListItem> ConferenceList;
00056
00064 class GLOOX_API BookmarkHandler
00065 {
00066 public:
00070 virtual ~BookmarkHandler() {}
00071
00077 virtual void handleBookmarks( const BookmarkList &bList, const ConferenceList &cList ) = 0;
00078 };
00079
00080 }
00081
00082 #endif // BOOKMARKHANDLER_H__