inc/NPRStory.h
changeset 0 0049171ecffb
equal deleted inserted replaced
-1:000000000000 0:0049171ecffb
       
     1 /*
       
     2  ============================================================================
       
     3  Name	: NPRStory.h
       
     4  Author	: John Kern
       
     5  
       
     6  Copyright (c) 2009 Symbian Foundation Ltd
       
     7  This component and the accompanying materials are made available
       
     8  under the terms of the License "Eclipse Public License v1.0"
       
     9  which accompanies this distribution, and is available
       
    10  at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    11 
       
    12  Initial Contributors:
       
    13  - Symbian Foundation Ltd - initial contribution.
       
    14  
       
    15  Contributors:
       
    16  - John Kern
       
    17  - Symsource
       
    18  
       
    19  Description : NPR's xml story parser
       
    20  ============================================================================
       
    21  */
       
    22 
       
    23 #ifndef __NPR_STORY_H__
       
    24 #define __NPR_STORY_H__
       
    25 
       
    26 // INCLUDES
       
    27 #include <e32base.h>
       
    28 
       
    29 /**
       
    30  *  CNPRStory
       
    31  * 
       
    32  */
       
    33 class CNPRStory : public CBase
       
    34 	{
       
    35 public:
       
    36 	static CNPRStory* NewL();
       
    37 	static CNPRStory* NewLC();
       
    38 	~CNPRStory();
       
    39 
       
    40 public:	
       
    41 	void SetStoryId(TInt aStoryId) {iStoryId = aStoryId;}
       
    42 	inline TInt StoryId() {return iStoryId;} 
       
    43 
       
    44 	void SetTitleL(const TDesC8& aTitle);
       
    45 	inline const TDesC& Title() {return iTitle;};
       
    46 	
       
    47 	void SetTeaserL(const TDesC8& aTeaser);
       
    48 	inline const TDesC& Teaser() {return iTeaser;};
       
    49 
       
    50 	void SetTextL(const TDesC8& aText);
       
    51 	inline const TDesC& Text() {return iText;};	
       
    52 	
       
    53 	void SetMp3UrlL(const TDesC8& aMp3Url);
       
    54 	inline const TDesC& Mp3Url() {return iMp3Url;};
       
    55 	
       
    56 	void SetThumbnailUrlL(const TDesC8& aThumbUrl);
       
    57 	inline const TDesC& ThumbnailUrl() {return iThumbnailUrl;};
       
    58 	
       
    59 private:
       
    60 	//Constructors
       
    61 	CNPRStory();
       
    62 	void ConstructL();
       
    63 
       
    64 private:
       
    65 	TInt iStoryId; 
       
    66 	RBuf iTitle;
       
    67 	RBuf iTeaser;
       
    68 	RBuf iText;
       
    69 	RBuf iMp3Url; 
       
    70 	RBuf iThumbnailUrl;
       
    71 	};
       
    72 
       
    73 #endif // __NPR_STORY_H__