application/inc/PodcastAppui.h
changeset 35 66c5303f3610
parent 24 ca50ea154990
child 82 d87e984bd8b8
equal deleted inserted replaced
30:7bca37ba5fa9 35:66c5303f3610
    56 class CTimeout;
    56 class CTimeout;
    57 
    57 
    58 class MTimeoutObserver
    58 class MTimeoutObserver
    59 {
    59 {
    60 public:
    60 public:
    61     virtual void HandleTimeout(const CTimeout& aId, TInt aError)=0;
    61     virtual void HandleTimeoutL(const CTimeout& aId, TInt aError)=0;
    62 protected:
    62 protected:
    63     virtual ~MTimeoutObserver() {}
    63     virtual ~MTimeoutObserver() {}
    64 };
    64 };
    65 
    65 
    66 class CTimeout : public CTimer
    66 class CTimeout : public CTimer
    97     	}
    97     	}
    98     
    98     
    99     void RunL()
    99     void RunL()
   100     	{
   100     	{
   101     	    TInt r=iStatus.Int();
   101     	    TInt r=iStatus.Int();
   102     	    iObserver.HandleTimeout(*this, r);
   102     	    iObserver.HandleTimeoutL(*this, r);
   103     	}
   103     	}
   104 
   104 
   105 protected:
   105 protected:
   106     MTimeoutObserver& iObserver;
   106     MTimeoutObserver& iObserver;
   107 };
   107 };
   113     	CPodcastAppUi(CPodcastModel* aPodcastModel);
   113     	CPodcastAppUi(CPodcastModel* aPodcastModel);
   114         void ConstructL();
   114         void ConstructL();
   115        ~CPodcastAppUi();
   115        ~CPodcastAppUi();
   116 
   116 
   117        void SetActiveTab(TInt aIndex);
   117        void SetActiveTab(TInt aIndex);
   118        void UpdateQueueTab(TInt aQueueLength);
   118        void UpdateQueueTabL(TInt aQueueLength);
   119        void TabLeft();
   119        void TabLeftL();
   120        void TabRight();
   120        void TabRightL();
   121        void NaviSetTextL(TInt aResourceId);
   121        void NaviSetTextL(TInt aResourceId);
   122        void NaviShowTabGroupL();
   122        void NaviShowTabGroupL();
   123        
   123        
   124     private:
   124     private:
   125         // From MEikMenuObserver
   125         // From MEikMenuObserver
   126         void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
   126         void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);
   127         void TabChangedL (TInt aIndex);
   127         void TabChangedL (TInt aIndex);
   128         CArrayFix<TCoeHelpContext>* HelpContextL() const;
   128         CArrayFix<TCoeHelpContext>* HelpContextL() const;
   129         void HandleCommandL(TInt aCommand);
   129         void HandleCommandL(TInt aCommand);
   130     protected:
   130     protected:
   131     	void HandleTimeout(const CTimeout& aId, TInt aError);
   131     	void HandleTimeoutL(const CTimeout& aId, TInt aError);
   132 
   132 
   133     protected:
   133     protected:
   134     	// from MConnectionObserver
   134     	// from MConnectionObserver
   135     	
   135     	
   136     	void ConnectionSelectionStart();
   136     	void ConnectionSelectionStart();