|
1 /* |
|
2 * Copyright (c) 2005 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: AIW provider for set as wallpaper functionality. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_CAKNSWALLPAPERPLUGIN_H |
|
19 #define C_CAKNSWALLPAPERPLUGIN_H |
|
20 |
|
21 #include <AiwServiceIfMenu.h> |
|
22 #include <ConeResLoader.h> |
|
23 |
|
24 /** |
|
25 * CAknsWallpaperPlugin plugin implementation. |
|
26 * |
|
27 * This plugin implements an AIW provider for setting main wallpaper for the device. |
|
28 * |
|
29 * @since S60 v3.1 |
|
30 */ |
|
31 class CAknsWallpaperPlugin : public CAiwServiceIfMenu |
|
32 { |
|
33 public: |
|
34 static CAknsWallpaperPlugin* NewL(); |
|
35 virtual ~CAknsWallpaperPlugin(); |
|
36 |
|
37 private: |
|
38 // from base class CAiwServiceIfMenu |
|
39 |
|
40 void InitialiseL( |
|
41 MAiwNotifyCallback& aFrameworkCallback, |
|
42 const RCriteriaArray& aInterest); |
|
43 |
|
44 void HandleServiceCmdL( |
|
45 const TInt& aCmdId, |
|
46 const CAiwGenericParamList& aInParamList, |
|
47 CAiwGenericParamList& aOutParamList, |
|
48 TUint aCmdOptions = 0, |
|
49 const MAiwNotifyCallback* aCallback = NULL); |
|
50 |
|
51 void InitializeMenuPaneL( |
|
52 CAiwMenuPane& aMenuPane, |
|
53 TInt aIndex, |
|
54 TInt aCascadeId, |
|
55 const CAiwGenericParamList& aInParamList); |
|
56 |
|
57 void HandleMenuCmdL( |
|
58 TInt aMenuCmdId, |
|
59 const CAiwGenericParamList& aInParamList, |
|
60 CAiwGenericParamList& aOutParamList, |
|
61 TUint aCmdOptions = 0, |
|
62 const MAiwNotifyCallback* aCallback = NULL); |
|
63 |
|
64 private: |
|
65 CAknsWallpaperPlugin(); |
|
66 void ConstructL(); |
|
67 |
|
68 private: // New |
|
69 void DisplayInfoNoteL(TInt aTextResourceId); |
|
70 TBool IsMimeTypeSupportedL(const TDesC& aMimeTypeString); |
|
71 TPtrC GetAiwParamAsDescriptor( |
|
72 const CAiwGenericParamList& aParamList, |
|
73 TGenericParamId aParamType); |
|
74 |
|
75 |
|
76 private: |
|
77 RConeResourceLoader iConeResLoader; |
|
78 }; |
|
79 |
|
80 #endif // C_CAKNSWALLPAPERPLUGIN_H |
|
81 |
|
82 // End of file. |