Seafood/Fishes.h
author Sebastian Brannstrom <sebastianb@symbian.org>
Mon, 09 Aug 2010 17:16:20 +0100
changeset 21 3bfc3227045d
parent 15 0f80a0f39475
permissions -rwxr-xr-x
CSV reader works, kind of. contacts.csv file added to project, must live in c:\ at the moment

#ifndef FISHES_H
#define FISHES_H

#include <QObject>
#include <QStringList>

class Fishes : public QObject
{
    Q_OBJECT
public:
    Fishes(QObject *parent=0);
    enum TCATEGORIES {EPresentBest=0, EPresentOK, EPresentWorst};
    enum TNUTRITION {ECalories = 0, ETotalFat, ETotalProtein,
                     EOmega3, ECholesterol, ESodium, EMaxNutrients };

    const QStringList getBest();
    const QStringList getOK();
    const QStringList getWorst();

    QString getEcoDetails(QString name);
    QMap<TNUTRITION, QString> getNutrition(QString name);

private:
    void populate(TCATEGORIES cat);
    QStringList bestFish;
    QStringList okFish;
    QStringList worstFish;
};

#endif // FISHES_H