author | hgs |
Mon, 27 Sep 2010 15:13:20 +0530 | |
changeset 69 | 45459746d5e8 |
parent 65 | ccee5c4b0de4 |
child 71 | 27f2d7aec52a |
permissions | -rw-r--r-- |
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
/* |
69 | 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 |
*/ |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
17 |
|
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
18 |
/*glxmlwrapper_p.h*/ |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
19 |
|
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
20 |
#ifndef GLXMLWRAPPER_P_H |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
21 |
#define GLXMLWRAPPER_P_H |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
22 |
#include <QObject> |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
23 |
#include <glxfiltergeneraldefs.h> |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
24 |
#include <glxlistdefs.h> |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
25 |
#include <mpxcollectionobserver.h> |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
26 |
#include <qdatetime.h> |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
27 |
#include "glxmedialistiterator.h" |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
28 |
#include "glxmlwrapper.h" |
43 | 29 |
#include <QImage> |
42 | 30 |
#include "mglxtitlefetcherobserver.h" |
31 |
||
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
32 |
//Forward Declarations |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
33 |
class MGlxMediaList; |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
34 |
class CGlxMLGenericObserver; |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
35 |
class CGlxThumbnailContext; |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
36 |
class HbIcon; |
40 | 37 |
class QImage; |
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
38 |
class CGlxDefaultAttributeContext; |
24
99ad1390cd33
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
39 |
class CGlxDefaultThumbnailContext; |
99ad1390cd33
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
40 |
class CGlxDefaultListAttributeContext; |
42 | 41 |
class CGlxTitleFetcher; |
45 | 42 |
class CGlxDRMUtility; |
69 | 43 |
|
44 |
||
45 |
/** |
|
46 |
* Class Description |
|
47 |
* Medialist wrapper private class to acess the media property and thumbnail data |
|
48 |
* To use first call GlxMLWrapperPrivate::Instance then set the mode by calling GlxMLWrapperPrivate::SetContextMode() |
|
49 |
*/ |
|
50 |
class GlxMLWrapperPrivate: public QObject, public MGlxTitleFetcherObserver |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
51 |
{ |
69 | 52 |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
53 |
public: |
69 | 54 |
/** |
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
55 |
* Two-phased constructor. |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
56 |
* |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
57 |
* @return Pointer to newly created object. NULL if creation fails. Avoiding Leave as would be called by a QT wrapper Class |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
58 |
*/ |
69 | 59 |
static GlxMLWrapperPrivate* Instance( GlxMLWrapper* aMLWrapper, int aCollectionId, |
60 |
int aHierarchyId, TGlxFilterItemType aFilterType, QString uri, |
|
61 |
GlxFetcherFilterType fetcherFilterType ); |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
62 |
/** |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
63 |
* Destructor. |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
64 |
*/ |
69 | 65 |
~GlxMLWrapperPrivate(); |
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
66 |
/** |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
67 |
* for setting the attribute context mode will be used mainly for retreiving thumbnail of different sizes. |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
68 |
*/ |
69 | 69 |
void SetContextMode( GlxContextMode aContextMode ); |
70 |
||
71 |
/** |
|
72 |
* For removing the contect used |
|
73 |
*/ |
|
74 |
void RemoveContextMode( GlxContextMode aContextMode ); |
|
75 |
||
76 |
/** |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
77 |
* for retreiving the Media List Count. |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
78 |
*/ |
69 | 79 |
int GetItemCount(); |
80 |
||
81 |
/** |
|
82 |
* for retrieving the focus Index |
|
83 |
*/ |
|
84 |
int GetFocusIndex() const; |
|
85 |
||
86 |
/** |
|
87 |
* for setting the focus Index |
|
88 |
*/ |
|
89 |
void SetFocusIndex( int aItemIndex ); |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
90 |
|
69 | 91 |
/** |
92 |
* for setting the focus Index |
|
93 |
*/ |
|
94 |
void SetSelectedIndex( int aItemIndex ); |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
95 |
|
69 | 96 |
/** |
97 |
* for retrieving the visible window Index |
|
98 |
*/ |
|
99 |
int GetVisibleWindowIndex(); |
|
100 |
||
101 |
/** |
|
102 |
* for setting the visible window Index |
|
103 |
*/ |
|
104 |
void SetVisibleWindowIndex( int aItemIndex ); |
|
105 |
||
106 |
public: |
|
107 |
// From MGlxTitleFetcherObserver |
|
108 |
IMPORT_C void HandleTitleAvailableL( const TDesC& aTitle ); |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
109 |
|
42 | 110 |
public: |
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
111 |
void HandleItemAddedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList* aList ); |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
112 |
void HandleItemRemovedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList*/* aList */); |
69 | 113 |
void HandleAttributesAvailableL( TInt aItemIndex, const RArray<TMPXAttribute>& aAttributes, |
114 |
MGlxMediaList* aList ); |
|
115 |
void HandleFocusChangedL( NGlxListDefs::TFocusChangeType aType, TInt aNewIndex, TInt aOldIndex, |
|
116 |
MGlxMediaList* aList ); |
|
117 |
void HandleItemSelectedL( TInt aIndex, TBool aSelected, MGlxMediaList* aList ); |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
118 |
void HandleMessageL( const CMPXMessage& aMessage, MGlxMediaList* aList ); |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
119 |
void HandleError( TInt aError ); |
69 | 120 |
//todo remove comment void HandleCommandCompleteL( CMPXCommand* aCommandResult, TInt aError,MGlxMediaList* aList ); |
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
121 |
void HandleMediaL( TInt aListIndex, MGlxMediaList* aList ); |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
122 |
void HandleItemModifiedL( const RArray<TInt>& aItemIndexes, MGlxMediaList* aList ); |
69 | 123 |
void HandlePopulatedL( MGlxMediaList* aList ); |
24
99ad1390cd33
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
124 |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
125 |
public: |
69 | 126 |
/** |
127 |
* RetrieveItemIcon() - To retreive the full screen and grid thumbnail |
|
128 |
*/ |
|
129 |
HbIcon* RetrieveItemIcon( int index, GlxTBContextType aTBContextType ); |
|
130 |
QImage RetrieveItemImage( int index, GlxTBContextType aTBContextType ); |
|
131 |
QString RetrieveListTitle( int index ); |
|
132 |
QString RetrieveListDesc( int index ); |
|
133 |
QString RetrieveListSubTitle( int index ); |
|
134 |
QString RetrieveItemUri( int index ); |
|
135 |
QSize RetrieveItemDimension( int index ); |
|
136 |
int RetrieveItemSize( int index ); |
|
137 |
QDate RetrieveItemDate( int index ); |
|
138 |
QTime RetrieveItemTime( int index ); |
|
139 |
int RetrieveItemFrameCount( int aItemIndex ); |
|
140 |
CFbsBitmap* RetrieveBitmap( int aItemIndex ); |
|
141 |
int RetrieveListItemCount( int aItemIndex ); |
|
142 |
bool isSystemItem( int aItemIndex ); |
|
143 |
/* |
|
144 |
*Sets the context for fetcing comments |
|
145 |
*/ |
|
146 |
void SetDescontextL(); |
|
147 |
QString RetrieveViewTitle(); |
|
148 |
bool IsPopulated(); |
|
149 |
bool IsDrmProtected( int index ); |
|
150 |
bool IsDrmValid( int index ); |
|
151 |
void setDrmValid( int index, bool valid ); |
|
152 |
bool IsCorruptedImage( int aItemIndex ); |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
153 |
private: |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
154 |
|
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
155 |
/** |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
156 |
* C++ default constructor. |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
157 |
*/ |
69 | 158 |
GlxMLWrapperPrivate( GlxMLWrapper* aMLWrapper ); |
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
159 |
|
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
160 |
/** |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
161 |
* By default Symbian 2nd phase constructor is private. |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
162 |
*/ |
69 | 163 |
void ConstructL( int aCollectionId, |
164 |
int aHierarchyId, |
|
165 |
TGlxFilterItemType aFilterType, |
|
166 |
QString uri = NULL, |
|
167 |
GlxFetcherFilterType fetcherFilterType = EGlxFetcherFilterNone ); |
|
168 |
/** |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
169 |
* Create an instance of Media List. |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
170 |
* |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
171 |
* @leave with error code if creation fails. |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
172 |
*/ |
69 | 173 |
void CreateMediaListL( int aCollectionId, |
174 |
int aHierarchyId, |
|
175 |
TGlxFilterItemType aFilterType, |
|
176 |
GlxFetcherFilterType fetcherFilterType = EGlxFetcherFilterNone ); |
|
177 |
||
178 |
void CreateMediaListAlbumItemL( int aCollectionId, |
|
179 |
int aHierarchyId, |
|
180 |
TGlxFilterItemType aFilterType, GlxFetcherFilterType fetcherFilterType ); |
|
181 |
||
182 |
void CreateMediaListFavoritesItemL( int aCollectionId, int aHierarchyId, TGlxFilterItemType aFilterType, QString uri ); |
|
183 |
void SetThumbnailContextL( GlxContextMode aContextMode ); |
|
184 |
void SetListContextL( GlxContextMode aContextMode ); |
|
185 |
void SetFavouriteContextL(); |
|
186 |
void CreateGridContextL(); |
|
187 |
void CreateLsFsContextL(); |
|
188 |
void CreatePtFsContextL(); |
|
189 |
void RemoveGridContext(); |
|
190 |
void RemoveLsFsContext(); |
|
191 |
void RemovePtFsContext(); |
|
192 |
void RemoveListContext(); |
|
193 |
void RemoveFavouriteContext(); |
|
194 |
void RemoveDescContext(); |
|
195 |
//for the attribute filtering |
|
196 |
TInt CheckTBAttributesPresenceandSanity( TInt aItemIndex, const RArray<TMPXAttribute>& aAttributes, TMPXAttribute aThumbnailAttribute ); |
|
197 |
void CheckGridTBAttribute( TInt aItemIndex, const RArray<TMPXAttribute>& aAttributes ); |
|
198 |
void CheckPtFsTBAttribute( TInt aItemIndex, const RArray<TMPXAttribute>& aAttributes ); |
|
199 |
void CheckLsFsTBAttribute( TInt aItemIndex, const RArray<TMPXAttribute>& aAttributes ); |
|
200 |
void CheckListAttributes( TInt aItemIndex, const RArray<TMPXAttribute>& aAttributes ); |
|
201 |
/* |
|
202 |
* to check the attributes returned for details view is present |
|
203 |
*/ |
|
204 |
void CheckDetailsAttributes( TInt aItemIndex, const RArray<TMPXAttribute>& aAttributes ); |
|
205 |
||
206 |
/** |
|
207 |
* convertFBSBitmapToHbIcon() - convert the CFbsbitmap to HbIcon |
|
208 |
* @param - bitmap of media |
|
209 |
* @return - Hbicon of the modia. |
|
210 |
*/ |
|
211 |
HbIcon *convertFBSBitmapToHbIcon( CFbsBitmap* aBitmap ); |
|
212 |
||
213 |
/* |
|
214 |
* convertFBSBitmapToHbIcon() - convert the CFbsbitmap to HbIcon and scale down upto itemWidth and itemHeight |
|
215 |
* @param - bitmap of media |
|
216 |
* @param - expected HbIcon width |
|
217 |
* @param - expected HbIcon height |
|
218 |
* @param - aspect ratio parameter in the case of scaling the thumbnail |
|
219 |
* @return - Hbicon of the modia. |
|
220 |
*/ |
|
221 |
HbIcon * convertFBSBitmapToHbIcon( CFbsBitmap* aBitmap, TInt itemWidth, TInt itemHeight, Qt::AspectRatioMode aspectRatio = Qt::KeepAspectRatio ); |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
222 |
|
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
223 |
private: |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
224 |
// Instance of Media List |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
225 |
MGlxMediaList* iMediaList; |
69 | 226 |
//observer for ML |
227 |
CGlxMLGenericObserver* iMLGenericObserver; |
|
228 |
GlxContextMode iContextMode; |
|
229 |
//Parent QT based Wrapper |
|
230 |
GlxMLWrapper* iMLWrapper; |
|
231 |
//contexts |
|
232 |
// Thumbnail context |
|
233 |
CGlxThumbnailContext* iGridThumbnailContext; |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
234 |
|
69 | 235 |
// FS related thumbnail contexts |
236 |
CGlxDefaultThumbnailContext* iPtFsThumbnailContext; |
|
237 |
CGlxDefaultThumbnailContext* iLsFsThumbnailContext; |
|
238 |
CGlxDefaultThumbnailContext* iFocusFsThumbnailContext; |
|
239 |
CGlxDefaultThumbnailContext* iFocusGridThumbnailContext; |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
240 |
|
69 | 241 |
//List related contexts |
242 |
// Fetch context for retrieving title attribute |
|
24
99ad1390cd33
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
243 |
CGlxDefaultListAttributeContext* iTitleAttributeContext; |
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
244 |
|
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
245 |
// Fetch context for retrieving subtitle |
24
99ad1390cd33
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
246 |
CGlxDefaultListAttributeContext* iSubtitleAttributeContext; |
40 | 247 |
|
248 |
//to find if the image is in favorites or not |
|
69 | 249 |
CGlxDefaultAttributeContext *iFavouriteContext; |
250 |
||
251 |
//To fetch the details |
|
44 | 252 |
CGlxDefaultAttributeContext *iDescContext; |
69 | 253 |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
254 |
CGlxThumbnailContext* iListThumbnailContext; |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
255 |
// for thumbnail context |
24
99ad1390cd33
Revision: 201011
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
23
diff
changeset
|
256 |
TGlxFromVisibleIndexOutwardListIterator iThumbnailIterator; |
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
257 |
|
69 | 258 |
// Iterators for Grid and FS |
40 | 259 |
TGlxScrollingDirectionIterator iBlockyIterator; |
260 |
TGlxFromManualIndexBlockyIterator iBlockyIteratorForFilmStrip; |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
261 |
|
69 | 262 |
//Variables for checking the active contexts |
263 |
//todo merge all these variables into 1 and have bitwise operation on them |
|
264 |
TBool iGridContextActivated; |
|
265 |
TBool iLsFsContextActivated; |
|
266 |
TBool iPtFsContextActivated; |
|
267 |
TBool iLsListContextActivated; //currently not used as we have not implemented the logic for 3 thumbnails |
|
268 |
TBool iPtListContextActivated; |
|
269 |
TBool iDetailsContextActivated; //this is to fetch the comments attributes |
|
270 |
TBool iSelectionListContextActivated; |
|
271 |
CGlxTitleFetcher* iTitleFetcher; |
|
272 |
QImage iCorruptImage; |
|
273 |
QString iViewTitle; |
|
274 |
CGlxDRMUtility * iDrmUtility; |
|
23
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
275 |
}; |
74c9f037fd5d
Revision: 201007
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
276 |
#endif //GLXMLWRAPPER_P_H |