~ci-train-bot/indicator-sound/indicator-sound-ubuntu-zesty-2138

« back to all changes in this revision

Viewing changes to tests/service-mocks/accounts-mock/AccountsServiceSoundMock.cpp

  • Committer: CI Train Bot
  • Author(s): Xavi Garcia Mena
  • Date: 2016-03-07 10:13:38 UTC
  • mfrom: (529.1.8 last-runnin-player-charles)
  • Revision ID: ci-train-bot@canonical.com-20160307101338-x2wynmsb4sch7jag
This branch sets the last running player using accounts service instead of gsettings.
It also includes a new class AccountsServiceAccess, to centralize all accesses to account service properties.
Approved by: PS Jenkins bot, Charles Kerr

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
                                    "Volume",
47
47
                                    property("Volume"));
48
48
}
 
49
 
 
50
QString AccountsServiceSoundMock::lastRunningPlayer() const
 
51
{
 
52
    return lastRunningPlayer_;
 
53
}
 
54
 
 
55
void AccountsServiceSoundMock::setLastRunningPlayer(QString const & lastRunningPlayer)
 
56
{
 
57
    lastRunningPlayer_ = lastRunningPlayer;
 
58
    notifier_.notifyPropertyChanged(QDBusConnection::systemBus(),
 
59
                                    ACCOUNTS_SOUND_INTERFACE,
 
60
                                    USER_PATH,
 
61
                                    "LastRunningPlayer",
 
62
                                    property("LastRunningPlayer"));
 
63
}