~michihenning/storage-framework/api2

« back to all changes in this revision

Viewing changes to src/qt/Runtime.cpp

  • Committer: Michi Henning
  • Date: 2016-09-22 01:52:20 UTC
  • mfrom: (58.1.11 devel)
  • Revision ID: michi.henning@canonical.com-20160922015220-11nwmqxgon1gnlai
Removed CONSTANT from Q_PROPERTY definitions of Item and Account.
Moved qHash() into correct namespace.
Adjusted hash() and qHash() of Item to also combine with the account hash.
Adjusted operator==() and operator<() of Item to compare equal or less than
only if the accounts also compare equal or less than.
make_test_account() trailing arguments are now defaulted, so we don't need an overload.
Chained the RuntimeImpl constructors.

Show diffs side-by-side

added added

removed removed

Lines of Context:
68
68
    return p_->accounts();
69
69
}
70
70
 
71
 
Account Runtime::make_test_account(QString const& bus_name, QString const& object_path)
72
 
{
73
 
    return p_->make_test_account(bus_name, object_path);
74
 
}
75
 
 
76
71
Account Runtime::make_test_account(QString const& bus_name,
77
72
                                   QString const& object_path,
78
73
                                   QString const& owner_id,
79
74
                                   QString const& owner,
80
 
                                   QString const& description)
 
75
                                   QString const& description) const
81
76
{
82
77
    return p_->make_test_account(bus_name, object_path, owner_id, owner, description);
83
78
}