bookmarkhandler.h
/*
Copyright (c) 2005-2023 by Jakob Schröter <js@camaya.net>
This file is part of the gloox library. http://camaya.net/gloox
This software is distributed under a license. The full license
agreement can be found in the file LICENSE in this distribution.
This software may not be copied, modified, sold or distributed
other than expressed in the named license agreement.
This software is distributed without any warranty.
*/
#ifndef BOOKMARKHANDLER_H__
#define BOOKMARKHANDLER_H__
#include "macros.h"
#include <string>
#include <list>
namespace gloox
{
struct BookmarkListItem
{
std::string name;
std::string url;
};
struct ConferenceListItem
{
std::string name;
std::string jid;
std::string nick;
std::string password;
bool autojoin;
};
typedef std::list<BookmarkListItem> BookmarkList;
typedef std::list<ConferenceListItem> ConferenceList;
class GLOOX_API BookmarkHandler
{
public:
virtual ~BookmarkHandler() {}
virtual void handleBookmarks( const BookmarkList &bList, const ConferenceList &cList ) = 0;
};
}
#endif // BOOKMARKHANDLER_H__
gloox::BookmarkHandler
A virtual interface which can be reimplemented to receive bookmarks with help of a BookmarkStorage ob...
Definition bookmarkhandler.h:65
gloox::BookmarkHandler::~BookmarkHandler
virtual ~BookmarkHandler()
Definition bookmarkhandler.h:70
gloox::BookmarkHandler::handleBookmarks
virtual void handleBookmarks(const BookmarkList &bList, const ConferenceList &cList)=0
gloox
The namespace for the gloox library.
Definition adhoc.cpp:28
gloox::BookmarkList
std::list< BookmarkListItem > BookmarkList
Definition bookmarkhandler.h:50
gloox::ConferenceList
std::list< ConferenceListItem > ConferenceList
Definition bookmarkhandler.h:55
gloox::BookmarkListItem
Definition bookmarkhandler.h:30
gloox::BookmarkListItem::name
std::string name
Definition bookmarkhandler.h:31
gloox::BookmarkListItem::url
std::string url
Definition bookmarkhandler.h:32
gloox::ConferenceListItem
Definition bookmarkhandler.h:39
gloox::ConferenceListItem::autojoin
bool autojoin
Definition bookmarkhandler.h:44
gloox::ConferenceListItem::password
std::string password
Definition bookmarkhandler.h:43
gloox::ConferenceListItem::jid
std::string jid
Definition bookmarkhandler.h:41
gloox::ConferenceListItem::name
std::string name
Definition bookmarkhandler.h:40
gloox::ConferenceListItem::nick
std::string nick
Definition bookmarkhandler.h:42