Seafood/Fishes.h
author John Kern <johnk@symbian.org>
Tue, 06 Apr 2010 08:02:52 -0700
changeset 14 a16afe3df8c9
parent 11 f3dbeee07821
child 15 0f80a0f39475
permissions -rwxr-xr-x
get nutrition information from db
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
     1
#ifndef FISHES_H
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
     2
#define FISHES_H
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
     3
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
     4
#include <QObject>
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
     5
#include <QStringList>
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
     6
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
     7
class Fishes : public QObject
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
     8
{
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
     9
    Q_OBJECT
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
    10
public:
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
    11
    Fishes(QObject *parent=0);
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
    12
    enum TCATEGORIES {EPresentBest=0, EPresentOK, EPresentWorst};
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
    13
14
a16afe3df8c9 get nutrition information from db
John Kern <johnk@symbian.org>
parents: 11
diff changeset
    14
    const QStringList getBest();
a16afe3df8c9 get nutrition information from db
John Kern <johnk@symbian.org>
parents: 11
diff changeset
    15
    const QStringList getOK();
a16afe3df8c9 get nutrition information from db
John Kern <johnk@symbian.org>
parents: 11
diff changeset
    16
    const QStringList getWorst();
3
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
    17
10
79eeacfd15ff implement eco details with webview
User@User-PC.domain_not_set.invalid
parents: 3
diff changeset
    18
    QString getEcoDetails(QString name);
14
a16afe3df8c9 get nutrition information from db
John Kern <johnk@symbian.org>
parents: 11
diff changeset
    19
    void getNutrition(QString name);
10
79eeacfd15ff implement eco details with webview
User@User-PC.domain_not_set.invalid
parents: 3
diff changeset
    20
3
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
    21
private:
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
    22
    void populate(TCATEGORIES cat);
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
    23
    QStringList bestFish;
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
    24
    QStringList okFish;
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
    25
    QStringList worstFish;
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
    26
};
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
    27
e6d1a78b6db9 wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff changeset
    28
#endif // FISHES_H