LeechCraft Azoth 0.6.70-14794-g33744ae6ce
Modular multiprotocol IM plugin for LeechCraft
Loading...
Searching...
No Matches
isupportbookmarks.h
Go to the documentation of this file.
1/**********************************************************************
2 * LeechCraft - modular cross-platform feature rich internet client.
3 * Copyright (C) 2006-2014 Georg Rudoy
4 *
5 * Distributed under the Boost Software License, Version 1.0.
6 * (See accompanying file LICENSE or copy at https://www.boost.org/LICENSE_1_0.txt)
7 **********************************************************************/
8
9#ifndef PLUGINS_AZOTH_INTERFACES_ISUPPORTBOOKMARKS_H
10#define PLUGINS_AZOTH_INTERFACES_ISUPPORTBOOKMARKS_H
11#include <QtGlobal>
12#include <QVariant>
13
14class QWidget;
15
16namespace LC
17{
18namespace Azoth
19{
31 {
32 public:
33 virtual ~ISupportBookmarks () {}
34
47 virtual QWidget* GetMUCBookmarkEditorWidget () = 0;
48
61 virtual QVariantList GetBookmarkedMUCs () const = 0;
62
76 virtual void SetBookmarkedMUCs (const QVariantList& bookmarks) = 0;
77
88 virtual void bookmarksChanged () = 0;
89 };
90}
91}
92
93Q_DECLARE_INTERFACE (LC::Azoth::ISupportBookmarks,
94 "org.Deviant.LeechCraft.Azoth.ISupportBookmarks/1.0")
95
96#endif
Interface for accounts supporting bookmarks.
virtual QVariantList GetBookmarkedMUCs() const =0
Returns the list of bookmarked MUCs, if any.
virtual QWidget * GetMUCBookmarkEditorWidget()=0
Returns the editor widget for the bookmarks of this protocol.
virtual void bookmarksChanged()=0
Notifies that bookmarks have been changed.
virtual void SetBookmarkedMUCs(const QVariantList &bookmarks)=0
Sets the bookmarked MUCs for the given account.