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 OS_ACCOUNT_INTERFACES_INNERKITS_ACCOUNT_IAM_NATIVE_INCLUDE_ACCOUNT_IAM_CALLBACK_H 17 #define OS_ACCOUNT_INTERFACES_INNERKITS_ACCOUNT_IAM_NATIVE_INCLUDE_ACCOUNT_IAM_CALLBACK_H 18 19 #include "account_iam_info.h" 20 #include "iremote_broker.h" 21 #include "iremote_object.h" 22 23 namespace OHOS { 24 namespace AccountSA { 25 class IIDMCallback : public IRemoteBroker { 26 public: 27 DECLARE_INTERFACE_DESCRIPTOR(u"ohos.accountfwk.IIDMCallback"); 28 virtual void OnAcquireInfo(int32_t module, uint32_t acquireInfo, const Attributes &extraInfo) = 0; 29 virtual void OnResult(int32_t result, const Attributes &extraInfo) = 0; 30 31 enum class Message { 32 ON_ACQUIRE_INFO, 33 ON_RESULT 34 }; 35 }; 36 37 class IGetCredInfoCallback : public IRemoteBroker { 38 public: 39 DECLARE_INTERFACE_DESCRIPTOR(u"ohos.accountfwk.IGetCredInfoCallback"); 40 virtual void OnCredentialInfo(const std::vector<CredentialInfo> &infoList) = 0; 41 42 enum class Message { 43 ON_CREDENTIAL_INFO 44 }; 45 }; 46 47 class IGetSetPropCallback : public IRemoteBroker { 48 public: 49 DECLARE_INTERFACE_DESCRIPTOR(u"ohos.accountfwk.IGetSetPropCallback"); 50 virtual void OnResult(int32_t result, const Attributes &extraInfo) = 0; 51 52 enum class Message { 53 ON_RESULT 54 }; 55 }; 56 } // namespace AccountSA 57 } // OHOS 58 #endif // OS_ACCOUNT_INTERFACES_INNERKITS_ACCOUNT_IAM_NATIVE_INCLUDE_ACCOUNT_IAM_CALLBACK_H 59