engine/inc/PodcastModel.h
changeset 66 41d00e97e2f7
parent 63 a8538f50e2ba
child 76 223f270fa7ff
equal deleted inserted replaced
65:523e04129df6 66:41d00e97e2f7
    34 
    34 
    35 // SQLite leaks memory when sorting, so to test our own memory leaks we need to disable this
    35 // SQLite leaks memory when sorting, so to test our own memory leaks we need to disable this
    36 //#define DONT_SORT_SQL
    36 //#define DONT_SORT_SQL
    37 class RCmManager;
    37 class RCmManager;
    38 class CFeedEngine;
    38 class CFeedEngine;
    39 class CSoundEngine;
       
    40 class CShowEngine;
    39 class CShowEngine;
    41 class CSettingsEngine;
    40 class CSettingsEngine;
    42 class CCommsDatabase;
    41 class CCommsDatabase;
    43 class CConnectionEngine;
    42 class CConnectionEngine;
    44 
    43 
    58 public:
    57 public:
    59 	IMPORT_C static CPodcastModel* NewL();
    58 	IMPORT_C static CPodcastModel* NewL();
    60 	IMPORT_C ~CPodcastModel();
    59 	IMPORT_C ~CPodcastModel();
    61 	IMPORT_C CFeedEngine& FeedEngine();
    60 	IMPORT_C CFeedEngine& FeedEngine();
    62 	IMPORT_C CShowEngine& ShowEngine();
    61 	IMPORT_C CShowEngine& ShowEngine();
    63 	IMPORT_C CSoundEngine& SoundEngine();
       
    64 	IMPORT_C CSettingsEngine& SettingsEngine();
    62 	IMPORT_C CSettingsEngine& SettingsEngine();
    65 	IMPORT_C CConnectionEngine& ConnectionEngine();
    63 	IMPORT_C CConnectionEngine& ConnectionEngine();
    66 	IMPORT_C CShowInfo* PlayingPodcast();
    64 	IMPORT_C CShowInfo* PlayingPodcast();
    67 	IMPORT_C void SetPlayingPodcast(CShowInfo* aPodcast);
    65 	IMPORT_C void SetPlayingPodcast(CShowInfo* aPodcast);
    68 	IMPORT_C void PlayPausePodcastL(CShowInfo * aPodcast, TBool aPlayOnInit = EFalse);
    66 	IMPORT_C void PlayPausePodcastL(CShowInfo * aPodcast, TBool aPlayOnInit = EFalse);
    91 	IMPORT_C void GetAllShowsL();
    89 	IMPORT_C void GetAllShowsL();
    92 	IMPORT_C void GetNewShowsL();
    90 	IMPORT_C void GetNewShowsL();
    93 	IMPORT_C void GetShowsDownloadedL();
    91 	IMPORT_C void GetShowsDownloadedL();
    94 	IMPORT_C void GetShowsDownloadingL();
    92 	IMPORT_C void GetShowsDownloadingL();
    95 	IMPORT_C void GetShowsByFeedL(TUint aFeedUid);
    93 	IMPORT_C void GetShowsByFeedL(TUint aFeedUid);
    96 	IMPORT_C void MarkSelectionPlayed();
    94 	IMPORT_C void MarkSelectionPlayedL();
    97 	
    95 	
    98 	TInt FindActiveShowByUid(TUint aUid);
    96 	TInt FindActiveShowByUid(TUint aUid);
    99 	IMPORT_C TBool IsFirstStartup();
    97 	IMPORT_C TBool IsFirstStartup();
   100 	IMPORT_C CImageHandler& ImageHandler();
    98 	IMPORT_C CImageHandler& ImageHandler();
   101 protected:
    99 protected:
   106 private:	
   104 private:	
   107    CShowInfo* iPlayingPodcast;
   105    CShowInfo* iPlayingPodcast;
   108    
   106    
   109    CFeedEngine* iFeedEngine;
   107    CFeedEngine* iFeedEngine;
   110    CShowEngine* iShowEngine;
   108    CShowEngine* iShowEngine;
   111    CSoundEngine* iSoundEngine;
       
   112    CSettingsEngine *iSettingsEngine;
   109    CSettingsEngine *iSettingsEngine;
   113    CConnectionEngine* iConnectionEngine;
   110    CConnectionEngine* iConnectionEngine;
   114    RShowInfoArray iActiveShowList;
   111    RShowInfoArray iActiveShowList;
   115    CFeedInfo *iActiveFeed;   
   112    CFeedInfo *iActiveFeed;   
   116    
   113