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 OHOS_VOICE_MAIL_CONSTANTS_H
17 #define OHOS_VOICE_MAIL_CONSTANTS_H
18 #include <iostream>
19 #include <stdint.h>
20 
21 namespace OHOS {
22 namespace Telephony {
23 class VoiceMailConstants {
24 public:
25     VoiceMailConstants(int32_t slotId);
26     ~VoiceMailConstants();
27     std::string GetVoiceMailNumber(std::string carrier);
28     std::string GetVoiceMailTag(std::string carrier);
29     bool GetVoiceMailFixed(std::string carrier);
30     bool ContainsCarrier(std::string carrier);
31     void ResetVoiceMailLoadedFlag();
32 private:
33     int32_t slotId_;
34     bool isVoiceMailFixed_ = true;
35     std::string GetStringValueFromCust(int32_t slotId, std::string key);
36     std::string LoadVoiceMailConfigFromCard(std::string configName, std::string carrier);
37 };
38 
39 } // namespace Telephony
40 } // namespace OHOS
41 
42 #endif // OHOS_VOICE_MAIL_CONSTANTS_H
43