~ci-train-bot/qtubuntu-media/qtubuntu-media-ubuntu-zesty-2472

« back to all changes in this revision

Viewing changes to src/aal/aalmediaplayerservice.h

  • Committer: Bileto Bot
  • Author(s): Jim Hodapp
  • Date: 2016-07-20 21:27:56 UTC
  • mfrom: (108.2.7 qtubuntu-media)
  • Revision ID: ci-train-bot@canonical.com-20160720212756-twhdhtajmdt5tcyp
Register for media-hub service unregister/register signals and raise an error to the client application when media-hub-server unregisters and then re-registers on dbus. This will allow the client to handle this event as it deems appropriate. (LP: #1506953)

Approved by: Konrad Zapałowicz

Show diffs side-by-side

added added

removed removed

Lines of Context:
113
113
public Q_SLOTS:
114
114
    void onPlaybackStatusChanged();
115
115
    void onApplicationStateChanged(Qt::ApplicationState state);
 
116
    void onServiceDisconnected();
 
117
    void onServiceReconnected();
116
118
    void onBufferingChanged();
117
119
 
118
120
protected:
138
140
 
139
141
    // Signals the proper QMediaPlayer::Error from a core::ubuntu::media::Error
140
142
    void signalQMediaPlayerError(const core::ubuntu::media::Player::Error &error);
141
 
 
142
143
    void onError(const core::ubuntu::media::Player::Error &error);
143
144
 
144
145
    inline QString playbackStatusStr(const core::ubuntu::media::Player::PlaybackStatus &status);
148
149
    core::Connection m_playbackStatusChangedConnection;
149
150
    core::Connection m_errorConnection;
150
151
    core::Connection m_endOfStreamConnection;
 
152
    core::Connection m_serviceDisconnectedConnection;
 
153
    core::Connection m_serviceReconnectedConnection;
151
154
    core::Connection m_bufferingStatusChangedConnection;
152
155
 
153
156
    AalMediaPlayerControl *m_mediaPlayerControl;