|
1 /* |
|
2 * Copyright (c) 2006-2007 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: Wrapper dll for wallpaperutils.dll. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <AknsWallpaperUtils.h> |
|
19 |
|
20 #include "pslnwallpaperutilsloader.h" |
|
21 #include "PslnConst.h" |
|
22 |
|
23 // ======== MEMBER FUNCTIONS ======== |
|
24 |
|
25 // --------------------------------------------------------------------------- |
|
26 // C++ default constructor can NOT contain any code, that might leave. |
|
27 // --------------------------------------------------------------------------- |
|
28 // |
|
29 CPslnWallpaperUtilsLoader::CPslnWallpaperUtilsLoader() |
|
30 { |
|
31 } |
|
32 |
|
33 // --------------------------------------------------------------------------- |
|
34 // Two-phased constructor. |
|
35 // --------------------------------------------------------------------------- |
|
36 // |
|
37 CPslnWallpaperUtilsLoader* CPslnWallpaperUtilsLoader::NewL() |
|
38 { |
|
39 CPslnWallpaperUtilsLoader* self = |
|
40 new( ELeave ) CPslnWallpaperUtilsLoader(); |
|
41 |
|
42 return self; |
|
43 } |
|
44 |
|
45 // --------------------------------------------------------------------------- |
|
46 // Destructor |
|
47 // --------------------------------------------------------------------------- |
|
48 // |
|
49 CPslnWallpaperUtilsLoader::~CPslnWallpaperUtilsLoader() |
|
50 { |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // Set idle wallpaper. |
|
55 // --------------------------------------------------------------------------- |
|
56 // |
|
57 TInt CPslnWallpaperUtilsLoader::SetIdleWallpaper( |
|
58 const TDesC& aFilename, |
|
59 CCoeEnv* aCoeEnv, |
|
60 TInt aWaitNoteTextResourceID, |
|
61 TInt aWaitNoteResourceID ) |
|
62 { |
|
63 return AknsWallpaperUtils::SetIdleWallpaper( |
|
64 aFilename, |
|
65 aCoeEnv, |
|
66 aWaitNoteTextResourceID, |
|
67 aWaitNoteResourceID ); |
|
68 } |
|
69 |
|
70 //---------------------------------------------------------------------------- |
|
71 // Launcher gate function |
|
72 //---------------------------------------------------------------------------- |
|
73 EXPORT_C TAny* GateFunction() |
|
74 { |
|
75 CPslnWallpaperUtilsLoader* launcher = NULL; |
|
76 TRAPD( err, launcher = CPslnWallpaperUtilsLoader::NewL() ); |
|
77 if( err != KErrNone ) |
|
78 { |
|
79 return NULL; |
|
80 } |
|
81 |
|
82 return launcher; |
|
83 } |
|
84 |
|
85 // End of File |