1 /*
2 * Copyright (c) 2024 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 "rdb_radar_reporter.h"
17 #include "rdb_errno.h"
18
19 namespace OHOS::NativeRdb {
20
21 std::string RdbRadar::hostPkg_{ "" };
22 std::mutex RdbRadar::mutex_;
23
RdbRadar(Scene scene,const char * funcName,std::string bundleName)24 RdbRadar::RdbRadar(Scene scene, const char *funcName, std::string bundleName)
25 : scene_(scene), funcName_(funcName), bundleName_(bundleName)
26 {
27 }
28
~RdbRadar()29 RdbRadar::~RdbRadar()
30 {
31 }
32
operator =(int errCode)33 RdbRadar& RdbRadar::operator=(int errCode)
34 {
35 errCode_ = errCode;
36 return *this;
37 }
38
39 RdbRadar::operator int() const
40 {
41 return errCode_;
42 }
43
LocalReport(int bizSence,const char * funcName,int state,int errCode)44 void RdbRadar::LocalReport(int bizSence, const char* funcName, int state, int errCode)
45 {
46 (void)scene_;
47 (void)funcName_;
48 }
49
GetHostPkgInfo()50 std::string RdbRadar::GetHostPkgInfo()
51 {
52 return "";
53 }
54 }