summaryrefslogtreecommitdiffstats
path: root/konversation/src/konversationsound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konversation/src/konversationsound.cpp')
-rw-r--r--konversation/src/konversationsound.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/konversation/src/konversationsound.cpp b/konversation/src/konversationsound.cpp
new file mode 100644
index 0000000..7eb6466
--- /dev/null
+++ b/konversation/src/konversationsound.cpp
@@ -0,0 +1,41 @@
+/*
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+*/
+
+/*
+ begin: Thu Jan 29 2004
+ copyright: (C) 2004 by Peter Simonsson
+ email: psn@linux.se
+*/
+
+#include "konversationsound.h"
+
+#include <config.h>
+#include <kurl.h>
+
+#ifdef USE_KNOTIFY
+#include <knotifyclient.h>
+#endif
+
+
+namespace Konversation
+{
+ Sound::Sound(QObject* parent, const char* name)
+ : QObject(parent, name)
+ {}
+
+ Sound::~Sound()
+ {}
+
+ void Sound::play(const KURL& url)
+ {
+ #ifdef USE_KNOTIFY
+ KNotifyClient::userEvent(0,QString(),1,1,url.path());
+ #endif
+ }
+}
+
+#include "konversationsound.moc"