it3256_proxy.h 769 B

123456789101112131415161718192021222324
  1. #ifndef IT3256_PROXY_H
  2. #define IT3256_PROXY_H
  3. #include "iit3256.h"
  4. #include "it3256_inter_face_code.h"
  5. #include "iremote_proxy.h"
  6. namespace OHOS{
  7. namespace It3256 {
  8. class It3256IOProxy : public IRemoteProxy<IIt3256IO> {
  9. public:
  10. explicit It3256IOProxy(const sptr<IRemoteObject> &object);
  11. virtual ~It3256IOProxy();
  12. bool SetAIRangeCode(unsigned char startch, unsigned char stopch, unsigned char *poutbuf) override;
  13. bool GetAIRangeCode(unsigned char startch, unsigned char stopch, unsigned char *poutbuf) override;
  14. private:
  15. bool SendRequest(It3256IOInterfaceCode code, MessageParcel &data, MessageParcel &reply);
  16. static inline BrokerDelegator<It3256IOProxy> delegator_;
  17. };
  18. } // namespace It3256
  19. }
  20. #endif // IT3256_PROXY_H