Seafood/Fishes.h
author John Kern <johnk@symbian.org>
Thu, 12 Aug 2010 17:06:22 -0700
changeset 26 d9f0df25b6a3
parent 15 0f80a0f39475
permissions -rwxr-xr-x
resolved merge

#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