harvester/contentinfodb/inc/contentinfodbparser.h
changeset 23 d4d56f5e7c55
equal deleted inserted replaced
20:556534771396 23:d4d56f5e7c55
       
     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:  contentinfodb parser.
       
    15  *
       
    16  */
       
    17 #ifndef CONTENTINFODBPARSER_H
       
    18 #define CONTENTINFODBPARSER_H
       
    19 #include <qobject.h>
       
    20 #include <qstringlist.h>
       
    21 #include <qmap.h>
       
    22 #include "contentinfodbcommon.h"
       
    23 CONTENTINFODB_CLASS(ContentinfodbTest)
       
    24 
       
    25 class ContentInfoDbParser : public QObject
       
    26     {
       
    27 Q_OBJECT
       
    28 public:
       
    29 
       
    30     /**
       
    31      * Constructor.
       
    32      * @since S60 ?S60_version.
       
    33      */
       
    34     ContentInfoDbParser();
       
    35 
       
    36     /**
       
    37      * Destructor.
       
    38      * @since S60 ?S60_version.
       
    39      */
       
    40     ~ContentInfoDbParser();
       
    41 
       
    42     /**
       
    43      * parse the xml file.
       
    44      * @param path is the path for xml file.
       
    45      */
       
    46     bool parse(QString path);
       
    47 
       
    48 signals:
       
    49 
       
    50     /**
       
    51      * signal to notify the category details.
       
    52      * @param Qmap is the tagname  and value.
       
    53      */
       
    54     void categoryDetails(QMap<QString, QString> );
       
    55 
       
    56     /**
       
    57      * signal to notify the activity uri details.
       
    58      * @param Qmap is the tagname  and value.
       
    59      */
       
    60     void actionUri(QMap<QString, QString> );
       
    61 
       
    62     /**
       
    63      * signal to notify the field mapping with activity uri's.
       
    64      * @param Qmap is the tagname  and value.
       
    65      */
       
    66     void filedMapping(QString, QStringList);
       
    67 
       
    68     /**
       
    69      * signal to notfy the first line display information.
       
    70      * @param list will be having the field names.
       
    71      */
       
    72     void firstLineMapping(QStringList);
       
    73 
       
    74     /**
       
    75      * signal to notfy the first line relevancy information.
       
    76      * @param field name.
       
    77      * @param boostvalue
       
    78      */
       
    79     void relevancyMapping(QString, QString);
       
    80 
       
    81 private:
       
    82     CONTENTINFODB_FRIEND_CLASS(ContentinfodbTest)
       
    83     };
       
    84 #endif //CONTENTINFODBPARSER_H