messagingfw/suplsmshandler/test/testserver/src/Te_WatcherLog.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 simulator class for the CWatcherLog class
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef __TE_WATCHERLOG_H__
       
    19 #define __TE_WATCHERLOG_H__
       
    20 
       
    21 /**
       
    22 @file
       
    23 @internalComponent
       
    24 @prototype
       
    25 */
       
    26 
       
    27 #include <e32base.h>
       
    28 #include <watcher.h>
       
    29 
       
    30 class CTe_WatcherLog;
       
    31 
       
    32 /**
       
    33 A test simulator class for the TWatcherParams class
       
    34 */
       
    35 class TTe_WatcherParams
       
    36 	{
       
    37 public:
       
    38 	/**
       
    39 	Constructor. 
       
    40 	
       
    41 	@param aLog [In] A reference on the CTe_WatcherLog object
       
    42 	*/
       
    43 	inline TTe_WatcherParams(CTe_WatcherLog& aLog) : iLog(aLog) {};
       
    44 	
       
    45 	/** A reference on the CTe_WatcherLog object */
       
    46 	CTe_WatcherLog& iLog;
       
    47 	};
       
    48 	
       
    49 	
       
    50 /**
       
    51 A test simulator class for the CWatcherLog class
       
    52 */
       
    53 class CTe_WatcherLog : public CBase
       
    54 	{
       
    55 public:
       
    56 	static CTe_WatcherLog* NewL();
       
    57 	
       
    58 	void Printf(TRefByValue< const TDesC > aFmt,...);
       
    59 	void Printf(TRefByValue< const TDesC8 > aFmt,...);
       
    60 	TBool IsLogging() const;
       
    61 	
       
    62 private:
       
    63 	CTe_WatcherLog();
       
    64 
       
    65 	};
       
    66 
       
    67 #endif //__TE_WATCHERLOG_H__