equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2004 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: Client plugin factory |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include <E32std.h> |
|
20 #include <impspresenceconnectionuiconstsng.h> |
|
21 #include "MCnUiClientPlugin.h" |
|
22 |
|
23 #include "CCnUiClientPluginPEC.h" |
|
24 #include "CCnUiClientPluginIM.h" |
|
25 |
|
26 |
|
27 |
|
28 // ================= GLOBAL FUNCTIONS ==================== |
|
29 |
|
30 // ----------------------------------------------------------------------------- |
|
31 // CreateClientPluginL() |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 GLREF_C MCnUiClientPlugin* CreateClientPluginL( TIMPSConnectionClient aClientId, |
|
35 CPEngNWSessionSlotID2& aNWSessionSlotID ) |
|
36 { |
|
37 if ( aClientId == EIMPSConnClientPEC ) |
|
38 { |
|
39 return CCnUiClientPluginPEC::NewL( aNWSessionSlotID ); |
|
40 } |
|
41 |
|
42 else if ( aClientId == EIMPSConnClientIM ) |
|
43 { |
|
44 return CCnUiClientPluginIM::NewL( aNWSessionSlotID ); |
|
45 } |
|
46 |
|
47 return NULL; |
|
48 } |
|
49 |
|
50 // End of File |
|
51 |