author | larspson |
Wed, 13 Oct 2010 13:03:53 +0200 | |
branch | podcatcher_qt_symbian4 |
changeset 226 | 2b2e2171b5a0 |
parent 109 | 223f270fa7ff |
child 342 | 9441fb8fd60d |
permissions | -rw-r--r-- |
2 | 1 |
/* |
2 |
* Copyright (c) 2007-2010 Sebastian Brannstrom, Lars Persson, EmbedDev AB |
|
3 |
* |
|
4 |
* All rights reserved. |
|
5 |
* This component and the accompanying materials are made available |
|
6 |
* under the terms of the License "Eclipse Public License v1.0" |
|
7 |
* which accompanies this distribution, and is available |
|
8 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
9 |
* |
|
10 |
* Initial Contributors: |
|
11 |
* EmbedDev AB - initial contribution. |
|
12 |
* |
|
13 |
* Contributors: |
|
14 |
* |
|
15 |
* Description: |
|
16 |
* |
|
17 |
*/ |
|
18 |
||
19 |
#ifndef _FEEDINFO_H_ |
|
20 |
#define _FEEDINFO_H_ |
|
21 |
||
22 |
#include <e32base.h> |
|
23 |
#include <s32strm.h> |
|
24 |
||
25 |
#include "ImageHandler.h" |
|
26 |
||
27 |
const TInt KFeedTitleLength=256; |
|
28 |
const TInt KFeedUrlLength=1024; |
|
29 |
const TInt KFeedDescriptionLength=2048; |
|
30 |
class CFbsBitmap; |
|
31 |
||
32 |
class CFeedInfo : public CBase, public MImageHandlerCallback |
|
33 |
{ |
|
34 |
public: |
|
35 |
IMPORT_C static CFeedInfo* NewL(); |
|
36 |
IMPORT_C static CFeedInfo* NewLC(); |
|
37 |
~CFeedInfo(); |
|
38 |
IMPORT_C CFeedInfo* CopyL() const; |
|
39 |
IMPORT_C const TDesC& Url() const; |
|
40 |
IMPORT_C void SetUrlL(const TDesC &aUrl); |
|
41 |
||
42 |
IMPORT_C const TDesC& Title() const; |
|
43 |
IMPORT_C void SetTitleL(const TDesC &aTitle); |
|
44 |
||
45 |
IMPORT_C const TDesC& Description() const; |
|
46 |
IMPORT_C void SetDescriptionL(const TDesC &aDescription); |
|
47 |
||
48 |
IMPORT_C const TDesC& ImageUrl() const; |
|
49 |
IMPORT_C void SetImageUrlL(const TDesC &aImageUrl); |
|
50 |
||
51 |
IMPORT_C const TDesC& Link() const; |
|
52 |
IMPORT_C void SetLinkL(const TDesC &aLink); |
|
53 |
||
54 |
IMPORT_C TTime BuildDate() const; |
|
55 |
IMPORT_C void SetBuildDate(TTime aBuildDate); |
|
56 |
||
57 |
IMPORT_C TTime LastUpdated() const; |
|
58 |
IMPORT_C void SetLastUpdated(TTime aUpdated); |
|
59 |
||
60 |
IMPORT_C TUint Uid() const; |
|
61 |
||
62 |
IMPORT_C const TDesC& ImageFileName() const; |
|
97
b52f6033af15
Add so image conversion is done in feedinfo if image already exist.
Lars Persson <lars.persson@embeddev.se>
parents:
93
diff
changeset
|
63 |
IMPORT_C void SetImageFileNameL(const TDesC &aFileName, CPodcastModel* aPodcastModel); |
2 | 64 |
|
65 |
IMPORT_C void SetCustomTitle(); |
|
66 |
IMPORT_C TBool CustomTitle() const; |
|
67 |
||
68 |
IMPORT_C void SetLastError(TInt aLastError); |
|
69 |
IMPORT_C TInt LastError() const; |
|
70 |
||
71 |
IMPORT_C CFbsBitmap* FeedIcon() const; |
|
72 |
IMPORT_C void SetFeedIcon(CFbsBitmap* aBitmapToClone); |
|
73 |
||
74 |
private: |
|
75 |
CFeedInfo(); |
|
76 |
void ConstructL(); |
|
93
bbf5c5204844
We always build the static version of sqlite for now. Further improvements for signaling when icons has been generated so these can be used in the feedview
Lars Persson <lars.persson@embeddev.se>
parents:
91
diff
changeset
|
77 |
void ImageOperationCompleteL(TInt aError, TUint aHandle, CPodcastModel& aPodcastModel); |
2 | 78 |
private: |
79 |
HBufC* iUrl; |
|
80 |
HBufC* iTitle; |
|
81 |
HBufC* iDescription; |
|
82 |
HBufC* iImageUrl; |
|
83 |
HBufC* iImageFileName; |
|
84 |
HBufC* iLink; |
|
85 |
TTime iBuildDate; |
|
86 |
TTime iLastUpdated; |
|
87 |
TUint iUid; |
|
88 |
TBool iCustomTitle; |
|
89 |
TInt iLastError; |
|
90 |
CFbsBitmap* iFeedIcon; |
|
91 |
}; |
|
92 |
||
93 |
typedef RPointerArray<CFeedInfo> RFeedInfoArray; |
|
94 |
||
95 |
#endif |
|
96 |