|
1 /* |
|
2 * Copyright (c) 2006-2007 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: operation for sending a read report |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef MMSREADREPORT_H |
|
21 #define MMSREADREPORT_H |
|
22 |
|
23 #include "mmsbaseoperation.h" |
|
24 |
|
25 class CMmsHeaders; |
|
26 |
|
27 /** |
|
28 * Operation to send a read report. |
|
29 * |
|
30 * @lib mmssrv.lib |
|
31 * @since v3.1 |
|
32 */ |
|
33 NONSHARABLE_CLASS( CMmsReadReport ): public CMmsBaseOperation |
|
34 { |
|
35 |
|
36 public: |
|
37 |
|
38 static CMmsReadReport* NewL( RFs& aFs, CMmsSettings* aMmsSettings ); |
|
39 |
|
40 virtual ~CMmsReadReport(); |
|
41 |
|
42 /** |
|
43 * Failed |
|
44 * @return selection of failed entries |
|
45 */ |
|
46 CMsvEntrySelection& Failed() const; |
|
47 |
|
48 // from base class CMmsBaseOperation |
|
49 |
|
50 /** |
|
51 * From CMmsBaseOperation |
|
52 * Start the state machine. |
|
53 * |
|
54 * @since v3.1 |
|
55 * @param aSelection list of message entry ids to be handled. |
|
56 * @param aServerEntry CMsvServerEntry pointer from CMmsServer |
|
57 * @param aSettings MMSC settings (entry points) |
|
58 * @param aService current MMS service id |
|
59 * @param aStatus TRequestStatus of the calling active object |
|
60 */ |
|
61 void StartL( |
|
62 CMsvEntrySelection& aSelection, |
|
63 CMsvServerEntry& aServerEntry, |
|
64 TMsvId aService, |
|
65 TRequestStatus& aStatus ); |
|
66 |
|
67 protected: |
|
68 |
|
69 // from base class CMsgActive |
|
70 /** |
|
71 * From CMsgActive |
|
72 * Active object cancellation. |
|
73 * |
|
74 * @since v3.1 |
|
75 */ |
|
76 void DoCancel(); |
|
77 |
|
78 /** |
|
79 * From CMsgActive: Complete current operation. |
|
80 * Do whatever cleanup is possible. (Delete incomplete entry etc.) |
|
81 * @param aError Error code received by RunL |
|
82 */ |
|
83 void DoComplete( TInt& aError ); |
|
84 |
|
85 |
|
86 // from base class CMmsBaseOperation |
|
87 |
|
88 /** |
|
89 * From CMmsBaseOperation |
|
90 * Encode one read report request |
|
91 * |
|
92 * @since v3.1 |
|
93 */ |
|
94 void EncodePDUL(); |
|
95 |
|
96 /** |
|
97 * From CMmsBaseOperation |
|
98 * Delete the handled entry |
|
99 * |
|
100 * @since v3.1 |
|
101 */ |
|
102 void MoveEntryL(); |
|
103 |
|
104 |
|
105 |
|
106 private: |
|
107 |
|
108 CMmsReadReport( RFs& aFs ); |
|
109 |
|
110 void ConstructL( CMmsSettings* aMmsSettings ); |
|
111 |
|
112 private: // data |
|
113 |
|
114 /** |
|
115 * mms headers - contain the read report data to be sent |
|
116 * Own. |
|
117 */ |
|
118 CMmsHeaders* iMmsHeaders; |
|
119 |
|
120 }; |
|
121 |
|
122 |
|
123 #endif // MMSREADREPORT_H |