XDMEngine/src/XdmDirectory.cpp
branchRCL_3
changeset 17 2669f8761a99
parent 16 2580314736af
child 18 fbd2e7cec7ef
equal deleted inserted replaced
16:2580314736af 17:2669f8761a99
     1 /*
       
     2 * Copyright (c) 2005 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:   XDM Engine directory
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 // INCLUDE FILES
       
    22 #include "XdmEngine.h"
       
    23 
       
    24 // ----------------------------------------------------------
       
    25 // CXdmDirectory::CXdmDirectory
       
    26 // 
       
    27 // ----------------------------------------------------------
       
    28 //
       
    29 EXPORT_C CXdmDirectory::CXdmDirectory( CXdmEngine& aXdmEngine ) :
       
    30                                        CActive( EPriorityStandard ),
       
    31                                        iFileCount( KErrNotReady ),
       
    32                                        iXdmEngine( aXdmEngine )
       
    33     {   
       
    34     }
       
    35 
       
    36 // ----------------------------------------------------------
       
    37 // CXdmDirectory::BaseConstructL
       
    38 // 
       
    39 // ----------------------------------------------------------
       
    40 //
       
    41 EXPORT_C void CXdmDirectory::BaseConstructL( const TDesC& aDirectoryPath )
       
    42     {
       
    43     #ifdef _DEBUG
       
    44         iXdmEngine.WriteToLog( _L8( "CXdmDirectory::ConstructL()" ) );
       
    45     #endif
       
    46     iDirectoryPath = aDirectoryPath.AllocL();
       
    47     iDirectoryPath->Des().Copy( aDirectoryPath );
       
    48     }
       
    49        
       
    50 // ----------------------------------------------------------
       
    51 // CXdmDirectory::CXdmDirectory
       
    52 // 
       
    53 // ----------------------------------------------------------
       
    54 //
       
    55 EXPORT_C CXdmDirectory::~CXdmDirectory()
       
    56     {
       
    57     #ifdef _DEBUG
       
    58         iXdmEngine.WriteToLog( _L8( "CXdmDirectory::~CXdmDirectory()" ) );
       
    59     #endif
       
    60     delete iDirectoryPath;
       
    61     }
       
    62 
       
    63 
       
    64 
       
    65 
       
    66 
       
    67 
       
    68