• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2021 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 SMS_MMS_DATA_H
17 #define SMS_MMS_DATA_H
18 
19 namespace OHOS {
20 namespace Telephony {
21 class SmsMmsData {
22 public:
23     static constexpr const char *ID = "id";
24     static constexpr const char *SLOT_ID = "slot_id";
25     static constexpr const char *SMS_SUBSECTION_ID = "sms_subsection_id";
26     static constexpr const char *RECEIVER_NUMBER = "receiver_number";
27     static constexpr const char *SENDER_NUMBER = "sender_number";
28     static constexpr const char *IS_SENDER = "is_sender";
29     static constexpr const char *START_TIME = "start_time";
30     static constexpr const char *END_TIME = "end_time";
31     static constexpr const char *RAW_PUD = "raw_pdu";
32     static constexpr const char *FORMAT = "format";
33     static constexpr const char *DEST_PORT = "dest_port";
34     static constexpr const char *SUBSECTION_INDEX = "subsection_index";
35     static constexpr const char *SIZE = "size";
36 };
37 
38 class SmsMmsInfo {
39 public:
40     static constexpr const char *MSG_ID = "msg_id";
41     static constexpr const char *SLOT_ID = "slot_id";
42     static constexpr const char *RECEIVER_NUMBER = "receiver_number";
43     static constexpr const char *SENDER_NUMBER = "sender_number";
44     static constexpr const char *IS_SENDER = "is_sender";
45     static constexpr const char *START_TIME = "start_time";
46     static constexpr const char *END_TIME = "end_time";
47     static constexpr const char *MSG_TYPE = "msg_type";
48     static constexpr const char *SMS_TYPE = "sms_type";
49     static constexpr const char *MSG_TITLE = "msg_title";
50     static constexpr const char *MSG_CONTENT = "msg_content";
51     static constexpr const char *MSG_STATE = "msg_state";
52     static constexpr const char *MSG_CODE = "msg_code";
53     static constexpr const char *IS_LOCK = "is_lock";
54     static constexpr const char *IS_READ = "is_read";
55     static constexpr const char *IS_COLLECT = "is_collect";
56     static constexpr const char *SESSION_TYPE = "session_type";
57     static constexpr const char *RETRY_NUMBER = "retry_number";
58     static constexpr const char *OPERATOR_SERVICE_NUMBER = "operator_service_number";
59     static constexpr const char *SESSION_ID = "session_id";
60     static constexpr const char *GROUP_ID = "group_id";
61     static constexpr const char *DEVICE_ID = "device_id";
62     static constexpr const char *IS_SUBSECTION = "is_subsection";
63     static constexpr const char *IS_SEND_REPORT = "is_send_report";
64 };
65 
66 class Session {
67 public:
68     static constexpr const char *ID = "id";
69     static constexpr const char *TIME = "time";
70     static constexpr const char *TELEPHONE = "telephone";
71     static constexpr const char *CONTENT = "content";
72     static constexpr const char *CONTACTS_NUM = "contacts_num";
73     static constexpr const char *SMS_TYPE = "sms_type";
74     static constexpr const char *UNREAD_COUNT = "unread_count";
75     static constexpr const char *SENDING_STATUS = "sending_status";
76     static constexpr const char *HAS_DRAFT = "has_draft";
77     static constexpr const char *HAS_LOCK = "has_lock";
78     static constexpr const char *MESSAGE_COUNT = "message_count";
79     static constexpr const char *HAS_MMS = "has_mms";
80     static constexpr const char *HAS_ATTACHMENT = "has_attachment";
81 };
82 } // namespace Telephony
83 } // namespace OHOS
84 #endif // SMS_MMS_DATA_H
85 
86