~ubuntu-branches/ubuntu/vivid/youker-assistant/vivid

« back to all changes in this revision

Viewing changes to src/qmlaudio.cpp

  • Committer: Package Import Robot
  • Author(s): Kobe Lee (kylinkobe)
  • Date: 2013-09-18 16:22:14 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130918162214-6nqyjyf3cd3ynqky
Tags: 0.2.1-0ubuntu1
* Modify the mouse events of MonitorBall.
* Add reset button for clear pages.
* Add policykit for apt clear in sudodbus.
* Fixed the bug about software status and add masklayer.
* Rewrite the code of system information.
* Add some signals and slots.
* Fixed the bug about Software signals(LP: #1226389).
* Modify KThread and add base.py.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
 
24
24
}
25
25
 
26
 
 void QmlAudio::setSong(const QUrl & songUrl)
27
 
{
 
26
void QmlAudio::setSong(const QUrl & songUrl) {
28
27
    audioObject->setCurrentSource(Phonon::MediaSource(songUrl));
29
28
}
30
29
 
31
 
void QmlAudio::play()
32
 
{
33
 
//    qDebug() << music_path;
 
30
void QmlAudio::play() {
34
31
    audioObject = Phonon::createPlayer(Phonon::MusicCategory,
35
32
                                       Phonon::MediaSource(music_path));
36
33
    audioObject->play();
37
 
 
38
34
}
39
35
 
40
 
void QmlAudio::pause()
41
 
{
 
36
void QmlAudio::pause() {
42
37
    audioObject->pause();
43
38
}
44
 
void QmlAudio::stop()
45
 
{
 
39
void QmlAudio::stop() {
46
40
    audioObject->stop();
47
41
}