• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
17 #ifndef SMS_MMS_COMMON_H
18 #define SMS_MMS_COMMON_H
19 
20 #include "singleton.h"
21 namespace OHOS {
22 namespace Telephony {
23 namespace SmsMmsCommonData {
24     static constexpr const char *SMS_MMS_INFO_MSG_STATE_SUCCEED = "0";
25     static constexpr const char *SMS_MMS_INFO_MSG_STATE_FAILED = "2";
26     static constexpr const char *SMS_MMS_INFO_SMS_TYPE = "0";
27     static constexpr const char *SMS_MMS_INFO_MMS_TYPE = "1";
28     static constexpr const char *SMS_MMS_SENT_RESULT_NOTIFY = "SMS_MMS_SENT_RESULT_NOTIFY";
29     static constexpr const char *MESSAGE_STATUS_CHANGE_NOTIFY = "MESSAGE_STATUS_CHANGE_NOTIFY";
30     static constexpr const char *MSG_ID = "msgId";
31     static constexpr const char *MSG_TYPE = "msgType";
32     static constexpr const char *MSG_STATE = "msgState";
33     static constexpr uint16_t SMS_MSM_STATUS_SENDING = 1;
34     static constexpr  uint16_t SMS_MSM_STATUS_FAILED = 2;
35     static constexpr  uint16_t SMS_MSM_STATUS_SUCCEED = 0;
36     constexpr static uint16_t SMS_MSM_TYPE_SMS = 0;
37     constexpr static uint16_t SMS_MSM_TYPE_MMS = 1;
38 } // namespace of SmsMmsCommonData
39 
40 class SmsMmsCommon {
41     DECLARE_DELAYED_SINGLETON(SmsMmsCommon)
42 
43 public:
44     void SendBroadcast(uint16_t id, std::string notify, std::string stauts, std::string type);
45 };
46 } // namespace Telephony
47 } // namespace OHOS
48 #endif // SMS_MMS_COMMON_H