localconnectivityservice/obexsendservices/obexservicesendutils/inc/BTSUXmlParser.h
branchRCL_3
changeset 39 4096754ee773
parent 38 3dcb815346df
child 40 52a167391590
equal deleted inserted replaced
38:3dcb815346df 39:4096754ee773
     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:  XML parser
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef BTSU_XML_PARSER_H
       
    20 #define BTSU_XML_PARSER_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <e32std.h>
       
    24 #include <e32base.h>
       
    25 #include <badesca.h>
       
    26 //#include <RXMLReader.h>
       
    27 #include <f32file.h>
       
    28 #include <xml/parser.h>
       
    29  
       
    30 #include "BTServiceUtils.h"
       
    31 
       
    32 // CLASS DECLARATION
       
    33 
       
    34 /**
       
    35 *  A class for executing simple predetermined xml parsing tasks.
       
    36 */
       
    37 NONSHARABLE_CLASS (CBTSUXmlParser) : public CBase
       
    38     {
       
    39     public:  // Constructors and destructor
       
    40         
       
    41         /**
       
    42         * Two-phased constructor.
       
    43         */
       
    44         static CBTSUXmlParser* NewL();
       
    45         
       
    46         /**
       
    47         * Destructor.
       
    48         */
       
    49         virtual ~CBTSUXmlParser();
       
    50 
       
    51      public: // New functions
       
    52         
       
    53         /**
       
    54         * Finds and collects image capabilites from the file.
       
    55         * @param aFileName The name of the file to be parsed.
       
    56         * @return A pointer to the list.
       
    57         */
       
    58         CDesCArrayFlat* GetCapabilityListL( const TDesC& aFileName );
       
    59 
       
    60 		
       
    61         /**
       
    62         * Finds and collects image capabilites from the file.
       
    63         * @param aFileName The name of the file to be parsed.
       
    64         * @return A pointer to the list.
       
    65         */        
       
    66         RArray<TBTSUImageCap>* GetImgCapabilityListL( const TDesC& aFileName );
       
    67 
       
    68         /**
       
    69         * Finds and collects paths to objects referenced in the file.
       
    70         * @param aFileName The name of the file to be parsed.
       
    71         * @return A pointer to the list.
       
    72         */
       
    73         CDesCArrayFlat* GetRefObjectListL( const TDesC& aFileName );
       
    74 
       
    75     private:
       
    76 
       
    77         /**
       
    78         * C++ default constructor.
       
    79         */
       
    80         CBTSUXmlParser();
       
    81 
       
    82         /**
       
    83         * By default Symbian 2nd phase constructor is private.
       
    84         */
       
    85         void ConstructL();
       
    86 
       
    87      private: // Data
       
    88 
       
    89         RFs        iFileSession;
       
    90     };
       
    91 
       
    92 #endif      // BTSU_XML_PARSER_H
       
    93             
       
    94 // End of File