23 #include<glxfiltergeneraldefs.h> |
23 #include<glxfiltergeneraldefs.h> |
24 #include<glxuistd.h> |
24 #include<glxuistd.h> |
25 |
25 |
26 enum |
26 enum |
27 { |
27 { |
28 GlxFsImageRole = Qt::UserRole + 1, //to get the fullscreen image |
28 GlxHgVisibilityRole = Qt::UserRole + 1, // VisibilityRole For MediaWall , Dont Change This Value - Depedency To HgWidget |
|
29 GlxFsImageRole, //to get the fullscreen image |
29 GlxContextRole, //to get and set the context |
30 GlxContextRole, //to get and set the context |
30 GlxFocusIndexRole, //to get and set the selected item index |
31 GlxFocusIndexRole, //to get and set the selected item index |
31 GlxVisualWindowIndex, //to set the visual window index in media list |
32 GlxVisualWindowIndex, //to set the visual window index in media list |
32 GlxUriRole, //to get the URI of the image |
33 GlxUriRole, //to get the URI of the image |
33 GlxDimensionsRole, |
34 GlxDimensionsRole, |
34 GlxSelectedIndexRole, //to get and set the seleceted item list |
35 GlxSelectedIndexRole, //to get and set the seleceted item list |
35 GlxDateRole, //to get the image created or modified date |
36 GlxDateRole, //to get the image created or modified date |
36 GlxFrameCount, //to get the number of frame in an image |
37 GlxFrameCount, //to get the number of frame in an image |
37 GlxSubStateRole, //to publish the sub state of a SM states |
38 GlxSubStateRole, //to publish the sub state of a SM states |
38 GlxHdmiBitmap, //to get the pre decoded thumbnail for HDMI |
39 GlxHdmiBitmap, //to get the pre decoded thumbnail for HDMI |
|
40 GlxListItemCount, //to get the number of item in the album list |
|
41 GlxSystemItemRole, //to get the item is system item or not |
|
42 GlxFavorites, //to get the image is in favorites folder or not |
|
43 GlxQImageSmall, //To Get Grid Thumbnail as QImage |
|
44 GlxQImageLarge, //To Get FullScreen Thumbnail as QImage |
|
45 GlxDefaultImage //To Get Default Thumbnail |
39 }; |
46 }; |
40 |
47 |
41 |
48 |
42 class GlxModelParm |
49 class GlxModelParm |
43 { |
50 { |
44 public: |
51 public: |
45 GlxModelParm (qint32 collectionId = 0, qint32 depth = 0 , TGlxFilterItemType filterType = EGlxFilterItemAll , GlxContextMode contextMode = GlxContextPtGrid ) |
52 GlxModelParm (qint32 collectionId = 0, qint32 depth = 0 , TGlxFilterItemType filterType = EGlxFilterItemAll , GlxContextMode contextMode = GlxContextPtGrid ,QString uri = NULL) |
46 : mCollectionId(collectionId) , |
53 : mCollectionId(collectionId) , |
47 mDepth(depth) , |
54 mDepth(depth) , |
48 mFilterType( filterType ), |
55 mFilterType( filterType ), |
49 mContextMode( contextMode ) |
56 mContextMode( contextMode ), |
|
57 mUri(uri) |
50 { |
58 { |
51 |
59 |
52 } |
60 } |
53 |
61 |
54 void setCollection (qint32 collectionId = 0) { mCollectionId = collectionId ; } |
62 void setCollection (qint32 collectionId = 0) { mCollectionId = collectionId ; } |
55 qint32 collection() { return mCollectionId; } |
63 qint32 collection() { return mCollectionId; } |
56 void setDepth (qint32 depth = 0) { mDepth = depth ; } |
64 void setDepth (qint32 depth = 0) { mDepth = depth ; } |
57 qint32 depth() { return mDepth; } |
65 qint32 depth() { return mDepth; } |
|
66 QString path() { return mUri; } |
|
67 void setPath(QString uri = NULL) { mUri=uri; } |
58 TGlxFilterItemType filterType() { return mFilterType; } |
68 TGlxFilterItemType filterType() { return mFilterType; } |
59 void setContextMode( GlxContextMode contextMode ) { mContextMode = contextMode ; } |
69 void setContextMode( GlxContextMode contextMode ) { mContextMode = contextMode ; } |
60 GlxContextMode contextMode() { return mContextMode ; } |
70 GlxContextMode contextMode() { return mContextMode ; } |
61 |
71 |
62 private: |
72 private: |
63 qint32 mCollectionId; |
73 qint32 mCollectionId; |
64 qint32 mDepth; |
74 qint32 mDepth; |
65 TGlxFilterItemType mFilterType; |
75 TGlxFilterItemType mFilterType; |
66 GlxContextMode mContextMode; |
76 GlxContextMode mContextMode; |
|
77 QString mUri; |
67 }; |
78 }; |
68 |
79 |
69 |
80 |
70 #endif /* GLXMODELPARM_H_ */ |
81 #endif /* GLXMODELPARM_H_ */ |