Initial structure. New abstract levels: dataobjecst, storage
[someplayer] / src / player.cpp
1 #include "player.h"
2
3 Player::Player() : QObject()
4 {
5 object = new Phonon::MediaObject(this);
6         output = new Phonon::AudioOutput(Phonon::MusicCategory, this);
7         Phonon::createPath(object, output);
8 }
9
10 Player::~Player()
11 {
12 }
13
14 void Player::playSong(QString filename)
15 {
16         object->setCurrentSource(Phonon::MediaSource(filename));
17         object->play();
18 }