equal
deleted
inserted
replaced
18 /*glxmlwrapper.cpp*/ |
18 /*glxmlwrapper.cpp*/ |
19 |
19 |
20 //internal includes |
20 //internal includes |
21 #include "glxmlwrapper.h" |
21 #include "glxmlwrapper.h" |
22 #include "glxmlwrapper_p.h" |
22 #include "glxmlwrapper_p.h" |
|
23 #include <qimage.h> |
23 |
24 |
24 // ======== MEMBER FUNCTIONS ======== |
25 // ======== MEMBER FUNCTIONS ======== |
25 |
26 |
26 // --------------------------------------------------------------------------- |
27 // --------------------------------------------------------------------------- |
27 // constructor. |
28 // constructor. |
28 // --------------------------------------------------------------------------- |
29 // --------------------------------------------------------------------------- |
29 // |
30 // |
30 GlxMLWrapper::GlxMLWrapper(int aCollectionId, int aHierarchyId, TGlxFilterItemType aFilterType) |
31 GlxMLWrapper::GlxMLWrapper(int aCollectionId, int aHierarchyId, TGlxFilterItemType aFilterType,QString uri) |
31 { |
32 { |
32 mMLWrapperPrivate = GlxMLWrapperPrivate::Instance(this, aCollectionId, aHierarchyId, aFilterType); |
33 mMLWrapperPrivate = GlxMLWrapperPrivate::Instance(this, aCollectionId, aHierarchyId, aFilterType,uri); |
33 } |
34 } |
34 |
35 |
35 // --------------------------------------------------------------------------- |
36 // --------------------------------------------------------------------------- |
36 // destructor. |
37 // destructor. |
37 // --------------------------------------------------------------------------- |
38 // --------------------------------------------------------------------------- |
65 // |
66 // |
66 HbIcon* GlxMLWrapper::retrieveItemIcon(int index, GlxTBContextType aTBContextType) |
67 HbIcon* GlxMLWrapper::retrieveItemIcon(int index, GlxTBContextType aTBContextType) |
67 { |
68 { |
68 return (mMLWrapperPrivate->RetrieveItemIcon(index,aTBContextType)); |
69 return (mMLWrapperPrivate->RetrieveItemIcon(index,aTBContextType)); |
69 |
70 |
|
71 } |
|
72 |
|
73 QImage GlxMLWrapper::retrieveItemImage(int index, GlxTBContextType aTBContextType) |
|
74 { |
|
75 return (mMLWrapperPrivate->RetrieveItemImage(index,aTBContextType)); |
70 } |
76 } |
71 |
77 |
72 // --------------------------------------------------------------------------- |
78 // --------------------------------------------------------------------------- |
73 // retrieveItemIcon. |
79 // retrieveItemIcon. |
74 // --------------------------------------------------------------------------- |
80 // --------------------------------------------------------------------------- |
118 QVariant var; |
124 QVariant var; |
119 var.setValue(mMLWrapperPrivate->RetrieveBitmap(index)); |
125 var.setValue(mMLWrapperPrivate->RetrieveBitmap(index)); |
120 return var; |
126 return var; |
121 } |
127 } |
122 |
128 |
|
129 int GlxMLWrapper::retrieveListItemCount(int index) |
|
130 { |
|
131 return mMLWrapperPrivate->RetrieveListItemCount( index ) ; |
|
132 } |
|
133 |
|
134 bool GlxMLWrapper::isSystemItem( int aItemIndex ) |
|
135 { |
|
136 return mMLWrapperPrivate->isSystemItem( aItemIndex ); |
|
137 } |
|
138 |
123 // --------------------------------------------------------------------------- |
139 // --------------------------------------------------------------------------- |
124 // getFocusIndex. |
140 // getFocusIndex. |
125 // --------------------------------------------------------------------------- |
141 // --------------------------------------------------------------------------- |
126 // |
142 // |
127 int GlxMLWrapper::getFocusIndex() const |
143 int GlxMLWrapper::getFocusIndex() const |