|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @internalTechnology |
|
19 */ |
|
20 |
|
21 #include <ecom/implementationproxy.h> |
|
22 #include <comms-infras/mobilitymessages.h> |
|
23 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
24 #include <comms-infras/mobilitymessages_internal.h> |
|
25 #endif |
|
26 #include <comms-infras/mobilitymessagesecom.h> |
|
27 #include <comms-infras/datamonitormessages.h> |
|
28 #include <comms-infras/datamonmessagesecom.h> |
|
29 #include <comms-infras/esockmessages.h> |
|
30 |
|
31 using namespace ESock; |
|
32 |
|
33 /** |
|
34 ECOM Implementation Factories |
|
35 * @internalTechnology |
|
36 */ |
|
37 |
|
38 namespace ESock |
|
39 { |
|
40 |
|
41 /** |
|
42 ESock message factory. |
|
43 |
|
44 @internalComponent |
|
45 @released since v9.2 |
|
46 */ |
|
47 class CESockMsgFactory : public CBase |
|
48 { |
|
49 public: |
|
50 static Meta::SMetaDataECom* NewMessageL(TAny* aParams); |
|
51 }; |
|
52 |
|
53 Meta::SMetaDataECom* CESockMsgFactory::NewMessageL(TAny* aParams) |
|
54 { |
|
55 TInt32 type = reinterpret_cast<TInt32>(aParams); |
|
56 switch (type) |
|
57 { |
|
58 default: |
|
59 User::Leave(KErrNotFound); |
|
60 } |
|
61 return NULL; |
|
62 } |
|
63 |
|
64 } // namespace ESock |
|
65 |
|
66 // Define the interface UIDs |
|
67 const TImplementationProxy ImplementationTable[] = |
|
68 { |
|
69 IMPLEMENTATION_PROXY_ENTRY(KESockMessagesImplementationUid, CESockMsgFactory::NewMessageL), |
|
70 IMPLEMENTATION_PROXY_ENTRY(KMobilityMessagesImplementationUid, CMobilityMsgFactory::NewMessageL), |
|
71 IMPLEMENTATION_PROXY_ENTRY(KDataMonitoringMessagesImplementationUid, CDataMonitoringMsgFactory::NewMessageL), |
|
72 IMPLEMENTATION_PROXY_ENTRY(KDataMonitoringRequestMessagesImplementationUid, CDataMonitoringMsgPluginInfo::NewL), |
|
73 IMPLEMENTATION_PROXY_ENTRY(KMobilityRequestMessagesImplementationUid, CMobilityMsgPluginInfo::NewL), |
|
74 }; |
|
75 |
|
76 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
|
77 { |
|
78 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
|
79 return ImplementationTable; |
|
80 } |
|
81 |
|
82 |
|
83 |
|
84 |