messagingfw/suplsmshandler/test/testserver/src/Te_LbsSuplPush.h
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 // Copyright (c) 2007-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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // A test proxy class for the CLbsSuplPush class
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __TE_LBSSUPLPUSH_H__
       
    19 #define __TE_LBSSUPLPUSH_H__
       
    20 
       
    21 /**
       
    22 @file
       
    23 @internalComponent
       
    24 @prototype
       
    25 */
       
    26 
       
    27 #include <lbs/lbssuplpush.h>
       
    28 
       
    29 /**
       
    30 A test proxy class for the CLbsSuplPush class.
       
    31 */
       
    32 class CTe_LbsSuplPush : public CBase, public MLbsSuplPushObserver
       
    33 	{
       
    34 private:
       
    35 	/** A pointer on the external observer of the request status events */
       
    36 	static MLbsSuplPushObserver* iTestObserver;	
       
    37 	
       
    38 public:
       
    39 	static inline void SetTestObserver(MLbsSuplPushObserver* aTestObserver);
       
    40 	static CTe_LbsSuplPush* NewL(TLbsSuplPushChannel aChannel, MLbsSuplPushObserver& aObserver);
       
    41 	virtual ~CTe_LbsSuplPush();
       
    42 	
       
    43 	TInt SuplInit(TLbsSuplPushRequestId& aReqId, const TDesC8& aMsg,TInt aReserved);
       
    44 	
       
    45 private:
       
    46 	CTe_LbsSuplPush(MLbsSuplPushObserver& aObserver);
       
    47 	void ConstructL(TLbsSuplPushChannel aChannel);
       
    48 	
       
    49 	virtual void OnSuplInitComplete(TLbsSuplPushChannel aChannel, TLbsSuplPushRequestId aReqId, 
       
    50 			TInt aError, TInt aReserved);
       
    51 	
       
    52 private:
       
    53 	/** CLbsSuplPush* iImpl is the internal handle to the original object */
       
    54 	CLbsSuplPush* iImpl;
       
    55 	
       
    56 	/** The observer of the request status events */
       
    57 	MLbsSuplPushObserver& iObserver;
       
    58 	};
       
    59 
       
    60 /**
       
    61 Sets the external observer of the request status events.
       
    62 
       
    63 @param aTestObserver [In] A pointer on the observer to set.
       
    64 */
       
    65 inline void CTe_LbsSuplPush::SetTestObserver(MLbsSuplPushObserver* aTestObserver)
       
    66 	{
       
    67 	iTestObserver = aTestObserver;
       
    68 	}
       
    69 
       
    70 #endif //__TE_LBSSUPLPUSH_H__