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

class tradeListModel : public QAbstractListModel
{
    Q_OBJECT
public:
    tradeListModel(const QStringList &addressString,const QStringList &dateString,
                   const QStringList &sizeString,const QStringList &priceString,
                   const QStringList &ppsString,const QStringList &typeString,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 addressString;
    QStringList dateString;
    QStringList sizeString;
    QStringList priceString;
    QStringList ppsString;
    QStringList typeString;
    int size;
};

#endif // TRADELISTMODEL_H
