homescreenpluginsrv/hspstools/inc/hspslogbusrdebug.h
changeset 0 79c6a41cd166
equal deleted inserted replaced
-1:000000000000 0:79c6a41cd166
       
     1 /*
       
     2 * Copyright (c) 2008 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 #ifndef HSPS_LOGBUSRDEBUG_H
       
    20 #define HSPS_LOGBUSRDEBUG_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <hspslogbus.h>
       
    24 #include <e32std.h>
       
    25 #include <e32base.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30  * ChspsLogBus implementation that logs into RDebug.
       
    31  * 
       
    32  * @lib hspsTools.lib
       
    33  * @since S60 5.0
       
    34  * @ingroup group_homescreenpluginservice_tools
       
    35  */
       
    36 class ChspsLogBusRDebug : public ChspsLogBus
       
    37     {
       
    38 public:
       
    39     // Constructors and destructor
       
    40 
       
    41     /**
       
    42      * Destructor.
       
    43      */
       
    44     IMPORT_C ~ChspsLogBusRDebug();
       
    45 
       
    46     /**
       
    47      * Two-phased constructor.
       
    48      * 
       
    49      * @since S60 5.0
       
    50      */
       
    51     IMPORT_C static ChspsLogBusRDebug* NewL();
       
    52 
       
    53     /**
       
    54      * Two-phased constructor.
       
    55      * 
       
    56      * @since S60 5.0
       
    57      */
       
    58     IMPORT_C static ChspsLogBusRDebug* NewLC();
       
    59 
       
    60 private: // Methods.
       
    61     /**
       
    62      * From ChspsLogBus.
       
    63      * 
       
    64      * This method must be overwritten in inherited class (implementation).
       
    65      * Implementation must log given string using logging channel of
       
    66      * it's choice.
       
    67      * 
       
    68      * @param aMessage Message to be logged.
       
    69      */
       
    70     virtual void _LogText( const TDesC& aMessage); 
       
    71     
       
    72     /**
       
    73      * Constructor for performing 1st stage construction
       
    74      */
       
    75     ChspsLogBusRDebug();
       
    76 
       
    77     /**
       
    78      * EPOC default constructor for performing 2nd stage construction
       
    79      */
       
    80     void ConstructL();
       
    81     };
       
    82 
       
    83 #endif // HSPS_LOGBUSRDEBUG_H