williamr@2
|
1 |
/*
|
williamr@2
|
2 |
* Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
3 |
* All rights reserved.
|
williamr@2
|
4 |
* This component and the accompanying materials are made available
|
williamr@2
|
5 |
* under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
6 |
* which accompanies this distribution, and is available
|
williamr@2
|
7 |
* at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
8 |
*
|
williamr@2
|
9 |
* Initial Contributors:
|
williamr@2
|
10 |
* Nokia Corporation - initial contribution.
|
williamr@2
|
11 |
*
|
williamr@2
|
12 |
* Contributors:
|
williamr@2
|
13 |
*
|
williamr@2
|
14 |
* Description: Defines an internal concrete class CAknsAppSkinInstance and
|
williamr@2
|
15 |
* related types. This class encapsulates the concrete skin
|
williamr@2
|
16 |
* instance which is a singleton in thread scope.
|
williamr@2
|
17 |
*
|
williamr@2
|
18 |
*/
|
williamr@2
|
19 |
|
williamr@2
|
20 |
|
williamr@2
|
21 |
#ifndef AKNSWALLPAPERUTILS_H
|
williamr@2
|
22 |
#define AKNSWALLPAPERUTILS_H
|
williamr@2
|
23 |
|
williamr@2
|
24 |
#include <e32base.h>
|
williamr@2
|
25 |
#include <badesca.h>
|
williamr@2
|
26 |
|
williamr@2
|
27 |
class CCoeEnv;
|
williamr@2
|
28 |
|
williamr@2
|
29 |
/*
|
williamr@2
|
30 |
Special error codes for SetIdleWallpaper.
|
williamr@2
|
31 |
*/
|
williamr@2
|
32 |
enum TAknsWpuError
|
williamr@2
|
33 |
{
|
williamr@2
|
34 |
// Returned when the drm protected image has
|
williamr@2
|
35 |
// only preview rights
|
williamr@2
|
36 |
KAknsWpuErrorPreviewOnly = -8000
|
williamr@2
|
37 |
};
|
williamr@2
|
38 |
|
williamr@2
|
39 |
/*
|
williamr@2
|
40 |
* An utility class for manipulating the Idle state wallpaper. This function will show
|
williamr@2
|
41 |
* all drm related messages and queries, if the content is drm protected.
|
williamr@2
|
42 |
*
|
williamr@2
|
43 |
* No copies of the given file, but the file is used directly where it is located.
|
williamr@2
|
44 |
*
|
williamr@2
|
45 |
*
|
williamr@2
|
46 |
* @since 3.0
|
williamr@2
|
47 |
*/
|
williamr@2
|
48 |
class AknsWallpaperUtils
|
williamr@2
|
49 |
{
|
williamr@2
|
50 |
public:
|
williamr@2
|
51 |
/*
|
williamr@2
|
52 |
* Sets the idle state wallpaper
|
williamr@2
|
53 |
*
|
williamr@2
|
54 |
* @param aFilename, the filename(incl. full path) of the image to be
|
williamr@2
|
55 |
* set as the idle state wallpaper, or KNullDesC if wallpaper is to
|
williamr@2
|
56 |
* be removed. If resource id:s are given, the user must ensure that
|
williamr@2
|
57 |
* the correct resource file is loaded to the given aCCoeEnv. The
|
williamr@2
|
58 |
* waitnote is type of CAknWaitNoteWrapper and is automatically launched
|
williamr@2
|
59 |
* when correct resource id:s are given.
|
williamr@2
|
60 |
*
|
williamr@2
|
61 |
* @param aCoeEnv a valid pointer to Control Environment, or NULL. As this function will potentially
|
williamr@2
|
62 |
* show drm related messages, a valid coeenv is needed. If no messages are wanted, NULL can be given
|
williamr@2
|
63 |
* as the parameter. Note that even when passing NULL, DRM related stuff will not be skipped, but
|
williamr@2
|
64 |
* they are done silenty.
|
williamr@2
|
65 |
*
|
williamr@2
|
66 |
* @param aWaitNoteResourceTextID the resource id of the waitnote text to show
|
williamr@2
|
67 |
* @param aWaitNoteResourceID the resource id of the wait note to show.
|
williamr@2
|
68 |
* @return KErrNone on success or one of the system wide error codes.
|
williamr@2
|
69 |
*/
|
williamr@2
|
70 |
IMPORT_C static TInt SetIdleWallpaper(const TDesC& aFilename, CCoeEnv* aCoeEnv, TInt aWaitNoteTextResourceID = 0, TInt aWaitNoteResourceID = 0);
|
williamr@2
|
71 |
|
williamr@2
|
72 |
IMPORT_C static TInt SetSlidesetWallpaper(CDesCArray& aSelectedFiles, CCoeEnv* aCoeEnv, TInt aWaitNoteTextResourceID = 0, TInt aWaitNoteResourceID = 0);
|
williamr@2
|
73 |
|
williamr@2
|
74 |
};
|
williamr@2
|
75 |
|
williamr@2
|
76 |
|
williamr@2
|
77 |
#endif // AKNSAPPSKININSTANCE_H
|
williamr@2
|
78 |
|
williamr@2
|
79 |
// End of File
|