|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "afactivitylauncher.h" |
|
19 #include "afactivitylauncher_p.h" |
|
20 |
|
21 // ----------------------------------------------------------------------------- |
|
22 // Public part of construction, destructor |
|
23 // ----------------------------------------------------------------------------- |
|
24 // |
|
25 EXPORT_C CAfActivityLauncher *CAfActivityLauncher::NewL(RApaLsSession &apaLsSession, RWsSession &wsSession) |
|
26 { |
|
27 CAfActivityLauncher *self = CAfActivityLauncher::NewLC(apaLsSession, wsSession); |
|
28 CleanupStack::Pop(self); |
|
29 return self; |
|
30 } |
|
31 |
|
32 EXPORT_C CAfActivityLauncher *CAfActivityLauncher::NewLC(RApaLsSession &apaLsSession, RWsSession &wsSession) |
|
33 { |
|
34 CAfActivityLauncher *self = new (ELeave) CAfActivityLauncher(); |
|
35 CleanupStack::PushL(self); |
|
36 self->ConstructL(apaLsSession, wsSession); |
|
37 return self; |
|
38 } |
|
39 |
|
40 EXPORT_C CAfActivityLauncher::~CAfActivityLauncher() |
|
41 { |
|
42 delete mImplementation; |
|
43 } |
|
44 |
|
45 // ----------------------------------------------------------------------------- |
|
46 // Private part of construction |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 CAfActivityLauncher::CAfActivityLauncher() |
|
50 { |
|
51 } |
|
52 |
|
53 void CAfActivityLauncher::ConstructL(RApaLsSession &apaLsSession, RWsSession &wsSession) |
|
54 { |
|
55 mImplementation = CAfActivityLauncherPrivate::NewL(apaLsSession, wsSession); |
|
56 } |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // Actual activity launching |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 |
|
63 EXPORT_C void CAfActivityLauncher::launchActivityL(const TDesC &uriDesc) |
|
64 { |
|
65 mImplementation->launchActivityL(uriDesc); |
|
66 } |