QtCanpool 3.3.0
载入中...
搜索中...
未找到
qxplugin.cpp
浏览该文件的文档.
1
5#include "qxplugin.h"
6
8
9QxPlugin::QxPlugin(QObject *parent)
10 : QObject(parent)
11 , m_context(Q_NULLPTR)
12{
13}
14
18
22
24{
25}
26
28{
29 return 1;
30}
31
33{
34 return m_context;
35}
36
The thin surface a plugin programs against.
Base class of every QtCanpool plugin.
Definition qxplugin.h:56
~QxPlugin() override
Definition qxplugin.cpp:15
QxPluginContext * context() const
The host context handed to initialize(); null before that call.
Definition qxplugin.cpp:32
virtual void shutdown()
Called in reverse initialization order on shutdown.
Definition qxplugin.cpp:23
virtual int interfaceVersion() const
The plugin interface version this build targets.
Definition qxplugin.cpp:27
virtual void extensionsInitialized()
Called once every plugin is initialized: the place to finish setup that had to wait for the whole set...
Definition qxplugin.cpp:19
#define Q_NULLPTR
Copyleft (C) 2025 maminjie canpool@163.com SPDX-License-Identifier: MulanPSL-2.0
#define QX_PLUGIN_BEGIN_NAMESPACE
#define QX_PLUGIN_END_NAMESPACE