|
1 /* |
|
2 * Copyright (c) 2007-2008 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: message creater class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CIMCVENGINEMESSAGECREATOR_H |
|
20 #define CIMCVENGINEMESSAGECREATOR_H |
|
21 |
|
22 #include "mimcvenginemessagecreator.h" |
|
23 |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * Creator class for messages. |
|
29 * |
|
30 * @lib imcvengine.dll |
|
31 * @since 5.0 |
|
32 */ |
|
33 |
|
34 class CIMCVEngineMessageCreator : public CBase, public MIMCVEngineMessageCreator |
|
35 { |
|
36 public: // Construction |
|
37 |
|
38 /** |
|
39 * Construction |
|
40 * @return Pointer to new created instance of CIMCVEngineMessageCreator |
|
41 */ |
|
42 static CIMCVEngineMessageCreator* NewL(); |
|
43 |
|
44 |
|
45 /** |
|
46 * Destruction |
|
47 */ |
|
48 ~CIMCVEngineMessageCreator(); |
|
49 |
|
50 private: // Construction |
|
51 |
|
52 /** |
|
53 * Constructor |
|
54 */ |
|
55 CIMCVEngineMessageCreator(); |
|
56 |
|
57 private: // From MIMCVEngineMessageCreator |
|
58 |
|
59 /** |
|
60 * @see MIMCVEngineMessageCreator |
|
61 */ |
|
62 MIMCVEngineMessage* CreateMessageL( const SMessageData& aData ) const; |
|
63 |
|
64 |
|
65 /** |
|
66 * Create failed text message. |
|
67 * @param MIMCVEngineMessage, which has been failed to deliver |
|
68 * @return new MIMCVEngineMessage. Ownership is passed to caller |
|
69 */ |
|
70 MIMCVEngineMessage* CreateFailedMessageL( |
|
71 const MIMCVEngineMessage* pSource ) const ; |
|
72 |
|
73 private: // New helper methods |
|
74 |
|
75 /** |
|
76 * Create text message. |
|
77 * @param aData Data for message. |
|
78 * @return new MIMCVEngineMessage. Ownership is passed to caller |
|
79 */ |
|
80 MIMCVEngineMessage* CreateTextMessageL( const SMessageData& aData ) const; |
|
81 |
|
82 |
|
83 |
|
84 |
|
85 }; |
|
86 |
|
87 #endif // CIMCVENGINEMESSAGECREATOR_H |
|
88 |
|
89 // End of File |