brandingserver/tools/bsimport/inc/cbsimportmanager.h
changeset 0 e6b17d312c8b
child 21 cfd5c2994f10
equal deleted inserted replaced
-1:000000000000 0:e6b17d312c8b
       
     1 /*
       
     2 * Copyright (c) 2006-2006 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:  Import manager handles the reading, parsing and writing of
       
    15 *                Brand data.
       
    16 *
       
    17 */
       
    18 
       
    19 #ifndef CBSIMPORTMANAGER_H
       
    20 #define CBSIMPORTMANAGER_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <f32file.h>
       
    24 
       
    25 class CMDXMLDocument;
       
    26 class MDesCArray;
       
    27 
       
    28 /**
       
    29  *  Import manager handles the reading, parsing and writing of
       
    30  *  Brand data.
       
    31  *
       
    32  *  @lib brandimporter.exe
       
    33  *  @since S60 v3.2
       
    34  */
       
    35 class CBSImportManager : public CBase
       
    36 {
       
    37 public:
       
    38 
       
    39     static CBSImportManager* NewL();
       
    40     
       
    41     static CBSImportManager* NewLC();
       
    42     
       
    43     ~CBSImportManager();
       
    44 
       
    45     /**
       
    46      * Import XML file and write binary brand file from it.
       
    47      * Overloaded function takes multiple xml files.
       
    48      *
       
    49      * @since S60 v3.2
       
    50      * @param aSrcFile source xml file
       
    51      * @return none
       
    52      */
       
    53     void ImportFileL( const TDesC& aSrcFile );
       
    54     void ImportFileL( const MDesCArray& aSrcFiles );
       
    55 
       
    56 private:
       
    57 
       
    58     void ConstructL();
       
    59     
       
    60     CBSImportManager();
       
    61 
       
    62 private: // data
       
    63         
       
    64     // Own. Filesystem handle
       
    65     RFs iFs;
       
    66     
       
    67     // Own. Parsed source XML document
       
    68     CMDXMLDocument* iDocument;
       
    69 };
       
    70 
       
    71 #endif //CBSIMPORTMANAGER_H