#ifndef IT3256_SERVICE_H #define IT3256_SERVICE_H #include "system_ability.h" #include "it3256_stub.h" #include "it3256_control.h" #include "system_ability_definition.h" namespace OHOS { namespace It3256 { class It3256IOService : public SystemAbility, public It3256IOStub { DECLARE_SYSTEM_ABILITY(It3256IOService); public: DISALLOW_COPY_AND_MOVE(It3256IOService); explicit It3256IOService(int32_t systemAbilityId, bool runOnCreate = true); ~It3256IOService() override; // 从SystemAbility继承 void OnStart() override; void OnStop() override; // 从It3256IOStub继承 bool SetAIRangeCode(unsigned char startch, unsigned char stopch, unsigned char *poutbuf) override; bool GetAIRangeCode(unsigned char startch, unsigned char stopch, unsigned char *poutbuf) override; private: bool Initialize(); std::shared_ptr control_; bool ready_ = false; }; } // namespace It3256 } // namespace OHOS #endif // IT3256_SERVICE_H