42 NONSHARABLE_CLASS (CGlxCommandHandlerSlideshow) : |
42 NONSHARABLE_CLASS (CGlxCommandHandlerSlideshow) : |
43 public CGlxMediaListCommandHandler, |
43 public CGlxMediaListCommandHandler, |
44 public MGlxMediaListObserver |
44 public MGlxMediaListObserver |
45 { |
45 { |
46 public: |
46 public: |
47 /** |
47 /** |
48 * Two-phase constructor |
48 * Two-phase constructor |
49 * @param aMediaListProvider object that provides the media list |
49 * @param aMediaListProvider object that provides the media list |
50 * @param aStepBack EFalse if the command handler should not change |
50 * @param aStepBack EFalse if the command handler should not change |
51 * the path's level. E.g. this may depend on whether the view's media |
51 * the path's level. E.g. this may depend on whether the view's media |
52 * list contains media items or if it is a "list of lists" |
52 * list contains media items or if it is a "list of lists" |
53 * @param aHasToolbarItem Whether Command Should be toolbar item (ETrue - if toolbar item) |
53 * @param aHasToolbarItem Whether Command Should be toolbar item (ETrue - if toolbar item) |
54 */ |
54 * @param aFileName resource file |
|
55 */ |
55 IMPORT_C static CGlxCommandHandlerSlideshow* NewL( |
56 IMPORT_C static CGlxCommandHandlerSlideshow* NewL( |
56 MGlxMediaListProvider* aMediaListProvider, TBool aStepBack, TBool aHasToolbarItem ); |
57 MGlxMediaListProvider* aMediaListProvider, TBool aStepBack, |
|
58 TBool aHasToolbarItem, const TDesC& aFileName); |
57 |
59 |
58 /** Destructor */ |
60 /** Destructor */ |
59 IMPORT_C ~CGlxCommandHandlerSlideshow(); |
61 IMPORT_C ~CGlxCommandHandlerSlideshow(); |
60 |
62 |
61 protected: |
63 protected: |
86 void HandleMessageL(const CMPXMessage& aMessage, MGlxMediaList* aList); |
88 void HandleMessageL(const CMPXMessage& aMessage, MGlxMediaList* aList); |
87 void HandlePopulatedL( MGlxMediaList* aList ); |
89 void HandlePopulatedL( MGlxMediaList* aList ); |
88 |
90 |
89 private: |
91 private: |
90 /** Second phase constructor */ |
92 /** Second phase constructor */ |
91 void ConstructL(); |
93 void ConstructL(const TDesC& aFileName); |
92 |
94 |
93 /** Constructor */ |
95 /** Constructor */ |
94 CGlxCommandHandlerSlideshow(MGlxMediaListProvider* aMediaListProvider, |
96 CGlxCommandHandlerSlideshow(MGlxMediaListProvider* aMediaListProvider, |
95 TBool aStepBack, TBool aHasToolbarItem ); |
97 TBool aStepBack, TBool aHasToolbarItem ); |
96 |
98 |