phoneuis/bubblemanager2/tsrc/bubbletest2/bubbletester/bubbledata.h
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 40 bab96b7ed1a4
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
     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:  Animated icon.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef BUBBLEDATA_H
       
    19 #define BUBBLEDATA_H
       
    20 
       
    21 #include <QObject>
       
    22 #include <QDomDocument>
       
    23 
       
    24 class BubbleData : public QObject
       
    25 {
       
    26 public:
       
    27     BubbleData( QObject *parent = 0 );
       
    28 
       
    29     void createDomFromFile(QIODevice *device);
       
    30 
       
    31     // generic
       
    32     QString dataField(const QString& fieldName);
       
    33     void setDataField(const QString& fieldName, const QString& value);
       
    34 
       
    35     // bubble related
       
    36     QString dataField(const QString&  bubble, const QString& fieldName);
       
    37     void setDataField(const QString&  bubble, const QString& fieldName, const QString& value);
       
    38 
       
    39     const QDomDocument& document() const;
       
    40 
       
    41 private:
       
    42     QDomElement bubbleElement(const QString&  bubble);
       
    43 
       
    44 private:
       
    45     QDomDocument mDomDocument;
       
    46 };
       
    47 
       
    48 #endif // BUBBLEDATA_H