更新时间:2022-03-21 GMT+08:00
分享

IServiceController.h

service虚类定义

#//  
//  Huawei ideaShare Wapper SDK  
//  
//  Copyright (c) 2020 Huawei.io. All rights reserved.  
  
#ifndef IDEA_CONTROLLER_H  
#define IDEA_CONTROLLER_H  
#ifndef IDEA_SHARE_EXPORT  
#define IDEA_SHARE_EXPORT  
#endif  
  
#include "IEventHandler.h"  
#include "IdeaShareDef.h"  
#include <string>  
using namespace std;  
  
class IDEA_SHARE_API IServiceController {  
public:  
     virtual int Create(const AppInfo &appInfo,IEventHandler* eventHandler) = 0;  
     virtual int Destory() = 0;  
     virtual ~IServiceController() {}  
private:  
    //预留接口,适配EMUI  
    virtual std::string GetKitVersion() { return "v1.0.0";}  
    virtual bool HasFeature(std::string feature) { return true; }  
};  
#endif
分享:

    相关文档

    相关产品