diff -r 000000000000 -r 8e480a14352b messagingfw/wappushfw/plugins/PushAppHandler/CUAAppHandler.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/messagingfw/wappushfw/plugins/PushAppHandler/CUAAppHandler.h Mon Jan 18 20:36:02 2010 +0200 @@ -0,0 +1,95 @@ +// 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 "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// + +#ifndef __CUAAPPHANDLER_H__ +#define __CUAAPPHANDLER_H__ + +// System includes +#include +#include + +// Local includes + + +// Forward class declarations +// +class CContentHandlerBase; + +// Constants +// +const TUid KUidPushUAAppHandler = { 0x101F3E5D }; +// Note:Changing the Order of the AppId may cause TMatchParams in the dispatcher not to find the right Id +_LIT(KUAAppHandlerName,"x-wap-application:*||0x00000002||x-wap-application:wml.ua||0x00000000"); +_LIT(KUAAppHandlerData,"X-WAP-Application-ID"); + +/** + * CUAAppHandler Handles User Agent Applications. + * + */ +//##ModelId=3B659E6D024D +class CUAAppHandler : public CPushHandlerBase +/** +@internalComponent +@released +*/ + { +public: // Methods + + //##ModelId=3B659E6D029F + static CUAAppHandler* NewL(); + + //##ModelId=3B659E6D0294 + virtual ~CUAAppHandler(); + +private: // Methods from CPushHandlerBase + + //##ModelId=3B659E6D0278 + void HandleMessageL(CPushMessage* aPushMsg, TRequestStatus& aStatus); + + //##ModelId=3B659E6D0277 + void CancelHandleMessage(); + + //##ModelId=3B659E6D0281 + void HandleMessageL(CPushMessage* aPushMsg); + + virtual void CPushHandlerBase_Reserved1(); + + virtual void CPushHandlerBase_Reserved2(); + +private: // Methods from CActive + + //##ModelId=3B659E6D0276 + void DoCancel(); + + //##ModelId=3B659E6D0275 + void RunL(); + +private: // Methods + + //##ModelId=3B659E6D026C + CUAAppHandler(); + + //##ModelId=3B659E6D026B + void ConstructL(); + +private: // Attributes + + //Note: iContentHandlerPi Pointer is Not Owned by this Class + //##ModelId=3B659E6D025A + CContentHandlerBase* iContentHandlerPi; + + }; + +#endif // __CUAAPPHANDLER_H__