1 /*
2  * Copyright (C) 2023 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 CELLULAR_CALL_RDB_HELPER_H
17 #define CELLULAR_CALL_RDB_HELPER_H
18 
19 #include <memory>
20 #include <singleton.h>
21 #include <utility>
22 
23 #include "datashare_helper.h"
24 #include "datashare_predicates.h"
25 #include "datashare_result_set.h"
26 #include "datashare_values_bucket.h"
27 #include "iservice_registry.h"
28 #include "refbase.h"
29 #include "system_ability_definition.h"
30 #include "uri.h"
31 
32 #include "global_params_data.h"
33 
34 namespace OHOS {
35 namespace Telephony {
36 class CellularCallRdbHelper : public DelayedSingleton<CellularCallRdbHelper> {
37     DECLARE_DELAYED_SINGLETON(CellularCallRdbHelper);
38 
39 public:
40     int32_t QueryEccList(const std::string &numeric, std::vector<EccNum> &eccVec);
41 
42 private:
43     std::shared_ptr<DataShare::DataShareHelper> CreateDataAbilityHelper();
44 
45 private:
46     Uri globalEccUri_;
47 };
48 } // namespace Telephony
49 } // namespace OHOS
50 #endif // CELLULAR_DATA_RDB_HELPER_H
51