|
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: Shared data implementation of the shared data factory |
|
15 * |
|
16 */ |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include "CIMPSSharedDataFactory.h" |
|
20 #include "CIMPSSharedDataHandler.h" |
|
21 #include "CIMPSSystemNotifierSystemAgent.h" |
|
22 |
|
23 // ============================ MEMBER FUNCTIONS =============================== |
|
24 |
|
25 // ----------------------------------------------------------------------------- |
|
26 // CIMPSSharedDataFactory::CreatePermanentKeyHandlerL |
|
27 // Two-phased constructor. |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 MIMPSSharedData* CIMPSSharedDataFactory::CreatePermanentKeyHandlerL( |
|
31 MIMPSSharedDataObserver* aObserver, |
|
32 const TUid aUid ) |
|
33 { |
|
34 CIMPSSharedDataHandler* sharedDataHandler = CIMPSSharedDataHandler::NewL( aObserver, aUid ); |
|
35 return sharedDataHandler; |
|
36 } |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // CIMPSSharedDataFactory::CreateTemporaryKeyHandlerL |
|
40 // Two-phased constructor. |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 MIMPSSharedData* CIMPSSharedDataFactory::CreateTemporaryKeyHandlerL( |
|
44 MIMPSSharedDataObserver* aObserver, |
|
45 const TUid aUid ) |
|
46 { |
|
47 CIMPSSharedDataHandler* sharedDataHandler = |
|
48 CIMPSSharedDataHandler::NewL( aObserver, aUid, ETrue ); |
|
49 |
|
50 return sharedDataHandler; |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // CIMPSSharedDataFactory::CreateSystemNotifyHandlerL |
|
55 // Two-phased constructor. |
|
56 // ----------------------------------------------------------------------------- |
|
57 // |
|
58 MIMPSSystemNotifier* CIMPSSharedDataFactory::CreateSystemNotifyHandlerL( |
|
59 MIMPSSystemNotifierObserver& aObserver, |
|
60 const TUid aKey ) |
|
61 { |
|
62 CIMPSSystemNotifierSystemAgent* systemAgent = |
|
63 CIMPSSystemNotifierSystemAgent::NewL( aObserver, aKey ); |
|
64 return systemAgent; |
|
65 } |
|
66 |
|
67 |
|
68 // End of File |