it3256_stub.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (c) 2021-2023 Huawei Device Co., Ltd.
  3. * Licensed under the Apache License, Version 2.0 (the "License");
  4. * you may not use this file except in compliance with the License.
  5. * You may obtain a copy of the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS,
  11. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. * See the License for the specific language governing permissions and
  13. * limitations under the License.
  14. */
  15. #ifndef It3256_STUB_H
  16. #define It3256_STUB_H
  17. #include "it3256_inter_face_code.h"
  18. #include "iit3256.h"
  19. #include "iremote_stub.h"
  20. #include "nocopyable.h"
  21. #include "message_parcel.h"
  22. #include "message_option.h"
  23. namespace OHOS{
  24. namespace It3256 {
  25. class It3256IOStub : public IRemoteStub<IIt3256IO> {
  26. public:
  27. It3256IOStub();
  28. virtual ~It3256IOStub();
  29. int OnRemoteRequest(uint32_t code,
  30. MessageParcel &data,
  31. MessageParcel &reply,
  32. MessageOption &option) override;
  33. bool SetAIRangeCode(unsigned char startch, unsigned char stopch, unsigned char *poutbuf) override;
  34. bool GetAIRangeCode(unsigned char startch, unsigned char stopch, unsigned char *poutbuf) override;
  35. private:
  36. DISALLOW_COPY_AND_MOVE(It3256IOStub);
  37. };
  38. }
  39. }
  40. #endif // It3256_STUB_H