 |
LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
|
Go to the documentation of this file.
13 #include <QStringList>
77 virtual void SecondInit () = 0;
93 virtual QByteArray GetUniqueID ()
const = 0;
107 virtual QString GetName ()
const = 0;
120 virtual QString GetInfo ()
const = 0;
141 return QStringList ();
169 return QStringList ();
194 virtual QStringList
Uses ()
const
196 return QStringList ();
216 const QString& feature)
232 virtual void Release () = 0;
246 virtual QIcon GetIcon ()
const = 0;
261 Q_DECLARE_INTERFACE (
IInfo,
"org.Deviant.LeechCraft.IInfo/1.0")
263 #define CURRENT_API_LEVEL 20
265 #define LC_EXPORT_PLUGIN(file,klass) \
266 ICoreProxy_ptr klass::S_Proxy_; \
267 const ICoreProxy_ptr& GetProxyHolder () { return klass::S_Proxy_; } \
271 Q_DECL_EXPORT quint64 GetAPILevels () { return CURRENT_API_LEVEL; } \
277 #define LC_PUSH_OVERRIDE_WARNING \
278 _Pragma("clang diagnostic push") \
279 _Pragma("clang diagnostic ignored \"-Winconsistent-missing-override\"")
280 #define LC_POP_OVERRIDE_WARNING \
281 _Pragma("clang diagnostic pop")
283 #define LC_PUSH_OVERRIDE_WARNING
284 #define LC_POP_OVERRIDE_WARNING
287 #define DEFINE_PROXY \
288 static ICoreProxy_ptr S_Proxy_; \
289 LC_PUSH_OVERRIDE_WARNING \
290 void SetProxy (ICoreProxy_ptr proxy) { S_Proxy_ = std::move (proxy); } \
291 LC_POP_OVERRIDE_WARNING \
292 friend const ICoreProxy_ptr& ::GetProxyHolder ();
294 #define LC_PLUGIN_METADATA(id) \
295 Q_PLUGIN_METADATA (IID id) \
Required interface for every plugin.
Proxy class for the communication with LeechCraft.
virtual void gotEntity(const LC::Entity &entity)
A message used for inter-plugin communication.
virtual QStringList Provides() const
Returns the list of provided features.
virtual QStringList Needs() const
Returns the list of needed features.
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
virtual ~IInfo()
Virtual destructor.
std::shared_ptr< ICoreProxy > ICoreProxy_ptr
const ICoreProxy_ptr & GetProxyHolder()
virtual void SetProvider(QObject *object, const QString &feature)
Sets the provider plugin for a given feature.
virtual QStringList Uses() const
Returns the list of used features.