|
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 <s32mem.h> |
|
19 |
|
20 #include "tsscreenshotclient.h" |
|
21 #include "tsscreenshotclientimpl.h" |
|
22 |
|
23 EXPORT_C CTsScreenshotClient *CTsScreenshotClient::NewL() |
|
24 { |
|
25 CTsScreenshotClient* self = NewLC(); |
|
26 CleanupStack::Pop(self); |
|
27 return self; |
|
28 } |
|
29 |
|
30 EXPORT_C CTsScreenshotClient *CTsScreenshotClient::NewLC() |
|
31 { |
|
32 CTsScreenshotClient* self = new (ELeave) CTsScreenshotClient; |
|
33 CleanupStack::PushL(self); |
|
34 self->ConstructL(); |
|
35 return self; |
|
36 } |
|
37 |
|
38 void CTsScreenshotClient::ConstructL() |
|
39 { |
|
40 iImpl = CTsScreenshotClientImpl::NewL(); |
|
41 } |
|
42 |
|
43 CTsScreenshotClient::CTsScreenshotClient() |
|
44 { |
|
45 } |
|
46 |
|
47 EXPORT_C CTsScreenshotClient::~CTsScreenshotClient() |
|
48 { |
|
49 delete iImpl; |
|
50 } |
|
51 |
|
52 EXPORT_C TInt CTsScreenshotClient::RegisterScreenshot(CFbsBitmap *screenshot, TInt wgId, UpdatePriority priority) |
|
53 { |
|
54 return iImpl->RegisterScreenshot(screenshot, wgId, priority); |
|
55 } |
|
56 |
|
57 EXPORT_C void CTsScreenshotClient::RegisterScreenshot(TRequestStatus &status, CFbsBitmap *screenshot, TInt wgId, UpdatePriority priority) |
|
58 { |
|
59 iImpl->RegisterScreenshot(status, screenshot, wgId, priority); |
|
60 } |
|
61 |
|
62 EXPORT_C TInt CTsScreenshotClient::UnregisterScreenshot(TInt wgId) |
|
63 { |
|
64 return iImpl->UnregisterScreenshot(wgId); |
|
65 } |