mpx/mpxviewframeworkqt/inc/mpxplugindataparser.h
branchRCL_3
changeset 56 63223d4fd956
parent 55 6c1dfe4da5dd
child 59 666f9a5a90a9
equal deleted inserted replaced
55:6c1dfe4da5dd 56:63223d4fd956
     1 /*
       
     2 * Copyright (c) 2009 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 *
       
    16 */
       
    17 
       
    18 #ifndef QMPXPLUDINDATAPARSER_H
       
    19 #define QMPXPLUDINDATAPARSER_H
       
    20 
       
    21 class MpxPluginData;
       
    22 class QString;
       
    23 class QStringRef;
       
    24 
       
    25 /**
       
    26  *  QMpxPluginDataParser
       
    27  * 
       
    28  */
       
    29 class MpxPluginDataParser
       
    30     {
       
    31 public:
       
    32 
       
    33     /**
       
    34      * Constructor
       
    35      */
       
    36     MpxPluginDataParser();
       
    37         
       
    38     /**
       
    39      * Destructor.
       
    40      */
       
    41     ~MpxPluginDataParser();
       
    42     
       
    43     const MpxPluginData* data() const;
       
    44     
       
    45     MpxPluginData* takeData();
       
    46     
       
    47     void parse( const QString& aData );
       
    48 private:
       
    49     bool findNextNode( const QString& aSrc, int& aOffset, QStringRef& aTagName, QStringRef& aTagContent ) const;
       
    50     bool parseInt( int& aDst, const QString& aSrc ) const ;
       
    51     void parseSupportedId( const QString& aValue );
       
    52 private:
       
    53     MpxPluginData* dataPtr;
       
    54     };
       
    55 
       
    56 #endif // QMPXPLUDINDATAPARSER_H