summaryrefslogtreecommitdiffstats
path: root/khotkeys/arts/voicerecorder_arts.cpp
diff options
context:
space:
mode:
authortoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
committertoma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2009-11-25 17:56:58 +0000
commit4aed2c8219774f5d797760606b8489a92ddc5163 (patch)
tree3f8c130f7d269626bf6a9447407ef6c35954426a /khotkeys/arts/voicerecorder_arts.cpp
downloadtdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz
tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'khotkeys/arts/voicerecorder_arts.cpp')
-rw-r--r--khotkeys/arts/voicerecorder_arts.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/khotkeys/arts/voicerecorder_arts.cpp b/khotkeys/arts/voicerecorder_arts.cpp
new file mode 100644
index 000000000..39cd38cfa
--- /dev/null
+++ b/khotkeys/arts/voicerecorder_arts.cpp
@@ -0,0 +1,40 @@
+/****************************************************************************
+
+ KHotKeys
+
+ Copyright (C) 2005 Olivier Goffgart <ogoffart @ kde.org>
+
+ Distributed under the terms of the GNU General Public License version 2.
+
+****************************************************************************/
+
+#include <qcolor.h>
+#include <qevent.h>
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "voicerecorder.h"
+
+#ifdef HAVE_ARTS
+
+#include <arts/kplayobject.h>
+#include <arts/kartsserver.h>
+#include <arts/kartsdispatcher.h>
+#include <arts/kplayobjectfactory.h>
+
+extern "C"
+KDE_EXPORT
+void khotkeys_voicerecorder_arts_play( const QString& file )
+{
+ KHotKeys::VoiceRecorder::arts_play_fun check = khotkeys_voicerecorder_arts_play; // check the type matches
+ ( void ) check;
+ KArtsDispatcher dispatcher;
+ KArtsServer server;
+ KDE::PlayObjectFactory factory( server.server() );
+ KDE::PlayObject* playobj = factory.createPlayObject( file, true );
+ playobj->play();
+}
+
+#endif