1 /*
2  * Copyright (c) 2022 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 
16 #ifndef USER_AUTH_CALLBACK_STUB_H
17 #define USER_AUTH_CALLBACK_STUB_H
18 
19 #include "iremote_stub.h"
20 #include "message_parcel.h"
21 #include "nocopyable.h"
22 #include "user_auth_callback_interface.h"
23 
24 namespace OHOS {
25 namespace UserIam {
26 namespace UserAuth {
27 class UserAuthCallbackStub : public IRemoteStub<UserAuthCallbackInterface>, public NoCopyable {
28 public:
29     int32_t OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override;
30 
31 private:
32     int32_t OnResultStub(MessageParcel &data, MessageParcel &reply);
33     int32_t OnAcquireInfoStub(MessageParcel &data, MessageParcel &reply);
34 };
35 
36 class GetExecutorPropertyCallbackStub : public IRemoteStub<GetExecutorPropertyCallbackInterface>, public NoCopyable {
37 public:
38     int32_t OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override;
39 
40 private:
41     int32_t OnGetExecutorPropertyResultStub(MessageParcel &data, MessageParcel &reply);
42 };
43 
44 class SetExecutorPropertyCallbackStub : public IRemoteStub<SetExecutorPropertyCallbackInterface>, public NoCopyable {
45 public:
46     int32_t OnRemoteRequest(uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option) override;
47 
48 private:
49     int32_t OnSetExecutorPropertyResultStub(MessageParcel &data, MessageParcel &reply);
50 };
51 } // namespace UserAuth
52 } // namespace UserIam
53 } // namespace OHOS
54 #endif // USER_AUTH_CALLBACK_STUB_H