1e1c44949Sopenharmony_ci/*
2e1c44949Sopenharmony_ci * Copyright (C) 2024 Huawei Device Co., Ltd.
3e1c44949Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
4e1c44949Sopenharmony_ci * you may not use this file except in compliance with the License.
5e1c44949Sopenharmony_ci * You may obtain a copy of the License at
6e1c44949Sopenharmony_ci *
7e1c44949Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
8e1c44949Sopenharmony_ci *
9e1c44949Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
10e1c44949Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
11e1c44949Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12e1c44949Sopenharmony_ci * See the License for the specific language governing permissions and
13e1c44949Sopenharmony_ci * limitations under the License.
14e1c44949Sopenharmony_ci */
15e1c44949Sopenharmony_ci
16e1c44949Sopenharmony_ci#ifndef SETTINGS_DATASHARE_HELPER_H
17e1c44949Sopenharmony_ci#define SETTINGS_DATASHARE_HELPER_H
18e1c44949Sopenharmony_ci
19e1c44949Sopenharmony_ci#include "datashare_helper.h"
20e1c44949Sopenharmony_ci#include "datashare_predicates.h"
21e1c44949Sopenharmony_ci#include "system_ability_definition.h"
22e1c44949Sopenharmony_ci#include "singleton.h"
23e1c44949Sopenharmony_ci#include "uri.h"
24e1c44949Sopenharmony_ci
25e1c44949Sopenharmony_cinamespace OHOS {
26e1c44949Sopenharmony_cinamespace Telephony {
27e1c44949Sopenharmony_ciclass SettingsDataShareHelper : public DelayedSingleton<SettingsDataShareHelper> {
28e1c44949Sopenharmony_ci    DECLARE_DELAYED_SINGLETON(SettingsDataShareHelper);
29e1c44949Sopenharmony_ci
30e1c44949Sopenharmony_cipublic:
31e1c44949Sopenharmony_ci    static const std::string QUERY_SATELLITE_MODE_KEY;
32e1c44949Sopenharmony_ci    static const std::string QUERY_SATELLITE_CONNECTED_KEY;
33e1c44949Sopenharmony_ci    static const std::string SETTINGS_DATASHARE_URI;
34e1c44949Sopenharmony_ci    ErrCode Query(Uri& uri, const std::string& key, std::string& values);
35e1c44949Sopenharmony_ciprivate:
36e1c44949Sopenharmony_ci    std::shared_ptr<DataShare::DataShareHelper> CreateDataShareHelper(int systemAbilityId);
37e1c44949Sopenharmony_ci};
38e1c44949Sopenharmony_ci} // namespace Telephony
39e1c44949Sopenharmony_ci} // namespace OHOS
40e1c44949Sopenharmony_ci#endif //SETTINGS_DATASHARE_HELPER_H