apicompatanamdw/bcdrivers/os/cellularsrv/IsvTelephonyTest/inc/IsvTelephonyTestMessageHandler.h
changeset 2 0cb2248d0edc
equal deleted inserted replaced
1:61e9400fe245 2:0cb2248d0edc
       
     1 /*
       
     2 * Copyright (c) 2002-2004 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef ISVTELEPHONYTESTMESSAGEHANDLER_H
       
    21 #define ISVTELEPHONYTESTMESSAGEHANDLER_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 // CONSTANTS
       
    27 // Message max length, currently limited by Stif logger and Ui 
       
    28 const TInt KMessageHandlerMaxMessageSize = 254;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33 *  Interface for log/UI message printing.   
       
    34 *
       
    35 *  @lib 
       
    36 *  @since 
       
    37 */
       
    38 class MIsvTelephonyTestMessageHandler 
       
    39     {
       
    40 	public: 
       
    41 	    /**
       
    42 		* Enumeration for log/UI output selection
       
    43 		*/ 
       
    44 		enum TMessageOption 
       
    45 			{
       
    46 			EMessagesOff = 0, 
       
    47 			EMessagesLog, 
       
    48 			EMessagesUi, 
       
    49 			EMessagesLogAndUi 
       
    50 			};
       
    51 	
       
    52     public:
       
    53         /**
       
    54         * Pure virtual functions 
       
    55         */
       
    56         /** 
       
    57         * Outputs messages to Stif UI or log
       
    58         * @param aMessage Contains the message
       
    59         */        
       
    60 		virtual void PrintMessage( const TDesC& aMessage ) = 0;
       
    61 
       
    62         /** 
       
    63         * Outputs messages to Stif UI or log
       
    64         * @param aMessage Contains the message
       
    65         */        
       
    66 		virtual void PrintMessage( TRefByValue<const TDesC> aMessage,... ) = 0; 
       
    67     
       
    68     };
       
    69 
       
    70 #endif      // ISVTELEPHONYTESTMESSAGEHANDLER_H
       
    71             
       
    72 // End of File