logsui/EngineSrc/CLogsReaderConfigFactory.cpp
changeset 0 e686773b3f54
equal deleted inserted replaced
-1:000000000000 0:e686773b3f54
       
     1 /*
       
     2 * Copyright (c) 2002 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 *     Produces objects that implement MLogsReaderConfig
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "CLogsReaderConfigFactory.h"
       
    22 #include "CLogsReaderConfig.h"
       
    23 
       
    24 // CONSTANTS
       
    25 
       
    26 EXPORT_C MLogsReaderConfig* CLogsReaderConfigFactory::LogsReaderConfigLC( 
       
    27                                                     const TLogsFilter aFilter )
       
    28     {
       
    29     return CLogsReaderConfig::NewLC( aFilter, NULL, NULL );
       
    30     }
       
    31 
       
    32 EXPORT_C MLogsReaderConfig* CLogsReaderConfigFactory::LogsReaderConfigLC( 
       
    33                                                     const TDesC* aNumber,
       
    34                                                     const TDesC* aRemoteParty )
       
    35     {
       
    36     return CLogsReaderConfig::NewLC( ELogsFilterPerson, aNumber, aRemoteParty );
       
    37     }
       
    38        
       
    39 EXPORT_C MLogsReaderConfig* CLogsReaderConfigFactory::LogsReaderConfigLC( 
       
    40                         const TDesC* aNumber ) 
       
    41     {
       
    42     return CLogsReaderConfig::NewLC( aNumber );
       
    43     }
       
    44 
       
    45 EXPORT_C MLogsReaderConfig* CLogsReaderConfigFactory::LogsReaderConfigLC( 
       
    46                                                     const TDesC* aNumber,
       
    47                                                     const TDesC* aRemoteParty,
       
    48                                                     const TDesC8* aContackLink ) 
       
    49     {
       
    50     return CLogsReaderConfig::NewLC( aNumber, aRemoteParty, aContackLink );
       
    51     }