~ubuntu-branches/ubuntu/vivid/muon/vivid-proposed

« back to all changes in this revision

Viewing changes to libmuon/resources/ResourcesUpdatesModel.h

  • Committer: Package Import Robot
  • Author(s): Scarlett Clark
  • Date: 2015-03-24 07:36:31 UTC
  • mto: This revision was merged to the branch mainline in revision 86.
  • Revision ID: package-import@ubuntu.com-20150324073631-7nmay5episnfkdlt
Tags: upstream-5.2.2
ImportĀ upstreamĀ versionĀ 5.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#define RESOURCESUPDATESMODEL_H
23
23
 
24
24
#include <QStandardItemModel>
25
 
#include "libmuonprivate_export.h"
 
25
#include "libMuonCommon_export.h"
26
26
 
27
27
class AbstractResourcesBackend;
28
28
class AbstractResource;
31
31
class ResourcesModel;
32
32
class QDBusInterface;
33
33
 
34
 
class MUONPRIVATE_EXPORT ResourcesUpdatesModel : public QStandardItemModel
 
34
class MUONCOMMON_EXPORT ResourcesUpdatesModel : public QStandardItemModel
35
35
{
36
36
    Q_OBJECT
37
37
    Q_PROPERTY(qreal progress READ progress NOTIFY progressChanged);
44
44
        
45
45
        qreal progress() const;
46
46
        QString remainingTime() const;
47
 
        QList<QAction*> messageActions() const;
48
47
        bool hasUpdates() const;
49
48
        quint64 downloadSpeed() const;
50
49
        Q_SCRIPTABLE void prepare();
71
70
        void cancel();
72
71
        void updateAll();
73
72
 
 
73
    private slots:
 
74
        void updaterDestroyed(QObject* obj);
 
75
 
74
76
    private:
75
77
        void setResourcesModel(ResourcesModel* model);
76
78