! * \~chinese * \param plugin: 此指针必须是相应的 CPlugin 派生类的实例指针 * \note 如果需要插件的全局参数(CParameterPlugin) * 请在其派生类的构造函数(或者 Initial() )中实例化参数, * 并在 Initial() 调用 COperateDesktop::SetParameter 设置参数指针。 * 如果参数不需要 CParameterClient , * 那请在其派生类重载 COperate::SetPluginParameters 并忽略它。 * * \~english * \param plugin: The plugin pointer must be spe
| 93 | * CParameterOperate CParameterClient |
| 94 | */ |
| 95 | explicit COperateDesktop(CPlugin *plugin); |
| 96 | virtual ~COperateDesktop(); |
| 97 | |
| 98 | /*! |
| 99 | * \brief Get parameter |
| 100 | */ |
| 101 | [[nodiscard]] virtual CParameterBase* GetParameter() const; |
| 102 | /*! |
| 103 | * \~chinese 设置参数指针 |
| 104 | * \note 先建立参数,然后构造函数或 Initial() 中调用此函数设置参数指针 |
| 105 | * \~english Set parameter pointer |
| 106 | * \note establishes the parameter first, and then calls this function |
| 107 | * in the constructor or Initial() to set the parameter pointer |
| 108 | */ |
| 109 | virtual int SetParameter(CParameterBase* p); |
| 110 | |
| 111 | [[nodiscard]] virtual const QString Id() override; |
| 112 | [[nodiscard]] virtual const QString Name() override; |
| 113 | [[nodiscard]] virtual const QString Description() override; |
| 114 | [[nodiscard]] virtual const qint16 Version() const override; |
| 115 | [[nodiscard]] virtual QWidget *GetViewer() override; |
| 116 | |
| 117 | public Q_SLOTS: |
| 118 | virtual int Start() override; |
| 119 | virtual int Stop() override; |
| 120 | virtual void slotScreenShot(); |
| 121 | |
| 122 | protected: |
| 123 | /*! |
| 124 | * \~chinese |
| 125 | * 新建后端实例。它的所有者是调用者, |
| 126 | * 如果调用者不再使用它,调用者必须负责释放它。 |
| 127 | * |
| 128 | * \~english New CBackend. the ownership is caller. |
| 129 | * if don't use, the caller must delete it. |
| 130 | * \~see CBackendThread |
| 131 | */ |
| 132 | Q_INVOKABLE virtual CBackend* InstanceBackend() = 0; |
| 133 | /*! |
| 134 | * \brief Set Global Parameters |
| 135 | * \param pPara |
no outgoing calls
no test coverage detected