LeechCraft 0.6.70-17609-g3dde4097dd
Modular cross-platform feature rich live environment.
Loading...
Searching...
No Matches
iactionsexporter.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 INTERFACES_IACTIONSEXPORTER_H
10#define INTERFACES_IACTIONSEXPORTER_H
11#include <QList>
12#include <QMap>
13#include <QtPlugin>
14
15class QAction;
16
17namespace LC
18{
65}
66
70class Q_DECL_EXPORT IActionsExporter
71{
72public:
73 virtual ~IActionsExporter () {}
74
85
96 {
97 return {};
98 }
99protected:
110 virtual void gotActions (QList<QAction*> actions, LC::ActionsEmbedPlace area) = 0;
111};
112
113Q_DECLARE_INTERFACE (IActionsExporter, "org.Deviant.LeechCraft.IActionsExporter/1.0")
114
115#endif
Interface for embedding actions and menus into various places.
virtual void gotActions(QList< QAction * > actions, LC::ActionsEmbedPlace area)=0
Notifies about new actions for the given area.
virtual QMap< QString, QList< QAction * > > GetMenuActions() const
Returns the actions to embed into the menu.
virtual QList< QAction * > GetActions(LC::ActionsEmbedPlace area) const =0
Returns the actions to embed.
virtual ~IActionsExporter()
Definition anutil.h:15
Definition constants.h:15
ActionsEmbedPlace
Specifies where the actions should be embedded.
@ TrayMenu
The context menu of the LeechCraft tray icon.
@ CommonContextMenu
The common tabbar context menu.
@ QuickLaunch
The quick launch area.
@ ToolsMenu
The Tools submenu of main LeechCraft menu.