homescreensrv_plat/activity_framework_api/tsrc/t_afactivitylauncher/mocks/src/afstorageclient.cpp
equal
deleted
inserted
replaced
|
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 "afstorageclient.h" |
|
19 |
|
20 #include <afentry.h> |
|
21 |
|
22 TInt CAfStorageClient::lastLaunchAppId = 0; |
|
23 HBufC* CAfStorageClient::lastLaunchUri = 0; |
|
24 |
|
25 CAfStorageClient *CAfStorageClient::NewL(MAfAsyncRequestObserver &observer) |
|
26 { |
|
27 CAfStorageClient *self = CAfStorageClient::NewLC(observer); |
|
28 CleanupStack::Pop(self); |
|
29 return self; |
|
30 } |
|
31 |
|
32 CAfStorageClient *CAfStorageClient::NewLC(MAfAsyncRequestObserver &/*observer*/) |
|
33 { |
|
34 CAfStorageClient *self = new (ELeave) CAfStorageClient(); |
|
35 CleanupStack::PushL(self); |
|
36 return self; |
|
37 } |
|
38 |
|
39 CAfStorageClient::~CAfStorageClient() |
|
40 { |
|
41 delete lastLaunchUri; |
|
42 lastLaunchUri = 0; |
|
43 } |
|
44 |
|
45 CAfStorageClient::CAfStorageClient() |
|
46 { |
|
47 } |
|
48 |
|
49 int CAfStorageClient::launchActivity(const CAfEntry &entry) |
|
50 { |
|
51 lastLaunchAppId = entry.ApplicationId(); |
|
52 lastLaunchUri = entry.ActivityId().Alloc(); |
|
53 |
|
54 return KErrNone; |
|
55 } |