1 // Copyright (c) 2001-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
28 #include <ecom/ecom.h>
29 #include <push/ccontenthandlerbase.h>
30 #include <push/pushlog.h>
31 #include <push/pluginkiller.h>
37 inline CContentHandlerBase::CContentHandlerBase()
46 inline CContentHandlerBase::~CContentHandlerBase()
48 __LOG_PTR_DEBUG("CContentHandlerBase:: Destructor Called");
55 Finds and instantiates an ECom WAP Push Content Handler plug-in that matches
56 the specified media type.
62 WAP Push plug-in that handles the specified media type.
64 inline CContentHandlerBase* CContentHandlerBase::NewL(const TDesC& aMatchData)
66 // Call base class interface CPushHandlerBase::NewL()
67 return REINTERPRET_CAST(CContentHandlerBase*,
68 CPushHandlerBase::NewL(aMatchData, KUidPushContentHandlerBase));
73 Sets a parent message server entry for any output to be saved in the message
77 ID of the parent message server entry. This is stored in iParentID.
79 inline void CContentHandlerBase::SetParent(TMsvId aParentID)
81 iParentID = aParentID;
86 Provides clean-up for the plug-in.
88 A derived class calls this when handling of the message is complete: it deletes
89 the plug-in, and if the asynchronous request iAcknowledge flag is set, sets
90 the status with the passed error code.
95 inline void CContentHandlerBase::Complete(TInt aError)
97 __LOG_PTR_DEBUG("CContentHandlerPluginBase:: Complete Called");
99 SignalConfirmationStatus(aError);
100 iPluginKiller->KillPushPlugin();
105 Utility that completes this active object with KErrNone.
107 inline void CContentHandlerBase::IdleComplete()
109 TRequestStatus* pS = &iStatus;
110 User::RequestComplete(pS,KErrNone);