|
1 /* |
|
2 * Copyright (c) 2004-2005 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: |
|
15 * State machine for sending a forward request |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MMSFORWARDOPERATION_H |
|
22 #define MMSFORWARDOPERATION_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <badesca.h> |
|
26 #include "mmsbaseoperation.h" |
|
27 |
|
28 // CONSTANTS |
|
29 |
|
30 // MACROS |
|
31 |
|
32 // DATA TYPES |
|
33 |
|
34 // FUNCTION PROTOTYPES |
|
35 |
|
36 // FORWARD DECLARATIONS |
|
37 class CMmsHeaders; |
|
38 class CMmsEncode; |
|
39 class CMmsDecode; |
|
40 //class CLogClient; |
|
41 //class CLogViewEvent; |
|
42 //class CLogEvent; |
|
43 //class CMmsLog; |
|
44 |
|
45 // CLASS DECLARATION |
|
46 |
|
47 /** |
|
48 * State machine for sending forward request |
|
49 */ |
|
50 class CMmsForwardOperation :public CMmsBaseOperation |
|
51 { |
|
52 public: // Constructors and destructor |
|
53 |
|
54 /** |
|
55 * Two-phased constructor. |
|
56 * @param aFs file system session |
|
57 * @param aLogClient log client for writing into log |
|
58 * @param aLogEvent log event for writing entries into log |
|
59 */ |
|
60 static CMmsForwardOperation* NewL( RFs& aFs, CMmsSettings* aMmsSettings ); |
|
61 |
|
62 /** |
|
63 * Destructor. |
|
64 */ |
|
65 virtual ~CMmsForwardOperation(); |
|
66 |
|
67 /** |
|
68 * Failed |
|
69 * @return selection of failed entries |
|
70 */ |
|
71 CMsvEntrySelection& Failed() const; |
|
72 |
|
73 public: // New functions |
|
74 |
|
75 public: // Functions from base classes |
|
76 |
|
77 protected: // New functions |
|
78 |
|
79 protected: // Functions from base classes |
|
80 |
|
81 private: |
|
82 |
|
83 /** |
|
84 * Default constructor |
|
85 */ |
|
86 CMmsForwardOperation( RFs& aFs ); |
|
87 |
|
88 /** |
|
89 * By default Symbian OS constructor is private. |
|
90 */ |
|
91 void ConstructL( CMmsSettings* aMmsSettings ); |
|
92 |
|
93 // We don't need to prohibit copy & assignment constructors here, |
|
94 // as they are in CBase already |
|
95 |
|
96 private: // Methods representing states that are overriden |
|
97 |
|
98 /** |
|
99 * Encode one message |
|
100 */ |
|
101 void EncodePDUL(); |
|
102 |
|
103 /** |
|
104 * Update the trigger entry status. |
|
105 */ |
|
106 void UpdateEntryStatusL(); |
|
107 |
|
108 /** |
|
109 * Move message from Outbox to Sent folder, |
|
110 * or move it to message heaven (delete it completely) |
|
111 * Depends on settings. |
|
112 */ |
|
113 void MoveEntryL(); |
|
114 |
|
115 /** |
|
116 * Adds log entry after sending if necessary (depends on settings). |
|
117 */ |
|
118 void LogL(); |
|
119 |
|
120 public: // Data |
|
121 |
|
122 protected: // Data |
|
123 |
|
124 private: // Data |
|
125 CMmsHeaders* iMmsRequestHeaders; |
|
126 |
|
127 public: // Friend classes |
|
128 protected: // Friend classes |
|
129 private: // Friend classes |
|
130 }; |
|
131 |
|
132 #endif // MMSFORWARDOPERATION_H |
|
133 |
|
134 // End of File |