meetingui/meetingrequestviewers/inc/mrdatalog.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 15 Mar 2010 12:40:18 +0200
branchRCL_3
changeset 13 0f07cd1b5772
parent 0 f979ecb2b13e
permissions -rw-r--r--
Revision: 201009 Kit: 201010

/*
* Copyright (c) 2005 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:  
*     Logging class
*
*/




#ifndef MRDATALOG_H
#define MRDATALOG_H

/////////////////////////////////////////////////////////////////////////////
// #Defines that control printing of additional information to debug stream.
/////////////////////////////////////////////////////////////////////////////

// INCLUDES

#include "icaluilogdef.h"
#include <e32std.h>

// DEFINES

// MRDATA_LOG provides processing information about viewed meeting request data
#ifdef ICALUI_ENABLE_MRDATA_LOGGING

    #define MRDATA_LOG(s) MRDataLog::Log(_L(s))
    #define MRDATA_LOG1(s, v) MRDataLog::Log( _L(s), v )
    #define MRDATA_LOG2(s, v1, v2) MRDataLog::Log( _L(s), v1, v2 )
    
#else

    #define MRDATA_LOG(s)
    #define MRDATA_LOG1(s, v)
    #define MRDATA_LOG2(s, v1, v2)

#endif // ICALUI_ENABLE_MRDATA_LOGGING

// CLASS DECLARATION

/**
* Class offers logging functionality.
*/
class MRDataLog
    {
    public:

        /**
        * Log the message.
		* @param aText text to be written to log.
        */
        static void Log( TRefByValue<const TDesC> aText, ... );

    private: // constructor

		/// Prohibited default constructor
		MRDataLog();

		/// Prohibited copy constructor
		MRDataLog( const MRDataLog& );

		/// Prohibited assignment operator
		MRDataLog& operator=( const MRDataLog& );
    };

#endif // MRDATALOG_H

//  End of File