wvuing/wvlogger/Src/CALoggerManagerFactory.cpp
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2003 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:  Factory class for creating logger manager and for getting
       
    15 *				 interfaces for read and write access to history files.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 
       
    22 #include "CALoggerManagerFactory.h"
       
    23 #include "CCALoggerManager.h"
       
    24 
       
    25 // ================= CONSTRUCTORS AND DESTRUCTORS =======================
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // Destructor
       
    29 // -----------------------------------------------------------------------------
       
    30 //
       
    31 CALoggerManagerFactory::~CALoggerManagerFactory()
       
    32     {
       
    33     }
       
    34 // -----------------------------------------------------------------------------
       
    35 // Constructor
       
    36 // -----------------------------------------------------------------------------
       
    37 //
       
    38 CALoggerManagerFactory::CALoggerManagerFactory()
       
    39     {
       
    40     }
       
    41 // -----------------------------------------------------------------------------
       
    42 // CCALoggerManagerFactory::CCALoggerManagerFactory
       
    43 // Copy constructor.
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 CALoggerManagerFactory::CALoggerManagerFactory( const CALoggerManagerFactory&
       
    47                                                 /*aOther*/ )
       
    48     {
       
    49     }
       
    50 // ================= MEMBER FUNCTIONS =======================
       
    51 
       
    52 // -----------------------------------------------------------------------------
       
    53 // Get read instance to access for history data.
       
    54 // -----------------------------------------------------------------------------
       
    55 //
       
    56 EXPORT_C MCALoggerReadInterface* CALoggerManagerFactory::ReadInstanceL(
       
    57     MCALoggerMessageFactory* aMessageFactory , TBool aFirstTime /*EFalse*/ )
       
    58     {
       
    59     return CCALoggerManager::ReadInstanceL( aMessageFactory, aFirstTime );
       
    60     }
       
    61 
       
    62 // -----------------------------------------------------------------------------
       
    63 // Get write instance to access writing history data.
       
    64 // -----------------------------------------------------------------------------
       
    65 //
       
    66 EXPORT_C MCALoggerWriteInterface* CALoggerManagerFactory::WriteInstanceL(
       
    67     MCALoggerMessageFactory* aMessageFactory )
       
    68     {
       
    69     return CCALoggerManager::WriteInstanceL( aMessageFactory );
       
    70     }
       
    71 
       
    72 // -----------------------------------------------------------------------------
       
    73 // For testing only
       
    74 // -----------------------------------------------------------------------------
       
    75 //
       
    76 EXPORT_C void CALoggerManagerFactory::ReleaseInstanceL()
       
    77     {
       
    78     CCALoggerManager::ReleaseInstanceL();
       
    79     }
       
    80 
       
    81 //end of file