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