-
Notifications
You must be signed in to change notification settings - Fork 10
/
qrecipeentry.h
47 lines (40 loc) · 1.06 KB
/
qrecipeentry.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
44
45
46
47
/*
*
* 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 QRECIPEENTRY_H
#define QRECIPEENTRY_H
#include <QObject>
#include <QString>
#include "qpidparameters.h"
class QRecipeEntry : public QObject
{
Q_OBJECT
public:
explicit QRecipeEntry(QString name, double temp, int time, QPIDParameters *pParams, QObject *parent = 0);
void serialize(QXmlStreamWriter &writer);
void serialize(XMLNode *parent, XMLDocument* doc);
QString GetName();
double GetTemp();
int GetTime();
QPIDParameters *GetPidParams();
void SetPidParams(QPIDParameters *pParams);
void SetName(QString name);
void SetTemp(double temp);
void SetTime(int time);
signals:
public slots:
private:
double m_temp;
int m_time;
QString m_name;
QPIDParameters *m_pPIDParams;
};
#endif // QRECIPEENTRY_H