1/*
2 * Copyright (C) 2010 Parker Coates <coates@kde.org>
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 of
7 * the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#include "soundengine.h"
19
20#include <KStandardDirs>
21
22
23SoundEngine::SoundEngine( QObject * parent )
24 : QObject( parent ),
25 m_cardPickedUp( KStandardDirs::locate( "appdata", "sounds/card-pickup.ogg" ) ),
26 m_cardPutDown( KStandardDirs::locate( "appdata", "sounds/card-down.ogg" ) )
27{
28}
29
30
31SoundEngine::~SoundEngine()
32{
33}
34
35
36void SoundEngine::cardsPickedUp()
37{
38 m_cardPickedUp.start();
39}
40
41
42void SoundEngine::cardsPutDown()
43{
44 m_cardPutDown.start();
45}
46
47
48#include "soundengine.moc"
49