~aacid/unity8/scopes_more_things_on_memory

« back to all changes in this revision

Viewing changes to tests/mocks/Ubuntu/Connectivity/networking-status.h

  • Committer: Albert Astals
  • Date: 2014-09-01 10:25:28 UTC
  • Revision ID: albert.astals@canonical.com-20140901102528-0guv05s4dz1vuy2e
test the visible+network code for card images

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
    Q_PROPERTY(QVector<Limitations> limitations READ limitations NOTIFY limitationsChanged)
33
33
    Q_PROPERTY(Status status READ status NOTIFY statusChanged)
34
34
    Q_PROPERTY(bool online READ online NOTIFY onlineChanged)
35
 
    Q_PROPERTY(bool limitedBandwith READ limitedBandwith NOTIFY limitedBandwithChanged)
 
35
    Q_PROPERTY(bool limitedBandwith READ limitedBandwith WRITE setLimitedBandwidth NOTIFY limitedBandwithChanged)
36
36
 
37
37
public:
38
38
    explicit NetworkingStatus(QObject *parent = 0);
53
53
    bool online() const;
54
54
    bool limitedBandwith() const;
55
55
 
 
56
    // Only in the fake one
 
57
    void setLimitedBandwidth(bool limited);
 
58
 
56
59
Q_SIGNALS:
57
60
    void limitationsChanged();
58
61
    void statusChanged(Status value);
59
62
    void onlineChanged(bool value);
60
63
    void limitedBandwithChanged(bool value);
 
64
 
 
65
private:
 
66
    QVector<NetworkingStatus::Limitations> m_limitations;
61
67
};
62
68
 
63
69
Q_DECLARE_METATYPE(NetworkingStatus::Limitations)