-
Notifications
You must be signed in to change notification settings - Fork 10
/
qrecipe.h
43 lines (36 loc) · 971 Bytes
/
qrecipe.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
*
* MashBerry Homebrewing-controller
*
* Copyright (C) 2013 Sebastian Duell
*
* This file is licensed under the terms of the GNU General Public
* License version 3. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/
#ifndef QRECIPE_H
#define QRECIPE_H
#include <QObject>
#include <QList>
#include "qrecipeentry.h"
class QRecipe : public QObject
{
Q_OBJECT
public:
explicit QRecipe(QString name, QObject *parent = 0);
void serialize(QXmlStreamWriter &writer);
void serialize(XMLNode *parent, XMLDocument* doc);
void AddEntry(QString name, double temp, int time, QPIDParameters *pParams);
void RemoveEntry(int idx);
int GetEntryCount();
QRecipeEntry* GetEntry(int idx);
QString GetName();
void SetName(QString name);
signals:
public slots:
private:
QString m_name;
QList<QRecipeEntry*> m_entries;
};
#endif // QRECIPE_H