~vitimiti/cheetahcs/trunk

« back to all changes in this revision

Viewing changes to backend/modules/CheetaHCS/cheetahcs.h

  • Committer: Víctor Matía Rodríguez
  • Date: 2014-10-30 10:19:53 UTC
  • Revision ID: vmatir@gmail.com-20141030101953-oojxu1845prgncyp
Added the basic layout for all the non-personal screens, except the
specific location web pages. Added the first functions to run on the
start for the configuration files. Moved from 0.1 to 0.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2014 Víctor Matía Rodríguez.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; version 3.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
#ifndef CHEETAHCS_H
 
18
#define CHEETAHCS_H
 
19
 
 
20
#include <QObject>
 
21
#include <QString>
 
22
 
 
23
#include "startchecks.h"
 
24
 
 
25
class CheetaHCS : public QObject
 
26
{
 
27
    Q_OBJECT
 
28
    Q_PROPERTY(bool configExists READ configExists WRITE setConfigExists
 
29
               NOTIFY configExistsChanged)
 
30
    Q_PROPERTY(QString hospital READ hospital WRITE setHospital
 
31
               NOTIFY hospitalChanged)
 
32
    Q_PROPERTY(QString primaryCenter READ primaryCenter WRITE setPrimaryCenter
 
33
               NOTIFY primaryCenterChanged)
 
34
public:
 
35
    explicit CheetaHCS(QObject *parent = 0);
 
36
    virtual ~CheetaHCS();
 
37
 
 
38
    Q_INVOKABLE void startChecks();
 
39
 
 
40
Q_SIGNALS:
 
41
    void configExistsChanged();
 
42
    void hospitalChanged();
 
43
    void primaryCenterChanged();
 
44
 
 
45
protected:
 
46
    bool m_configExists;
 
47
    QString m_hospital;
 
48
    QString m_primaryCenter;
 
49
 
 
50
    QString m_folder;
 
51
    QString m_file;
 
52
 
 
53
    bool configExists();
 
54
    void setConfigExists(bool configExists);
 
55
    QString hospital();
 
56
    void setHospital(QString hospital);
 
57
    QString primaryCenter();
 
58
    void setPrimaryCenter(QString primaryCenter);
 
59
 
 
60
    StartChecks startChecksFunction;
 
61
};
 
62
 
 
63
#endif // CHEETAHCS_H