|
1 /* |
|
2 * Copyright (c) 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: Operation class for SendAs API send support |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef MMSSENDMESSAGEOPERATION_H |
|
22 #define MMSSENDMESSAGEOPERATION_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <msvapi.h> |
|
26 |
|
27 // CONSTANTS |
|
28 |
|
29 // MACROS |
|
30 |
|
31 // DATA TYPES |
|
32 |
|
33 // FUNCTION PROTOTYPES |
|
34 |
|
35 // FORWARD DECLARATIONS |
|
36 |
|
37 // CLASS DECLARATION |
|
38 |
|
39 /** |
|
40 * Class to support SendAs API send operation. |
|
41 * @since 3.0 |
|
42 */ |
|
43 NONSHARABLE_CLASS( CMmsSendMessageOperation ) : public CMsvSendOperation |
|
44 { |
|
45 public: // Constructors and destructor |
|
46 |
|
47 /** |
|
48 * Two-phased constructor. |
|
49 * @param aMsvSession message server session |
|
50 * @param aSelection entries to be sent |
|
51 * @param aParameter send parameters |
|
52 * @ObserverRequestStatus status of calling active object |
|
53 */ |
|
54 static CMmsSendMessageOperation* NewL( CMsvSession& aMsvSession, |
|
55 const CMsvEntrySelection& aSelection, |
|
56 const TDesC8& aParameter, |
|
57 TRequestStatus& aObserverRequestStatus ); |
|
58 |
|
59 /** |
|
60 * Destructor. |
|
61 */ |
|
62 virtual ~CMmsSendMessageOperation(); |
|
63 |
|
64 public: // New functions |
|
65 |
|
66 public: // Functions from base classes |
|
67 |
|
68 protected: // New functions |
|
69 |
|
70 protected: // Functions from base classes |
|
71 |
|
72 private: |
|
73 |
|
74 /** |
|
75 * C++ default constructor. |
|
76 * @param aMsvSession message server session |
|
77 * @param aObserverRequestStatus status of calling active object |
|
78 */ |
|
79 CMmsSendMessageOperation( CMsvSession& aMsvSession, TRequestStatus& aObserverRequestStatus ); |
|
80 |
|
81 /** |
|
82 * By default Symbian 2nd phase constructor is private. |
|
83 * @param aSelection entries to be sent |
|
84 * @param aParameter send parameter pack |
|
85 */ |
|
86 void ConstructL( const CMsvEntrySelection& aSelection, const TDesC8& aParameter ); |
|
87 |
|
88 /** |
|
89 * From CMsvSendOperation |
|
90 * @param aProgress send operation progress |
|
91 * @return Standard progress structure CMsvSendOperation::TSendOperationProgress |
|
92 */ |
|
93 virtual const TDesC8& TranslateProgress(const TDesC8& aProgress); |
|
94 |
|
95 public: // Data |
|
96 |
|
97 protected: // Data |
|
98 |
|
99 private: // Data |
|
100 |
|
101 public: // Friend classes |
|
102 protected: // Friend classes |
|
103 private: // Friend classes |
|
104 |
|
105 }; |
|
106 |
|
107 #endif // MMSSENDMESSAGEOPERATION_H |
|
108 |
|
109 // End of File |