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

class districtAreaListModel : public QAbstractListModel
{
    Q_OBJECT
public:
    districtAreaListModel(const QStringList &nameString,const QStringList &nameEnString,
                          const QStringList &ppsString,const QStringList &percentString,
                          const QStringList &typeString,const QPixmap p[],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 ppsString;
    QStringList percentString;
    QStringList typeString;
    QPixmap _p[150];
    QPixmap arrow;
    QPixmap up;
    QPixmap down;
};

#endif // DISTRICTAREALISTMODEL_H
