#ifndef POSTSEARCHLISTMODEL_H
#define POSTSEARCHLISTMODEL_H

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

class postSearchListModel : public QAbstractListModel
{
    Q_OBJECT
public:
    postSearchListModel(const QStringList &nameString,const QStringList &areaString,const QStringList &sizeString,const QStringList &roomString,const QStringList &priceString,const QStringList &pricePerSizeString,const QStringList &strings,const QStringList &suiteString,const QPixmap p[],QObject *parent = 0);
    //postSearchListModel(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 areaString;
    QStringList sizeString;
    QStringList roomString;
    QStringList priceString;
    QStringList stringList;
    QStringList suiteString;
    QStringList pricePerSizeString;
    QPixmap _p[150];
    QNetworkAccessManager *manager;
    bool load;





};

#endif // POSTSEARCHLISTMODEL_H
