#pragma once //#if _MSC_VER >=1600 // MSVC2015>1899, msvc_ver=14.0 //#pragma execution_character_set("utf-8") //#endif //#include "qtclasslibrary1_global.h" #include #include #include #include struct SPluginMetaData { QVector qvsReturnFilePaths; QVector qvsSendFilePaths; bool isAdd2Map; }; class SrsMainInterface : public QObject { Q_OBJECT public: virtual ~SrsMainInterface() {} /// /// 返回pannel的名字 /// virtual QString PannelName() = 0; /// /// 返回Category名字 /// /// virtual QString CategoryName() = 0; /// /// 返回插件的英文名字 /// /// virtual QString EnglishName() = 0; /// /// 返回插件的中文名字 /// /// virtual QString ChineseName() = 0; virtual QString Information() = 0; virtual QString IconPath() = 0; virtual QWidget* CenterWidget() = 0; // //public slots: // virtual void test(QWidget* parent) = 0; signals: void AddDataToMap(QStringList string_list); //void addDataToCanvas(QStringList string_list); }; #define MainInterface_iid "com.Srs.MainInterface" Q_DECLARE_INTERFACE(SrsMainInterface, MainInterface_iid)