equal
deleted
inserted
replaced
23 #include <commdb.h> |
23 #include <commdb.h> |
24 #include <CommDbConnPref.h> |
24 #include <CommDbConnPref.h> |
25 #include <es_sock.h> |
25 #include <es_sock.h> |
26 #include <http/rhttpsession.h> |
26 #include <http/rhttpsession.h> |
27 #include <cmmanager.h> |
27 #include <cmmanager.h> |
|
28 #include <aknserverapp.h> // MAknServerAppExitObserver |
|
29 #include <DocumentHandler.h> |
28 |
30 |
29 #include "FeedInfo.h" |
31 #include "FeedInfo.h" |
30 #include "ShowInfo.h" |
32 #include "ShowInfo.h" |
31 #include "debug.h" |
33 #include "debug.h" |
32 #include <sqlite3.h> |
34 #include <sqlite3.h> |
50 }; |
52 }; |
51 |
53 |
52 /** |
54 /** |
53 * This class handles application storage needs and ownership of audioplayer, resource lists etc. |
55 * This class handles application storage needs and ownership of audioplayer, resource lists etc. |
54 */ |
56 */ |
55 class CPodcastModel : public CBase, public MImageHandlerCallback |
57 class CPodcastModel : public CBase, public MImageHandlerCallback, public MAknServerAppExitObserver |
56 { |
58 { |
57 public: |
59 public: |
58 IMPORT_C static CPodcastModel* NewL(); |
60 IMPORT_C static CPodcastModel* NewL(); |
59 IMPORT_C ~CPodcastModel(); |
61 IMPORT_C ~CPodcastModel(); |
60 IMPORT_C CFeedEngine& FeedEngine(); |
62 IMPORT_C CFeedEngine& FeedEngine(); |
99 void ConstructL(); |
101 void ConstructL(); |
100 void ResetDB(); |
102 void ResetDB(); |
101 void OpenDBL(); |
103 void OpenDBL(); |
102 // From ImageHandler |
104 // From ImageHandler |
103 void ImageOperationCompleteL(TInt aError, TUint aHandle, CPodcastModel& aPodcastModel); |
105 void ImageOperationCompleteL(TInt aError, TUint aHandle, CPodcastModel& aPodcastModel); |
|
106 |
|
107 private: // Functions from base classes |
|
108 /** |
|
109 * From MAknServerAppExitObserver. |
|
110 * Handles the exit of a connected server application. |
|
111 */ |
|
112 void HandleServerAppExit(TInt aReason); |
|
113 |
|
114 private: // Private functions |
|
115 void LaunchFileEmbeddedL(const TDesC& aFilename); |
|
116 |
104 private: |
117 private: |
105 CShowInfo* iPlayingPodcast; |
118 CShowInfo* iPlayingPodcast; |
106 |
119 |
107 CFeedEngine* iFeedEngine; |
120 CFeedEngine* iFeedEngine; |
108 CShowEngine* iShowEngine; |
121 CShowEngine* iShowEngine; |
121 |
134 |
122 sqlite3* iDB; |
135 sqlite3* iDB; |
123 RCmManager iCmManager; |
136 RCmManager iCmManager; |
124 TBool iIsFirstStartup; |
137 TBool iIsFirstStartup; |
125 CImageHandler* iImageHandler; |
138 CImageHandler* iImageHandler; |
|
139 CDocumentHandler* iDocHandler; |
126 }; |
140 }; |
127 |
141 |
128 #endif // PODCASTMODEL_H |
142 #endif // PODCASTMODEL_H |