00001 /* 00002 Copyright (c) 2005-2007 by Jakob Schroeter <js@camaya.net> 00003 This file is part of the gloox library. http://camaya.net/gloox 00004 00005 This software is distributed under a license. The full license 00006 agreement can be found in the file LICENSE in this distribution. 00007 This software may not be copied, modified, sold or distributed 00008 other than expressed in the named license agreement. 00009 00010 This software is distributed without any warranty. 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 00027 struct BookmarkListItem 00028 { 00029 std::string name; 00030 std::string url; 00031 }; 00032 00036 struct ConferenceListItem 00037 { 00038 std::string name; 00039 std::string jid; 00040 std::string nick; 00041 std::string password; 00042 bool autojoin; 00043 }; 00044 00048 typedef std::list<BookmarkListItem> BookmarkList; 00049 00053 typedef std::list<ConferenceListItem> ConferenceList; 00054 00062 class GLOOX_API BookmarkHandler 00063 { 00064 public: 00068 virtual ~BookmarkHandler() {} 00069 00075 virtual void handleBookmarks( const BookmarkList &bList, const ConferenceList &cList ) = 0; 00076 }; 00077 00078 } 00079 00080 #endif // BOOKMARKHANDLER_H__