• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifndef TAG_SESSION_STUB_H
16 #define TAG_SESSION_STUB_H
17 
18 #include "iremote_stub.h"
19 #include "itag_session.h"
20 #include "message_parcel.h"
21 
22 namespace OHOS {
23 namespace NFC {
24 namespace TAG {
25 class TagSessionStub : public OHOS::IRemoteStub<OHOS::NFC::TAG::ITagSession> {
26 public:
27     int OnRemoteRequest(uint32_t code,                         /* [in] */
28                         OHOS::MessageParcel& data,             /* [in] */
29                         OHOS::MessageParcel& reply,            /* [out] */
30                         OHOS::MessageOption& option) override; /* [in] */
TagSessionStub()31     TagSessionStub() {}
~TagSessionStub()32     virtual ~TagSessionStub() {}
33 
34 private:
35     int HandleConnect(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
36     int HandleReconnect(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
37     int HandleDisconnect(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
38     int HandleSetTimeout(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
39     int HandleGetTimeout(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
40     int HandleGetTechList(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
41     int HandleIsTagFieldOn(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
42     int HandleIsNdef(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
43     int HandleSendRawFrame(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
44     int HandleNdefRead(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
45     int HandleNdefWrite(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
46     int HandleNdefMakeReadOnly(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
47     int HandleFormatNdef(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
48     int HandleCanMakeReadOnly(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
49     int HandleGetMaxTransceiveLength(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
50     int HandleIsSupportedApdusExtended(OHOS::MessageParcel& data, OHOS::MessageParcel& reply);
51 
52 private:
53 };
54 }  // namespace TAG
55 }  // namespace NFC
56 }  // namespace OHOS
57 #endif  // TAG_SESSION_STUB_H
58