application/inc/PodcastListView.h
branch3rded
changeset 175 cd124c4eb6b9
parent 65 bcd88ba95046
child 176 1c8b56cb6409
equal deleted inserted replaced
174:982b1ad423f4 175:cd124c4eb6b9
    21 
    21 
    22 #include <aknview.h>
    22 #include <aknview.h>
    23 #include <aknlists.h> 
    23 #include <aknlists.h> 
    24 #include <eiklbo.h>
    24 #include <eiklbo.h>
    25 #include <aknsbasicbackgroundcontrolcontext.h>
    25 #include <aknsbasicbackgroundcontrolcontext.h>
    26 #include <AknToolbarObserver.h>
       
    27 #include <AknToolbar.h>
       
    28 #include <aknlongtapdetector.h>
       
    29 #include <aknstyluspopupmenu.h>
       
    30 #include <aknprogressdialog.h> 
    26 #include <aknprogressdialog.h> 
    31 #include <aknwaitdialog.h> 
    27 #include <aknwaitdialog.h> 
    32 #include "PodcastModel.h"
    28 #include "PodcastModel.h"
    33 
    29 
    34 class CAknDoubleLargeStyleListBox;
    30 class CAknDoubleLargeStyleListBox;
    61 		
    57 		
    62 		CEikFormattedCellListBox* Listbox();
    58 		CEikFormattedCellListBox* Listbox();
    63 		void ScrollToVisible();
    59 		void ScrollToVisible();
    64     	void Draw(const TRect& aRect) const;
    60     	void Draw(const TRect& aRect) const;
    65     	
    61     	
    66     	void SetLongTapDetectedL(TBool aLongTapDetected);
       
    67 
       
    68     	CEikFormattedCellListBox * iListbox;		
    62     	CEikFormattedCellListBox * iListbox;		
    69 
    63 
    70 	protected:
    64 	protected:
    71 		TTypeUid::Ptr MopSupplyObject( TTypeUid aId );
    65 		TTypeUid::Ptr MopSupplyObject( TTypeUid aId );
    72 		virtual void HandlePointerEventL(const TPointerEvent& aPointerEvent);
    66 		virtual void HandlePointerEventL(const TPointerEvent& aPointerEvent);
    73 
    67 
    74 	private:
    68 	private:
    75 		MKeyEventListener* iKeyEventListener;
    69 		MKeyEventListener* iKeyEventListener;
    76 		MPointerListener* iPointerListener;
    70 		MPointerListener* iPointerListener;
    77         CAknsBasicBackgroundControlContext* iBgContext;
    71         CAknsBasicBackgroundControlContext* iBgContext;
    78 		 TBool iLongTapDetected;
       
    79 
    72 
    80 	};
    73 	};
    81 
    74 
    82 
    75 
    83 class CPodcastListView : public CAknView, public MAknToolbarObserver,
    76 class CPodcastListView : public CAknView, public MPointerListener,
    84 public MPointerListener, public MAknLongTapDetectorCallBack, 
       
    85 public MProgressDialogCallback, public MKeyEventListener
    77 public MProgressDialogCallback, public MKeyEventListener
    86     {
    78     {
    87     public: 
    79     public: 
    88         ~CPodcastListView();
    80         ~CPodcastListView();
    89 		virtual void UpdateToolbar(TBool aVisible=ETrue) = 0;
       
    90 		TBool IsVisible();
    81 		TBool IsVisible();
    91 		
    82 		
    92 	protected:
    83 	protected:
    93 	    void ConstructL();
    84 	    void ConstructL();
    94 		CPodcastListView();	
    85 		CPodcastListView();	
   135         void RunAboutDialogL();
   126         void RunAboutDialogL();
   136         void SetEmptyTextL(TInt aResourceId);
   127         void SetEmptyTextL(TInt aResourceId);
   137         void ShowOkMessageL(TDesC &aText);
   128         void ShowOkMessageL(TDesC &aText);
   138         void ShowErrorMessageL(TDesC &aText);
   129         void ShowErrorMessageL(TDesC &aText);
   139         TInt ShowQueryMessageL(TDesC &aText);
   130         TInt ShowQueryMessageL(TDesC &aText);
   140 		void CloseToolbarExtension();
       
   141 		void ShowWaitDialogL(TDesC &aWaitText);
   131 		void ShowWaitDialogL(TDesC &aWaitText);
   142 		void CloseWaitDialog();
   132 		void CloseWaitDialog();
   143 
       
   144 		// From MAknLongTapDetectorCallBack
       
   145 		virtual void HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& aPenEventScreenLocation );
       
   146 		 
   133 		 
   147 		// from MProgressDialogCallback		
   134 		// from MProgressDialogCallback		
   148 		void DialogDismissedL(TInt /*aButtonId*/) {}
   135 		void DialogDismissedL(TInt /*aButtonId*/) {}
   149 
   136 
   150 		// from MKeyEventListener
   137 		// from MKeyEventListener
   164 		 CDesCArray* iItemArray;
   151 		 CDesCArray* iItemArray;
   165 		 RArray<TUint> iItemIdArray;
   152 		 RArray<TUint> iItemIdArray;
   166 		 
   153 		 
   167 		 TBuf<1024> iListboxFormatbuffer;
   154 		 TBuf<1024> iListboxFormatbuffer;
   168 		 
   155 		 
   169 		 CAknToolbar *iToolbar;
       
   170 		 CAknStylusPopUpMenu* iStylusPopupMenu;
       
   171 		 CAknLongTapDetector* iLongTapDetector;
       
   172 		 CAknWaitDialog *iWaitDialog;
   156 		 CAknWaitDialog *iWaitDialog;
   173 
   157 
   174     };
   158     };
   175 #endif // PODCASTBASEVIEWH
   159 #endif // PODCASTBASEVIEWH
   176 
   160