kaudiomanagerplay.h
00001 /* This file is part of the KDE project 00002 Copyright (C) 2003 Matthias Kretz <kretz@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Library General Public 00006 License version 2 as published by the Free Software Foundation. 00007 00008 This library is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 Library General Public License for more details. 00012 00013 You should have received a copy of the GNU Library General Public License 00014 along with this library; see the file COPYING.LIB. If not, write to 00015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00016 Boston, MA 02110-1301, USA. 00017 00018 */ 00019 00020 #ifndef KAUDIOMANAGERPLAY_H 00021 #define KAUDIOMANAGERPLAY_H 00022 00023 #include <artsflow.h> 00024 #include <tqstring.h> 00025 #include <tdelibs_export.h> 00026 00027 class KArtsServer; 00028 class TQString; 00029 00038 class KDE_ARTS_EXPORT KAudioManagerPlay 00039 { 00040 public: 00041 KAudioManagerPlay( KArtsServer * server, const TQString & title = TQString::null ); 00042 ~KAudioManagerPlay(); 00043 00047 Arts::Synth_AMAN_PLAY amanPlay(); 00048 00055 bool isNull() const; 00056 00060 void setTitle( const TQString & title ); 00061 00065 TQString title(); 00066 00067 void setAutoRestoreID( const TQString & autoRestoreID ); 00068 TQString autoRestoreID(); 00069 00070 void start(); 00071 void stop(); 00072 00073 private: 00074 struct PrivateData { 00075 Arts::Synth_AMAN_PLAY amanPlay; 00076 bool started; 00077 }; 00078 PrivateData* d; 00079 }; 00080 00081 00082 #endif // KAUDIOMANAGERPLAY_H 00083 00084 // vim: sw=4 ts=4