80
|
1 |
// Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// tmsvsmsentry.h
|
|
15 |
//
|
|
16 |
/**
|
|
17 |
* @file
|
|
18 |
* @publishedPartner
|
|
19 |
* @released
|
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef __TMSVSMSENTRY_H__
|
|
23 |
#define __TMSVSMSENTRY_H__
|
|
24 |
|
|
25 |
#include <gsmuelem.h>
|
|
26 |
#include <smutset.h>
|
|
27 |
|
|
28 |
/**
|
|
29 |
A specialisation of the message server index class for SMS message entries.
|
|
30 |
|
|
31 |
It provides accessers for SMS message specific data, for instance the class type
|
|
32 |
of the SMS message.
|
|
33 |
|
|
34 |
@publishedPartner
|
|
35 |
@released
|
|
36 |
*/
|
|
37 |
class TMsvSmsEntry : public TMsvEntry
|
|
38 |
{
|
|
39 |
public:
|
|
40 |
|
|
41 |
/**
|
|
42 |
Defines a set flags used to access message entry data specific to an SMS message.
|
|
43 |
|
|
44 |
@publishedPartner
|
|
45 |
@released
|
|
46 |
|
|
47 |
*/
|
|
48 |
enum TMsvSmsEntryFlags
|
|
49 |
{
|
|
50 |
/**
|
|
51 |
Clears the entire set of SMS flags.
|
|
52 |
*/
|
|
53 |
EMsvSmsEntryClearFlag = 0x00000000,
|
|
54 |
/**
|
|
55 |
Mask for the protocol identifier data.
|
|
56 |
*/
|
|
57 |
EMsvSmsEntryProtocolIdentifier = 0x000000FF,
|
|
58 |
/**
|
|
59 |
Mask for the User Prompt Indicator flag.
|
|
60 |
*/
|
|
61 |
EMsvSmsEntryUserPromptIndicator = 0x00000100,
|
|
62 |
/**
|
|
63 |
Mask for the SMS class data.
|
|
64 |
*/
|
|
65 |
EMsvSmsEntryClass = 0x00000E00,
|
|
66 |
/**
|
|
67 |
Mask for the flag indicating whether the class data has been defined.
|
|
68 |
*/
|
|
69 |
EMsvSmsEntryClassDefined = 0x00001000,
|
|
70 |
/**
|
|
71 |
Mask for the flag indicating whether the message ID is valid.
|
|
72 |
*/
|
|
73 |
EMsvSmsMessageValid = 0x00002000,
|
|
74 |
/**
|
|
75 |
Mask for the delivery acknowledgement information.
|
|
76 |
*/
|
|
77 |
EMsvSmsEntryDeliveryAckSummary = 0x0001C000,
|
|
78 |
/**
|
|
79 |
Parameter defining the number of bits to be shifted in order for the SMS class
|
|
80 |
data to be at the LSB of the data block.
|
|
81 |
*/
|
|
82 |
EMsvSmsEntryClassShift = 9,
|
|
83 |
/**
|
|
84 |
Parameter defining the number of bits to be shifted in order for the delivery
|
|
85 |
acknowlwdgement information to be at the LSB of the data block.
|
|
86 |
*/
|
|
87 |
EMsvSmsEntryDeliveryAckSummaryShift = 14
|
|
88 |
};
|
|
89 |
|
|
90 |
/**
|
|
91 |
Defines the summary acknowledgement information.
|
|
92 |
|
|
93 |
This information indicates whether the SMS message is not supplying a summary
|
|
94 |
for an acknowledgement, is still expecting acknowledgments or it has received
|
|
95 |
all expected acknowledgements.
|
|
96 |
|
|
97 |
If all acknowledgements have been received the summary indicates whether all
|
|
98 |
the recipients have successfully acknowledged the message, all failed or there
|
|
99 |
was a mixture of successful and failed acknowledgements from the recipients.
|
|
100 |
*/
|
|
101 |
enum TMsvSmsEntryAckSummary
|
|
102 |
{
|
|
103 |
/**
|
|
104 |
No summary information is being formed.
|
|
105 |
*/
|
|
106 |
ENoAckSummary = 0,
|
|
107 |
/**
|
|
108 |
The message is waiting for acknowledgements to be received for all recipients
|
|
109 |
of this message. Some recipients may have received their acknowledgements but
|
|
110 |
there are still some recipients that have not.
|
|
111 |
*/
|
|
112 |
EPendingAcks,
|
|
113 |
/**
|
|
114 |
The summary indicates that the message was successfully acknowledged by all recipients.
|
|
115 |
*/
|
|
116 |
EAllSuccessful,
|
|
117 |
/**
|
|
118 |
The summary indicates that the message failed to be acknowledged by all recipients.
|
|
119 |
*/
|
|
120 |
EAllFailed,
|
|
121 |
/**
|
|
122 |
The summary indicates a mixture of successful and failed acknowledgements from
|
|
123 |
the recipients of the message. All recipients of this message have received
|
|
124 |
their acknowledgements.
|
|
125 |
*/
|
|
126 |
EMixed
|
|
127 |
};
|
|
128 |
|
|
129 |
public:
|
|
130 |
inline TMsvSmsEntry();
|
|
131 |
inline TMsvSmsEntry(const TMsvEntry& aEntry);
|
|
132 |
|
|
133 |
inline void SetUserPromptIndicator(TBool aUPI);
|
|
134 |
inline TBool UserPromptIndicator() const;
|
|
135 |
|
|
136 |
inline TUint8 ProtocolIdentifier() const;
|
|
137 |
inline void SetProtocolIdentifier(TSmsProtocolIdentifier aPID);
|
|
138 |
inline void SetProtocolIdentifier(TUint8 aPID);
|
|
139 |
|
|
140 |
inline TBool Class(TSmsDataCodingScheme::TSmsClass& aClass) const;
|
|
141 |
inline void SetClass(TBool aClassDefined,TSmsDataCodingScheme::TSmsClass aClass = TSmsDataCodingScheme::ESmsClass0);
|
|
142 |
|
|
143 |
IMPORT_C TMsvSmsEntryAckSummary AckSummary(TSmsAckType aAckType) const;
|
|
144 |
IMPORT_C void SetAckSummary(TSmsAckType aAckType, TMsvSmsEntryAckSummary aAckSummary);
|
|
145 |
|
|
146 |
IMPORT_C TBool MessageId(TInt32& aMessageId) const;
|
|
147 |
IMPORT_C void SetMessageId(TInt32 aMessageId, TBool aIsValid);
|
|
148 |
};
|
|
149 |
|
|
150 |
/**
|
|
151 |
The UID that indentifies the SMS message editor application.
|
|
152 |
|
|
153 |
This is the response to the query for the KUidMsvMtmQueryEditorUidValue
|
|
154 |
capability.
|
|
155 |
|
|
156 |
@see CSmsClientMtm::QueryCapability
|
|
157 |
|
|
158 |
@publishedPartner
|
|
159 |
@released
|
|
160 |
*/
|
|
161 |
const TInt KUidMsgSmsEditorAppVal=0x1000163f;
|
|
162 |
|
|
163 |
|
|
164 |
|
|
165 |
#include <tmsvsmsentry.inl>
|
|
166 |
|
|
167 |
#endif //__TMSVSMSENTRY_H__
|