epoc32/include/calcontent.h
branchSymbian2
changeset 2 2fe1408b6811
parent 0 061f57f2323e
     1.1 --- a/epoc32/include/calcontent.h	Tue Nov 24 13:55:44 2009 +0000
     1.2 +++ b/epoc32/include/calcontent.h	Tue Mar 16 16:12:26 2010 +0000
     1.3 @@ -1,1 +1,77 @@
     1.4 -calcontent.h
     1.5 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +// All rights reserved.
     1.7 +// This component and the accompanying materials are made available
     1.8 +// 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
     1.9 +// which accompanies this distribution, and is available
    1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
    1.11 +//
    1.12 +// Initial Contributors:
    1.13 +// Nokia Corporation - initial contribution.
    1.14 +//
    1.15 +// Contributors:
    1.16 +//
    1.17 +// Description:
    1.18 +//
    1.19 +
    1.20 +#ifndef __CALCONTENT_H__
    1.21 +#define __CALCONTENT_H__
    1.22 +
    1.23 +#include <e32base.h>
    1.24 +
    1.25 +class RReadStream;
    1.26 +class RWriteStream;
    1.27 +class CAgnContent;
    1.28 +
    1.29 +NONSHARABLE_CLASS(CCalContent) : public CBase
    1.30 +/**
    1.31 +This class holds in memory 8-bit data of any type, or a link to 8-bit
    1.32 +data such as a URI.  The MIME type of the data may also be held to help
    1.33 +callers determine the appropriate application to launch the content.
    1.34 +
    1.35 +Because the data is held in memory, callers should only use this class
    1.36 +to store small amounts of data or a URI to some content elsewhere.
    1.37 +
    1.38 +This class can be used to set an alarm action using
    1.39 +CCalAlarm::SetAlarmAction() (such as a link to an internet
    1.40 +radio station, or a small animated icon).
    1.41 +
    1.42 +@see CCalAlarm
    1.43 +@capability None
    1.44 +@publishedAll
    1.45 +@released
    1.46 +*/
    1.47 +	{
    1.48 +public:
    1.49 +	/** Disposition of the data which maybe used while setting an alarm. The data can be a link or inline.
    1.50 +	@publishedPartner
    1.51 +	@released
    1.52 +	*/
    1.53 +	enum TDisposition
    1.54 +		{
    1.55 +		/** URL disposition */
    1.56 +		EDispositionUrl = 0,
    1.57 +		/** Inline disposition */
    1.58 +		EDispositionInline = 1,
    1.59 +		/** Unknown disposition */
    1.60 +		EDispositionUnknown = 15
    1.61 +		};
    1.62 +
    1.63 +	IMPORT_C static CCalContent* NewL();
    1.64 +	IMPORT_C ~CCalContent();
    1.65 +	IMPORT_C void SetContentL(TDesC8* aSmallContent, TDesC8* aContentMIMEType, CCalContent::TDisposition aContentDisposition);
    1.66 +	IMPORT_C const TDesC8& Content() const;
    1.67 +	IMPORT_C const TDesC8& MimeType() const;
    1.68 +	IMPORT_C TDisposition Disposition() const;
    1.69 +	CAgnContent* Impl() const;
    1.70 +	void SetImpl(CAgnContent* aImpl);
    1.71 +
    1.72 +private:
    1.73 +	CCalContent();
    1.74 +	void ConstructL();
    1.75 +
    1.76 +private:
    1.77 +	CAgnContent* iImpl;
    1.78 +	};
    1.79 +
    1.80 +
    1.81 +#endif // __CALCONTENT_H__