diff -r 666f914201fb -r 2fe1408b6811 epoc32/include/push/ccontenthandlerbase.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/epoc32/include/push/ccontenthandlerbase.h Tue Mar 16 16:12:26 2010 +0000 @@ -0,0 +1,96 @@ +// Copyright (c) 2001-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: +// + + + +/** + @file + @publishedPartner + @released +*/ + +#ifndef __CCONTENTHANDLERBASE_H__ +#define __CCONTENTHANDLERBASE_H__ + +// System includes +// +#include +#include +#include +#include + + +// Constants +// +/** ECom interface UID for WAP Push Content Handler plug-ins. */ +const TUid KUidPushContentHandlerBase = { 0x101F3E5E }; + + +/** +Abstract base class for WAP Push Content Handler plug-ins. + +A WAP Push Content Handler plug-in processes a WAP Push message that contains +data of a specific media type. A Content Handler plug-in is loaded by a WAP Push Application +Handler plug-in (CPushHandlerBase-derived object), and the message is passed to handle +through HandleMessageL(). + +A WAP Push Content Handling plugin is implemented as an ECom plug-in object derived from +the CContentHandlerBase interface. + +Each Content Handler plug-in should specify the media type that it handles. Content Handler +plug-ins can handle multiple media types: for example, a plug-in to handle SI messages can +specify it's media type as "text/vnd.wap.si||application/vnd.wap.sic". + +@publishedPartner +@released +*/ +class CContentHandlerBase : public CPushHandlerBase + { +public: + + inline static CContentHandlerBase* NewL(const TDesC& aMatchData); + + inline virtual ~CContentHandlerBase(); + + inline void SetParent(TMsvId aParentID); + +protected: // Methods + + inline CContentHandlerBase(); + + inline void Complete(TInt aError); + + inline void IdleComplete(); + +protected: + + /** Parent message server entry. */ + TMsvId iParentID; + + /** Unused. */ + TInt iState; //state machine + + /** The derived class should set this to ETrue on receiving an asynchronous request. */ + TBool iAcknowledge; + + /** Unused. */ + CPushMessage* iMessage; + + }; + +#include + +#endif // __CCONTENTHANDLERBASE_H__ +