bookmarkhandler.h

00001 /*
00002   Copyright (c) 2005-2006 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 
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__

Generated on Tue May 1 14:20:20 2007 for gloox by  doxygen 1.5.1