diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/calcontent.h --- a/epoc32/include/calcontent.h Tue Nov 24 13:55:44 2009 +0000 +++ b/epoc32/include/calcontent.h Tue Mar 16 16:12:26 2010 +0000 @@ -1,1 +1,77 @@ -calcontent.h +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// 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 +// which accompanies this distribution, and is available +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __CALCONTENT_H__ +#define __CALCONTENT_H__ + +#include + +class RReadStream; +class RWriteStream; +class CAgnContent; + +NONSHARABLE_CLASS(CCalContent) : public CBase +/** +This class holds in memory 8-bit data of any type, or a link to 8-bit +data such as a URI. The MIME type of the data may also be held to help +callers determine the appropriate application to launch the content. + +Because the data is held in memory, callers should only use this class +to store small amounts of data or a URI to some content elsewhere. + +This class can be used to set an alarm action using +CCalAlarm::SetAlarmAction() (such as a link to an internet +radio station, or a small animated icon). + +@see CCalAlarm +@capability None +@publishedAll +@released +*/ + { +public: + /** Disposition of the data which maybe used while setting an alarm. The data can be a link or inline. + @publishedPartner + @released + */ + enum TDisposition + { + /** URL disposition */ + EDispositionUrl = 0, + /** Inline disposition */ + EDispositionInline = 1, + /** Unknown disposition */ + EDispositionUnknown = 15 + }; + + IMPORT_C static CCalContent* NewL(); + IMPORT_C ~CCalContent(); + IMPORT_C void SetContentL(TDesC8* aSmallContent, TDesC8* aContentMIMEType, CCalContent::TDisposition aContentDisposition); + IMPORT_C const TDesC8& Content() const; + IMPORT_C const TDesC8& MimeType() const; + IMPORT_C TDisposition Disposition() const; + CAgnContent* Impl() const; + void SetImpl(CAgnContent* aImpl); + +private: + CCalContent(); + void ConstructL(); + +private: + CAgnContent* iImpl; + }; + + +#endif // __CALCONTENT_H__