bookmarkstorage.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 BOOKMARKSTORAGE_H__
#define BOOKMARKSTORAGE_H__
#include "macros.h"
#include "bookmarkhandler.h"
#include "privatexml.h"
#include "privatexmlhandler.h"
#include <string>
#include <list>
namespace gloox
{
class Tag;
class GLOOX_API BookmarkStorage : public PrivateXML, public PrivateXMLHandler
{
public:
BookmarkStorage( ClientBase* parent );
virtual ~BookmarkStorage();
void storeBookmarks( const BookmarkList& bList, const ConferenceList& cList );
void requestBookmarks();
void registerBookmarkHandler( BookmarkHandler* bmh )
{ m_bookmarkHandler = bmh; }
void removeBookmarkHandler()
{ m_bookmarkHandler = 0; }
// reimplemented from PrivateXMLHandler
virtual void handlePrivateXML( const Tag* xml );
// reimplemented from PrivateXMLHandler
virtual void handlePrivateXMLResult( const std::string& uid, PrivateXMLResult pxResult );
private:
BookmarkHandler* m_bookmarkHandler;
};
}
#endif // BOOKMARKSTORAGE_H__
gloox::BookmarkHandler
A virtual interface which can be reimplemented to receive bookmarks with help of a BookmarkStorage ob...
Definition bookmarkhandler.h:65
gloox::BookmarkStorage::requestBookmarks
void requestBookmarks()
Definition bookmarkstorage.cpp:58
gloox::BookmarkStorage::storeBookmarks
void storeBookmarks(const BookmarkList &bList, const ConferenceList &cList)
Definition bookmarkstorage.cpp:32
gloox::BookmarkStorage::registerBookmarkHandler
void registerBookmarkHandler(BookmarkHandler *bmh)
Definition bookmarkstorage.h:129
gloox::BookmarkStorage::removeBookmarkHandler
void removeBookmarkHandler()
Definition bookmarkstorage.h:135
gloox::BookmarkStorage::BookmarkStorage
BookmarkStorage(ClientBase *parent)
Definition bookmarkstorage.cpp:22
gloox::ClientBase
This is the common base class for a Jabber/XMPP Client and a Jabber Component.
Definition clientbase.h:79
gloox::PrivateXMLHandler
A virtual interface which can be reimplemented to store and receive private XML data.
Definition privatexmlhandler.h:36
gloox::PrivateXML::PrivateXML
PrivateXML(ClientBase *parent)
Definition privatexml.cpp:54
gloox::Tag
This is an abstraction of an XML element.
Definition tag.h:47
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