1885b47fbSopenharmony_ci/*
2885b47fbSopenharmony_ci * Copyright (C) 2022 Huawei Device Co., Ltd.
3885b47fbSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4885b47fbSopenharmony_ci * you may not use this file except in compliance with the License.
5885b47fbSopenharmony_ci * You may obtain a copy of the License at
6885b47fbSopenharmony_ci *
7885b47fbSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8885b47fbSopenharmony_ci *
9885b47fbSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10885b47fbSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11885b47fbSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12885b47fbSopenharmony_ci * See the License for the specific language governing permissions and
13885b47fbSopenharmony_ci * limitations under the License.
14885b47fbSopenharmony_ci */
15885b47fbSopenharmony_ci
16885b47fbSopenharmony_ci#include "accessibility_mt_helper.h"
17885b47fbSopenharmony_ci#include "os_account_manager.h"
18885b47fbSopenharmony_ci#include "ffrt.h"
19885b47fbSopenharmony_ci
20885b47fbSopenharmony_cinamespace OHOS {
21885b47fbSopenharmony_cinamespace AccountSA {
22885b47fbSopenharmony_ciconst int32_t accountId = 100;
23885b47fbSopenharmony_ci
24885b47fbSopenharmony_ciErrCode OsAccountManager::QueryActiveOsAccountIds(std::vector<int32_t>& accountIds)
25885b47fbSopenharmony_ci{
26885b47fbSopenharmony_ci    accountIds.push_back(accountId);
27885b47fbSopenharmony_ci    return ERR_OK;
28885b47fbSopenharmony_ci}
29885b47fbSopenharmony_ci
30885b47fbSopenharmony_ciErrCode OsAccountManager::SubscribeOsAccount(const std::shared_ptr<OsAccountSubscriber>& subscriberAccount)
31885b47fbSopenharmony_ci{
32885b47fbSopenharmony_ci    (void)subscriberAccount;
33885b47fbSopenharmony_ci    return ERR_OK;
34885b47fbSopenharmony_ci}
35885b47fbSopenharmony_ci
36885b47fbSopenharmony_ciOsAccountSubscriber::OsAccountSubscriber()
37885b47fbSopenharmony_ci{
38885b47fbSopenharmony_ci}
39885b47fbSopenharmony_ci
40885b47fbSopenharmony_ciOsAccountSubscriber::OsAccountSubscriber(const OsAccountSubscribeInfo &subscribeInfo) : subscribeInfo_(subscribeInfo)
41885b47fbSopenharmony_ci{
42885b47fbSopenharmony_ci}
43885b47fbSopenharmony_ci
44885b47fbSopenharmony_ciOsAccountSubscriber::~OsAccountSubscriber()
45885b47fbSopenharmony_ci{
46885b47fbSopenharmony_ci}
47885b47fbSopenharmony_ci
48885b47fbSopenharmony_civoid OsAccountSubscriber::GetSubscribeInfo(OsAccountSubscribeInfo &info) const
49885b47fbSopenharmony_ci{
50885b47fbSopenharmony_ci    info = subscribeInfo_;
51885b47fbSopenharmony_ci}
52885b47fbSopenharmony_ci
53885b47fbSopenharmony_ciOsAccountSubscribeInfo::OsAccountSubscribeInfo()
54885b47fbSopenharmony_ci    : osAccountSubscribeType_(ACTIVATING), name_("")
55885b47fbSopenharmony_ci{}
56885b47fbSopenharmony_ci
57885b47fbSopenharmony_ciOsAccountSubscribeInfo::OsAccountSubscribeInfo(const OS_ACCOUNT_SUBSCRIBE_TYPE &osAccountSubscribeType,
58885b47fbSopenharmony_ci    const std::string &name) : osAccountSubscribeType_(osAccountSubscribeType), name_(name)
59885b47fbSopenharmony_ci{
60885b47fbSopenharmony_ci    (void)osAccountSubscribeType;
61885b47fbSopenharmony_ci}
62885b47fbSopenharmony_ci
63885b47fbSopenharmony_ciOsAccountSubscribeInfo::~OsAccountSubscribeInfo()
64885b47fbSopenharmony_ci{}
65885b47fbSopenharmony_ci
66885b47fbSopenharmony_civoid OsAccountSubscribeInfo::GetOsAccountSubscribeType(OS_ACCOUNT_SUBSCRIBE_TYPE &subscribetype) const
67885b47fbSopenharmony_ci{
68885b47fbSopenharmony_ci    subscribetype = osAccountSubscribeType_;
69885b47fbSopenharmony_ci}
70885b47fbSopenharmony_ci
71885b47fbSopenharmony_civoid OsAccountSubscribeInfo::SetOsAccountSubscribeType(const OS_ACCOUNT_SUBSCRIBE_TYPE &subscribetype)
72885b47fbSopenharmony_ci{
73885b47fbSopenharmony_ci    osAccountSubscribeType_ = subscribetype;
74885b47fbSopenharmony_ci}
75885b47fbSopenharmony_ci
76885b47fbSopenharmony_civoid OsAccountSubscribeInfo::GetName(std::string &subscribeName) const
77885b47fbSopenharmony_ci{
78885b47fbSopenharmony_ci    subscribeName = name_;
79885b47fbSopenharmony_ci}
80885b47fbSopenharmony_ci
81885b47fbSopenharmony_civoid OsAccountSubscribeInfo::SetName(const std::string &subscribeName)
82885b47fbSopenharmony_ci{
83885b47fbSopenharmony_ci    name_ = subscribeName;
84885b47fbSopenharmony_ci}
85885b47fbSopenharmony_ci
86885b47fbSopenharmony_cibool OsAccountSubscribeInfo::Marshalling(Parcel &parcel) const
87885b47fbSopenharmony_ci{
88885b47fbSopenharmony_ci    (void)parcel;
89885b47fbSopenharmony_ci    return false;
90885b47fbSopenharmony_ci}
91885b47fbSopenharmony_ci
92885b47fbSopenharmony_ciOsAccountSubscribeInfo *OsAccountSubscribeInfo::Unmarshalling(Parcel &parcel)
93885b47fbSopenharmony_ci{
94885b47fbSopenharmony_ci    (void)parcel;
95885b47fbSopenharmony_ci    return nullptr;
96885b47fbSopenharmony_ci}
97885b47fbSopenharmony_ci
98885b47fbSopenharmony_cibool OsAccountSubscribeInfo::ReadFromParcel(Parcel &parcel)
99885b47fbSopenharmony_ci{
100885b47fbSopenharmony_ci    (void)parcel;
101885b47fbSopenharmony_ci    return false;
102885b47fbSopenharmony_ci}
103885b47fbSopenharmony_ci} // AccountSA
104885b47fbSopenharmony_ci} // OHOS