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 <string>
00019 #include <list>
00020
00021 namespace gloox
00022 {
00023
00031 class GLOOX_API BookmarkHandler
00032 {
00033 public:
00037 struct bookmarkListItem
00038 {
00039 std::string name;
00040 std::string url;
00041 };
00042
00046 struct conferenceListItem
00047 {
00048 std::string name;
00049 std::string jid;
00050 std::string nick;
00051 std::string password;
00052 bool autojoin;
00053 };
00054
00058 typedef std::list<bookmarkListItem> BookmarkList;
00059
00063 typedef std::list<conferenceListItem> ConferenceList;
00064
00068 virtual ~BookmarkHandler() {};
00069
00075 virtual void handleBookmarks( const BookmarkList &bList, const ConferenceList &cList ) = 0;
00076 };
00077
00078 }
00079
00080 #endif // BOOKMARKHANDLER_H__