|
1 /* |
|
2 * Copyright (c) 2008-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: This class browses file system |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 #ifndef C_GLXCOLLECTIONPLUGINIMAGEVIEWER_H |
|
23 #define C_GLXCOLLECTIONPLUGINIMAGEVIEWER_H |
|
24 |
|
25 // INCLUDES |
|
26 #include <e32cmn.h> |
|
27 #include "glxcollectionpluginbase.h" |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 |
|
32 // CONSTANTS |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * CGlxCollectionPluginImageViewer class |
|
38 * |
|
39 * Plug-in basically provides image viewing experience. |
|
40 * @ingroup collection_component_design |
|
41 */ |
|
42 NONSHARABLE_CLASS(CGlxCollectionPluginImageViewer) : public CGlxCollectionPluginBase |
|
43 { |
|
44 public: // Constructors and destructor |
|
45 /** |
|
46 * Two-phased constructor |
|
47 * |
|
48 * @param aObs observer |
|
49 * @return object of constructed |
|
50 */ |
|
51 static CGlxCollectionPluginImageViewer* NewL(TAny* aObs); |
|
52 |
|
53 /** |
|
54 * Destructor |
|
55 */ |
|
56 ~CGlxCollectionPluginImageViewer(); |
|
57 |
|
58 private: |
|
59 /** |
|
60 * Checks to see if any additional attributes are required to construct required |
|
61 * CPI specific attribute |
|
62 * |
|
63 * @param aCpiAttribute CPI specific attribute to be constructed later |
|
64 * @param aAttributeArray modifiable list of attributes to be retrieved from data source |
|
65 */ |
|
66 void CpiAttributeAdditionalAttributes(const TMPXAttribute& aCpiAttribute, RArray<TMPXAttribute>& aAttributeArray); |
|
67 |
|
68 /** |
|
69 * Modifies the response to include all requested CPI specific attributes or Leaves. |
|
70 * |
|
71 * @param aResponse Data Source constructed response to which CPI specific attributes should be added (also contains any required data) |
|
72 * @param aCpiAttributes list of CPI specific attributes to be constructed |
|
73 * @param aMediaIds list of CPI specific media Ids |
|
74 */ |
|
75 void HandleCpiAttributeResponseL(CMPXMedia* aResponse, TArray<TMPXAttribute> aCpiAttributes, TArray<TGlxMediaId> aMediaIds); |
|
76 |
|
77 TBool IsUpdateMessageIgnored(CMPXMessage& aMessage); |
|
78 |
|
79 /** |
|
80 * Modifies the response to include all requested CPI specific attributes or Leaves. |
|
81 * |
|
82 * @param aResponse Data Source constructed response to which CPI specific attributes should be added (also contains any required data) |
|
83 * @param aCpiAttributes list of CPI specific attributes to be constructed |
|
84 * @param aMediaId CPI specific media Id |
|
85 */ |
|
86 void HandleCpiAttributeResponseL(CMPXMedia* aResponse, TArray<TMPXAttribute> aCpiAttributes, TGlxMediaId aMediaId); |
|
87 |
|
88 TGlxFilterProperties DefaultFilter(TInt aLevel); |
|
89 |
|
90 private: |
|
91 /** |
|
92 * Constructor |
|
93 * @param aObs MMPXCollectionPluginObserver instance |
|
94 */ |
|
95 CGlxCollectionPluginImageViewer(MMPXCollectionPluginObserver* aObs); |
|
96 void ConstructL(); |
|
97 }; |
|
98 |
|
99 |
|
100 |
|
101 #endif // C_GLXCOLLECTIONPLUGINIMAGEVIEWER_H |
|
102 |