author | Sebastian Brannstrom <sebastianb@symbian.org> |
Mon, 09 Aug 2010 17:16:20 +0100 | |
changeset 21 | 3bfc3227045d |
parent 15 | 0f80a0f39475 |
permissions | -rwxr-xr-x |
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}; |
15 | 13 |
enum TNUTRITION {ECalories = 0, ETotalFat, ETotalProtein, |
14 |
EOmega3, ECholesterol, ESodium, EMaxNutrients }; |
|
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
15 |
|
14
a16afe3df8c9
get nutrition information from db
John Kern <johnk@symbian.org>
parents:
11
diff
changeset
|
16 |
const QStringList getBest(); |
a16afe3df8c9
get nutrition information from db
John Kern <johnk@symbian.org>
parents:
11
diff
changeset
|
17 |
const QStringList getOK(); |
a16afe3df8c9
get nutrition information from db
John Kern <johnk@symbian.org>
parents:
11
diff
changeset
|
18 |
const QStringList getWorst(); |
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
19 |
|
10
79eeacfd15ff
implement eco details with webview
User@User-PC.domain_not_set.invalid
parents:
3
diff
changeset
|
20 |
QString getEcoDetails(QString name); |
15 | 21 |
QMap<TNUTRITION, QString> getNutrition(QString name); |
10
79eeacfd15ff
implement eco details with webview
User@User-PC.domain_not_set.invalid
parents:
3
diff
changeset
|
22 |
|
3
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
23 |
private: |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
24 |
void populate(TCATEGORIES cat); |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
25 |
QStringList bestFish; |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
26 |
QStringList okFish; |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
27 |
QStringList worstFish; |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
28 |
}; |
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
29 |
|
e6d1a78b6db9
wip - start of an example for my forthcoming presentation
John Kern <johnk@symbian.org>
parents:
diff
changeset
|
30 |
#endif // FISHES_H |