LeechCraft  %{LEECHCRAFT_VERSION}
Modular cross-platform feature rich live environment.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
icoreproxy.h
Go to the documentation of this file.
1 /**********************************************************************
2  * LeechCraft - modular cross-platform feature rich internet client.
3  * Copyright (C) 2006-2013 Georg Rudoy
4  *
5  * Boost Software License - Version 1.0 - August 17th, 2003
6  *
7  * Permission is hereby granted, free of charge, to any person or organization
8  * obtaining a copy of the software and accompanying documentation covered by
9  * this license (the "Software") to use, reproduce, display, distribute,
10  * execute, and transmit the Software, and to prepare derivative works of the
11  * Software, and to permit third-parties to whom the Software is furnished to
12  * do so, all subject to the following:
13  *
14  * The copyright notices in the Software and this entire statement, including
15  * the above license grant, this restriction and the following disclaimer,
16  * must be included in all copies of the Software, in whole or in part, and
17  * all derivative works of the Software, unless such copies or derivative
18  * works are solely in the form of machine-executable object code generated by
19  * a source language processor.
20  *
21  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23  * FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
24  * SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
25  * FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
26  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
27  * DEALINGS IN THE SOFTWARE.
28  **********************************************************************/
29 
30 #ifndef INTERFACES_CORE_ICOREPROXY_H
31 #define INTERFACES_CORE_ICOREPROXY_H
32 #include <memory>
33 #include <QtNetwork/QNetworkAccessManager>
34 #include <QTabBar>
35 
36 class IShortcutProxy;
37 class IMWProxy;
38 class ITagsManager;
39 class IPluginsManager;
40 class ICoreTabWidget;
41 class IEntityManager;
42 class QTreeView;
43 class QModelIndex;
44 class QIcon;
45 class QMainWindow;
46 class QAbstractItemModel;
47 class QTabWidget;
48 class IColorThemeManager;
49 
50 namespace LeechCraft
51 {
52  namespace Util
53  {
54  class BaseSettingsManager;
55  }
56 }
57 
59 
65 class Q_DECL_EXPORT ICoreProxy
66 {
67 public:
68  virtual ~ICoreProxy () {}
69 
79  virtual QNetworkAccessManager* GetNetworkAccessManager () const = 0;
80 
86  virtual IShortcutProxy* GetShortcutProxy () const = 0;
87 
91  virtual QModelIndex MapToSource (const QModelIndex&) const = 0;
92 
101  virtual LeechCraft::Util::BaseSettingsManager* GetSettingsManager () const = 0;
102 
113  virtual QIcon GetIcon (const QString& on, const QString& off = QString ()) const = 0;
114 
117  virtual void UpdateIconset (const QList<QAction*>& actions) const = 0;
118 
121  virtual IColorThemeManager* GetColorThemeManager () const = 0;
122 
123  virtual IRootWindowsManager* GetRootWindowsManager () const = 0;
124 
127  virtual ITagsManager* GetTagsManager () const = 0;
128 
132  virtual QStringList GetSearchCategories () const = 0;
133 
144  virtual int GetID () = 0;
145 
155  virtual void FreeID (int id) = 0;
156 
159  virtual IPluginsManager* GetPluginsManager () const = 0;
160 
168  virtual IEntityManager* GetEntityManager () const = 0;
169 
172  virtual QString GetVersion () const = 0;
173 
178  virtual QObject* GetSelf () = 0;
179 
187  virtual void RegisterSkinnable (QAction *action) = 0;
188 
189  virtual bool IsShuttingDown () = 0;
190 };
191 
192 typedef std::shared_ptr<ICoreProxy> ICoreProxy_ptr;
193 
194 Q_DECLARE_INTERFACE (ICoreProxy, "org.Deviant.LeechCraft.ICoreProxy/1.0");
195 
196 #endif
Proxy to core entity manager.
Proxy class for the communication with LeechCraft.
Definition: icoreproxy.h:65
Interface to the core windows manager.
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
Definition: icoreproxy.h:192
virtual ~ICoreProxy()
Definition: icoreproxy.h:68
Tags manager&#39;s interface.
Definition: itagsmanager.h:43
This interface is used for manipulating the main window.
Definition: imwproxy.h:45
Q_DECLARE_INTERFACE(IColorThemeManager,"org.Deviant.LeechCraft.IColorThemeManager/1.0")
This interface is used to represent LeechCraft&#39;s core tab widget.
This interface is used to represent LeechCraft&#39;s global plugin manager.
Proxy for requesting shortcuts from the shortcut manager in the Core.