~vitimiti/cheetahcs/trunk

« back to all changes in this revision

Viewing changes to backend/modules/CheetaHCS/mytype.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
 
#ifndef MYTYPE_H
2
 
#define MYTYPE_H
3
 
 
4
 
#include <QObject>
5
 
 
6
 
class MyType : public QObject
7
 
{
8
 
    Q_OBJECT
9
 
    Q_PROPERTY( QString helloWorld READ helloWorld WRITE setHelloWorld NOTIFY helloWorldChanged )
10
 
 
11
 
public:
12
 
    explicit MyType(QObject *parent = 0);
13
 
    ~MyType();
14
 
 
15
 
Q_SIGNALS:
16
 
    void helloWorldChanged();
17
 
 
18
 
protected:
19
 
    QString helloWorld() { return m_message; }
20
 
    void setHelloWorld(QString msg) { m_message = msg; Q_EMIT helloWorldChanged(); }
21
 
 
22
 
    QString m_message;
23
 
};
24
 
 
25
 
#endif // MYTYPE_H
26