diff options
Diffstat (limited to 'tderadio3/plugins/soundserver')
-rw-r--r-- | tderadio3/plugins/soundserver/Makefile.am | 18 | ||||
-rw-r--r-- | tderadio3/plugins/soundserver/po/Makefile.am | 2 | ||||
-rw-r--r-- | tderadio3/plugins/soundserver/po/de.po | 29 | ||||
-rw-r--r-- | tderadio3/plugins/soundserver/po/ru.po | 29 | ||||
-rw-r--r-- | tderadio3/plugins/soundserver/soundserver.cpp | 74 | ||||
-rw-r--r-- | tderadio3/plugins/soundserver/soundserver.h | 54 |
6 files changed, 206 insertions, 0 deletions
diff --git a/tderadio3/plugins/soundserver/Makefile.am b/tderadio3/plugins/soundserver/Makefile.am new file mode 100644 index 0000000..17c5946 --- /dev/null +++ b/tderadio3/plugins/soundserver/Makefile.am @@ -0,0 +1,18 @@ +SUBDIRS = po . + +INCLUDES = $(all_includes) +METASOURCES = AUTO + +libkradio_LTLIBRARIES = libsoundserver.la + +libsoundserver_la_SOURCES = soundserver.cpp +libsoundserver_la_LDFLAGS = -module -avoid-version $(KDE_RPATH) $(all_libraries) + +noinst_HEADERS = soundserver.h + +#messages: rc.cpp +# $(XGETTEXT) *.cpp *.h -o po/kradio-sound-server.pot + +messages: rc.cpp + $(EXTRACTRC) *.rc *.ui >> rc.cpp + $(XGETTEXT) rc.cpp *.h *.cpp -o po/kradio-soundserver.pot diff --git a/tderadio3/plugins/soundserver/po/Makefile.am b/tderadio3/plugins/soundserver/po/Makefile.am new file mode 100644 index 0000000..22b977e --- /dev/null +++ b/tderadio3/plugins/soundserver/po/Makefile.am @@ -0,0 +1,2 @@ +PACKAGE = kradio-soundserver +POFILES = AUTO diff --git a/tderadio3/plugins/soundserver/po/de.po b/tderadio3/plugins/soundserver/po/de.po new file mode 100644 index 0000000..a3273b5 --- /dev/null +++ b/tderadio3/plugins/soundserver/po/de.po @@ -0,0 +1,29 @@ +# translation of de.po to +# translation of kradio-sound-server.po to +# This file is put in the public domain. +# +# Ernst Martin Witte <[email protected]>, 2006. +msgid "" +msgstr "" +"Project-Id-Version: de\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2006-11-06 01:32+0100\n" +"PO-Revision-Date: 2006-11-06 01:06+0100\n" +"Last-Translator: Ernst Martin Witte <[email protected]>\n" +"Language-Team: <[email protected]>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.11.4\n" + +#: soundserver.cpp:27 +msgid "SoundServer" +msgstr "SoundServer" + +#: soundserver.cpp:32 +msgid "SoundServer Plugin" +msgstr "SoundServer Plugin" + +#: soundserver.cpp:34 +msgid "initializing kradio soundserver" +msgstr "Initialisierung des TDERadio-Soundservers" diff --git a/tderadio3/plugins/soundserver/po/ru.po b/tderadio3/plugins/soundserver/po/ru.po new file mode 100644 index 0000000..794279f --- /dev/null +++ b/tderadio3/plugins/soundserver/po/ru.po @@ -0,0 +1,29 @@ +# translation of ru.po to +# translation of kradio-soundserver.po to +# This file is put in the public domain. +# Алексей Кузнецов <[email protected]>, 2006. +# +msgid "" +msgstr "" +"Project-Id-Version: ru\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2006-11-11 02:11+0100\n" +"PO-Revision-Date: 2006-11-08 12:46+0300\n" +"Last-Translator: Алексей Кузнецов <[email protected]>\n" +"Language-Team: <[email protected]>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: KBabel 1.10\n" + +#: soundserver.cpp:27 +msgid "SoundServer" +msgstr "SoundServer" + +#: soundserver.cpp:32 +msgid "SoundServer Plugin" +msgstr "Модуль звукового сервера" + +#: soundserver.cpp:34 +msgid "initializing kradio soundserver" +msgstr "Включение звукового сервера TDERadio" diff --git a/tderadio3/plugins/soundserver/soundserver.cpp b/tderadio3/plugins/soundserver/soundserver.cpp new file mode 100644 index 0000000..809cc02 --- /dev/null +++ b/tderadio3/plugins/soundserver/soundserver.cpp @@ -0,0 +1,74 @@ +/*************************************************************************** + soundserver.cpp - description + ------------------- + begin : Sun Apr 17 2005 + copyright : (C) 2003 by Martin Witte + email : [email protected] + ***************************************************************************/ + +/*************************************************************************** + * * + * 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. * + * * + ***************************************************************************/ + +#include "soundserver.h" + +#include <kapplication.h> +#include <klocale.h> + + +/////////////////////////////////////////////////////////////////////// +//// plugin library functions + +PLUGIN_LIBRARY_FUNCTIONS(SoundServer, "kradio-soundserver", i18n("SoundServer")); + +///////////////////////////////////////////////////////////////////////////// + +SoundServer::SoundServer(const TQString &name) + : PluginBase(name, i18n("SoundServer Plugin")) +{ + logDebug(i18n("initializing kradio soundserver")); +} + +SoundServer::~SoundServer() +{ +} + +bool SoundServer::connectI (Interface *i) +{ + bool a = PluginBase::connectI(i); + bool b = ISoundStreamServer::connectI(i); + return a || b; +} + + +bool SoundServer::disconnectI (Interface *i) +{ + bool a = PluginBase::disconnectI(i); + bool b = ISoundStreamServer::disconnectI(i); + return a || b; +} + + + +void SoundServer::saveState (TDEConfig *) const +{ +} + +void SoundServer::restoreState (TDEConfig *) +{ +} + +ConfigPageInfo SoundServer::createConfigurationPage() +{ + return ConfigPageInfo (); +} + +AboutPageInfo SoundServer::createAboutPage() +{ + return AboutPageInfo(); +} diff --git a/tderadio3/plugins/soundserver/soundserver.h b/tderadio3/plugins/soundserver/soundserver.h new file mode 100644 index 0000000..f01e863 --- /dev/null +++ b/tderadio3/plugins/soundserver/soundserver.h @@ -0,0 +1,54 @@ +/*************************************************************************** + soundserver.h - description + ------------------- + begin : Sun Apr 17 2005 + copyright : (C) 2003 by Martin Witte + email : [email protected] + ***************************************************************************/ + +/*************************************************************************** + * * + * 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. * + * * + ***************************************************************************/ + +#ifndef KRADIO_SOUNDSERVER_H +#define KRADIO_SOUNDSERVER_H + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include "../../src/include/soundstreamclient_interfaces.h" +#include "../../src/include/plugins.h" + + +class SoundServer : public PluginBase, + public ISoundStreamServer +{ +public: + SoundServer(const TQString &name); + ~SoundServer(); + + virtual bool connectI (Interface *); + virtual bool disconnectI (Interface *); + + virtual TQString pluginClassName() const { return "SoundServer"; } + + virtual const TQString &name() const { return PluginBase::name(); } + virtual TQString &name() { return PluginBase::name(); } + + // PluginBase + +public: + virtual void saveState (TDEConfig *) const; + virtual void restoreState (TDEConfig *); + + virtual ConfigPageInfo createConfigurationPage(); + virtual AboutPageInfo createAboutPage(); +}; + +#endif |