epoc32/include/app/calcontent.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:27:01 +0100
branchSymbian2
changeset 3 e1b950c65cb4
parent 2 epoc32/include/calcontent.h@2fe1408b6811
child 4 837f303aceeb
permissions -rw-r--r--
Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __CALCONTENT_H__
    17 #define __CALCONTENT_H__
    18 
    19 #include <e32base.h>
    20 
    21 class RReadStream;
    22 class RWriteStream;
    23 class CAgnContent;
    24 
    25 NONSHARABLE_CLASS(CCalContent) : public CBase
    26 /**
    27 This class holds in memory 8-bit data of any type, or a link to 8-bit
    28 data such as a URI.  The MIME type of the data may also be held to help
    29 callers determine the appropriate application to launch the content.
    30 
    31 Because the data is held in memory, callers should only use this class
    32 to store small amounts of data or a URI to some content elsewhere.
    33 
    34 This class can be used to set an alarm action using
    35 CCalAlarm::SetAlarmAction() (such as a link to an internet
    36 radio station, or a small animated icon).
    37 
    38 @see CCalAlarm
    39 @capability None
    40 @publishedAll
    41 @released
    42 */
    43 	{
    44 public:
    45 	/** Disposition of the data which maybe used while setting an alarm. The data can be a link or inline.
    46 	@publishedPartner
    47 	@released
    48 	*/
    49 	enum TDisposition
    50 		{
    51 		/** URL disposition */
    52 		EDispositionUrl = 0,
    53 		/** Inline disposition */
    54 		EDispositionInline = 1,
    55 		/** Unknown disposition */
    56 		EDispositionUnknown = 15
    57 		};
    58 
    59 	IMPORT_C static CCalContent* NewL();
    60 	IMPORT_C ~CCalContent();
    61 	IMPORT_C void SetContentL(TDesC8* aSmallContent, TDesC8* aContentMIMEType, CCalContent::TDisposition aContentDisposition);
    62 	IMPORT_C const TDesC8& Content() const;
    63 	IMPORT_C const TDesC8& MimeType() const;
    64 	IMPORT_C TDisposition Disposition() const;
    65 	CAgnContent* Impl() const;
    66 	void SetImpl(CAgnContent* aImpl);
    67 
    68 private:
    69 	CCalContent();
    70 	void ConstructL();
    71 
    72 private:
    73 	CAgnContent* iImpl;
    74 	};
    75 
    76 
    77 #endif // __CALCONTENT_H__