|
1 /* |
|
2 * Copyright (c) 2009 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: Implementation of ECOM plug-in service interface. Provides |
|
15 * HtiMessagesServicePlugin service. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CHTIMESSAGESSERVICEPLUGIN_H |
|
21 #define CHTIMESSAGESSERVICEPLUGIN_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <HtiServicePluginInterface.h> |
|
25 |
|
26 // CONSTANTS |
|
27 const TInt KHtiMessagesServiceUidValue = 0x10210CCF; // ECOM Implementation UID |
|
28 const TUid KHtiMessagesServiceUid = {KHtiMessagesServiceUidValue}; |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CMessageMgmntHandler; |
|
32 class CHtiIAPHandler; |
|
33 class CHtiMailboxHandler; |
|
34 class CHtiMsgSettingsHandler; |
|
35 |
|
36 // CLASS DECLARATION |
|
37 |
|
38 /** |
|
39 * Implementation of ECOM plug-in service interface. |
|
40 */ |
|
41 class CHtiMessagesServicePlugin : public CHTIServicePluginInterface |
|
42 { |
|
43 public: |
|
44 |
|
45 enum TCommand |
|
46 { |
|
47 // MessagesMgmntHandler |
|
48 EAddSms = 0x01, |
|
49 EAddMms = 0x02, |
|
50 EAddEmail = 0x03, |
|
51 EAddIrMsg = 0x04, |
|
52 EAddBtMsg = 0x05, |
|
53 EAddSmartMsg = 0x06, |
|
54 EAddAudioMsg = 0x07, |
|
55 EDeleteMessage = 0x10, |
|
56 EDeleteFolderContent = 0x11, |
|
57 |
|
58 // MailboxHandler |
|
59 ECreateMailBox = 0x20, |
|
60 EDeleteMailBox = 0x21, |
|
61 |
|
62 // IAPHandler |
|
63 ECreateIAP = 0x30, |
|
64 EDeleteIAP = 0x31, |
|
65 ECreateDestination = 0x32, |
|
66 EDeleteDestination = 0x33, |
|
67 EAddToDestination = 0x34, |
|
68 ERemoveFromDestination = 0x35, |
|
69 ESetDefaultConnection = 0x36, |
|
70 |
|
71 // MgsSettingsHandler |
|
72 ESetDefaultSmsCenter = 0x40, |
|
73 EDeleteSmsCenter = 0x41, |
|
74 ESetSmsSettings = 0x42, |
|
75 ESetMmsSettings = 0x45, |
|
76 |
|
77 // only for response message |
|
78 EResultOk = 0xFF, |
|
79 }; |
|
80 |
|
81 static CHtiMessagesServicePlugin* NewL(); |
|
82 |
|
83 // Interface implementation |
|
84 void ProcessMessageL( const TDesC8& aMessage, |
|
85 THtiMessagePriority aPriority ); |
|
86 |
|
87 protected: |
|
88 |
|
89 CHtiMessagesServicePlugin(); |
|
90 void ConstructL(); |
|
91 |
|
92 virtual ~CHtiMessagesServicePlugin(); |
|
93 |
|
94 private: |
|
95 |
|
96 CMessageMgmntHandler* iMessageHandler; |
|
97 CHtiIAPHandler* iIAPHandler; |
|
98 CHtiMailboxHandler* iMailboxHandler; |
|
99 CHtiMsgSettingsHandler* iMsgSettingsHandler; |
|
100 }; |
|
101 |
|
102 #endif // CHTIMESSAGESSERVICEPLUGIN_H |
|
103 |