#ifndef BLOGSEARCHLISTMODEL_H
#define BLOGSEARCHLISTMODEL_H

#include <QAbstractListModel>
#include <QStringList>
#include <QNetworkAccessManager>
#include <QUrl>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QtGui>
#include <QDomDocument>

class blogSearchListModel : public QAbstractListModel
{
    Q_OBJECT
public:
    blogSearchListModel(const QStringList &nameString,const QStringList &nameEnString,const QStringList &addressString,const QStringList &countString,const QPixmap p[],QObject *parent = 0);
    //blogSearchListModel(const QStringList &strings, QObject *parent = 0);
    int rowCount ( const QModelIndex & parent = QModelIndex() ) const;
    QVariant data ( const QModelIndex & index, int role = Qt::DisplayRole ) const ;

    void setStrings(const QStringList & strings);
private:
    QStringList nameString;
    QStringList nameEnString;
    QStringList addressString;
    QStringList countString;
    QPixmap _p[150];
};

#endif // BLOGSEARCHLISTMODEL_H
