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 #include "firmware_database.h"
17 
18 #include "constant.h"
19 
20 namespace OHOS {
21 namespace UpdateEngine {
22 const std::string FIRMWARE_DB_NAME = "/firmware_sqlite.db";
23 constexpr int32_t FIRMWARE_DB_VERSION = 1;
FirmwareDatabase()24 FirmwareDatabase::FirmwareDatabase()
25 {
26     ENGINE_LOGI("FirmwareDatabase Constructor");
27 }
28 
~FirmwareDatabase()29 FirmwareDatabase::~FirmwareDatabase() {}
30 
GetDbName()31 std::string FirmwareDatabase::GetDbName()
32 {
33     return FIRMWARE_DB_NAME;
34 }
35 
GetDbVersion()36 int32_t FirmwareDatabase::GetDbVersion()
37 {
38     return FIRMWARE_DB_VERSION;
39 }
40 
InitDbStoreDir()41 void FirmwareDatabase::InitDbStoreDir()
42 {
43     ENGINE_LOGI("FirmwareDatabase InitDbStoreDir");
44 }
45 
GetDbStoreDir()46 std::string FirmwareDatabase::GetDbStoreDir()
47 {
48     return "";
49 }
50 
DeleteDbStore()51 bool FirmwareDatabase::DeleteDbStore()
52 {
53     return true;
54 }
55 } // namespace UpdateEngine
56 } // namespace OHOS
57