|
1 /* |
|
2 * Copyright (c) 2003 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Structure to hold MMS encapsulation 1.1 version |
|
15 * previoulsy-sent-by and previously-sent-date information |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef MMSMMBOXFLAGS_H |
|
23 #define MMSMMBOXFLAGS_H |
|
24 |
|
25 // INCLUDES |
|
26 #include <e32base.h> |
|
27 |
|
28 // CONSTANTS |
|
29 |
|
30 // MACROS |
|
31 |
|
32 // DATA TYPES |
|
33 |
|
34 // FUNCTION PROTOTYPES |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 class RMsvReadStream; |
|
38 class RMsvWriteStream; |
|
39 |
|
40 // CLASS DECLARATION |
|
41 |
|
42 /** |
|
43 * Object for storing previously-sent-by objects. |
|
44 * |
|
45 * @lib mmsutil.lib |
|
46 * @since 2.6 |
|
47 */ |
|
48 class CMmsMMBoxFlags : public CBase |
|
49 { |
|
50 public: // Constructors and destructor |
|
51 |
|
52 /** |
|
53 * C++ default constructor. |
|
54 */ |
|
55 CMmsMMBoxFlags(); |
|
56 |
|
57 /** |
|
58 * Destructor. |
|
59 */ |
|
60 virtual ~CMmsMMBoxFlags(); |
|
61 |
|
62 public: // New functions |
|
63 |
|
64 /** |
|
65 * Internalize. |
|
66 * @since 2.6 |
|
67 * @param aStream opened read stream |
|
68 */ |
|
69 void InternalizeL( RMsvReadStream& aStream ); |
|
70 |
|
71 /** |
|
72 * Externalize. |
|
73 * @since 2.6 |
|
74 * @param aStream opened write stream |
|
75 */ |
|
76 void ExternalizeL( RMsvWriteStream& aStream ) const; |
|
77 |
|
78 /** |
|
79 * Operation token accessor. |
|
80 * @since 2.6 |
|
81 * @return operation token for this keyword |
|
82 */ |
|
83 inline TInt32 Token() const; |
|
84 |
|
85 /** |
|
86 * Order mutator. |
|
87 * @since 2.6 |
|
88 * @param sets token to be Add/Delete/Filter |
|
89 */ |
|
90 inline void SetToken( TInt32 aToken ); |
|
91 |
|
92 /** |
|
93 * Keyword accessor. |
|
94 * @since 2.6 |
|
95 * @return Keyword. |
|
96 */ |
|
97 inline TPtrC Keyword() const; |
|
98 |
|
99 /** |
|
100 * Keyword mutator. |
|
101 * @since 2.6 |
|
102 * @param aKeyword |
|
103 */ |
|
104 void SetKeywordL( const TDesC& aKeyword ); |
|
105 |
|
106 /* |
|
107 * How much room this needs on disk |
|
108 * @since 2.1 |
|
109 * @return amount of bytes the data in this item needs |
|
110 */ |
|
111 TInt Size() const; |
|
112 |
|
113 public: // Functions from base classes |
|
114 |
|
115 protected: // New functions |
|
116 |
|
117 protected: // Functions from base classes |
|
118 |
|
119 private: |
|
120 |
|
121 public: // Data |
|
122 |
|
123 protected: // Data |
|
124 |
|
125 private: // Data |
|
126 |
|
127 // Operation for the flag |
|
128 TInt32 iOperationToken; // Add/Remove/Filter |
|
129 // the address of the sender |
|
130 HBufC* iKeyword; |
|
131 |
|
132 public: // Friend classes |
|
133 |
|
134 protected: // Friend classes |
|
135 |
|
136 private: // Friend classes |
|
137 |
|
138 }; |
|
139 |
|
140 #include "mmsmmboxflags.inl" |
|
141 |
|
142 #endif // MMSMMBOXFLAGS_H |
|
143 |
|
144 // End of File |