~diegosarmentero/+junk/settings-qobject

« back to all changes in this revision

Viewing changes to plugins/system-update/update.h

  • Committer: Diego Sarmentero
  • Date: 2013-12-18 11:48:43 UTC
  • Revision ID: diego.sarmentero@gmail.com-20131218114843-y69qs2mcl58dxk2t
changin QQuickItems to QObject

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Boston, MA 02110-1301, USA.
17
17
 */
18
18
 
19
 
#ifndef APPLICATION_H
20
 
#define APPLICATION_H
 
19
#ifndef UPDATE_H
 
20
#define UPDATE_H
21
21
 
22
 
#include <QQuickItem>
23
22
#include <QObject>
24
23
#include <QString>
25
24
#include <QStringList>
26
25
 
27
26
namespace UpdatePlugin {
28
27
 
29
 
class Update : public QQuickItem
 
28
class Update : public QObject
30
29
{
31
30
    Q_OBJECT
32
 
    Q_DISABLE_COPY(Update)
33
31
    Q_PROPERTY(bool systemUpdate READ updateState WRITE setSystemUpdate
34
32
               NOTIFY systemUpdateChanged)
35
33
    Q_PROPERTY(QString packageName READ getPackageName)
66
64
    void lastUpdateDateChanged();
67
65
 
68
66
public:
69
 
    Update(QQuickItem *parent = 0);
 
67
    explicit Update(QObject *parent = 0);
 
68
    virtual ~Update();
70
69
 
71
70
    bool systemUpdate() { return m_systemUpdate; }
72
71
    QString getPackageName() { return m_packagename; }
119
118
 
120
119
}
121
120
 
122
 
QML_DECLARE_TYPE(UpdatePlugin::Update)
 
121
Q_DECLARE_TYPE(UpdatePlugin::Update)
123
122
 
124
 
#endif // APPLICATION_H
 
123
#endif // UPDATE_H