kpresenter
KPrSoundPlayer.h
00001 // -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*- 00002 /* This file is part of the KDE project 00003 00004 base code from kaudioplayer.h, kaudioplayer.cpp 00005 Copyright (C) 2000 Stefan Westerfeld 00006 stefan@space.twc.de 00007 00008 and konq_sound.h konq_sound.cc 00009 Copyright (c) 2001 Malte Starostik <malte@kde.org> 00010 00011 This file's authors : 00012 Copyright (C) 2001 Toshitaka Fujioka <fujioka@kde.org> 00013 00014 This library is free software; you can redistribute it and/or 00015 modify it under the terms of the GNU Library General Public 00016 License as published by the Free Software Foundation; either 00017 version 2 of the License, or (at your option) any later version. 00018 00019 This library is distributed in the hope that it will be useful, 00020 but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00022 Library General Public License for more details. 00023 00024 You should have received a copy of the GNU Library General Public License 00025 along with this library; see the file COPYING.LIB. If not, write to 00026 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00027 * Boston, MA 02110-1301, USA. 00028 */ 00029 00030 #ifndef kpresenter_sound_player_h 00031 #define kpresenter_sound_player_h 00032 00033 #include <qobject.h> 00034 00035 00036 /* 00037 namespace Arts 00038 { 00039 class SoundServerV2; 00040 class KArtsDispatcher; 00041 calss KPlayObjectFactory; 00042 calss KPlayObject; 00043 } 00044 */ 00045 class KPrSoundPlayer : public QObject 00046 { 00047 Q_OBJECT 00048 public: 00049 KPrSoundPlayer( const QString &fileName, QObject *parent = 0, const char *name = 0 ); 00050 00051 ~KPrSoundPlayer(); 00052 00053 void play( const QString &fileName ); 00054 void stop(); 00055 00056 public slots: 00057 void play(); 00058 00059 private: 00060 class KPresenterSoundPlayerPrivate *d; 00061 }; 00062 00063 #endif // kpresenter_sound_player_h