diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-05-30 19:40:31 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2022-05-31 01:17:58 +0900 |
commit | d95a4fea540b371fa86493d069fdbd54f33c5b40 (patch) | |
tree | 079b038ab559439eb7ded40a07bd79fd92926b3b /plugins/soundserver | |
parent | e54890e0480e5adee69f5220a7c6dd072bbd75ea (diff) | |
download | tderadio-d95a4fea540b371fa86493d069fdbd54f33c5b40.tar.gz tderadio-d95a4fea540b371fa86493d069fdbd54f33c5b40.zip |
Standardize folder structure.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'plugins/soundserver')
-rw-r--r-- | plugins/soundserver/CMakeL10n.txt | 6 | ||||
-rw-r--r-- | plugins/soundserver/Makefile.am | 18 | ||||
-rw-r--r-- | plugins/soundserver/po/Makefile.am | 2 | ||||
-rw-r--r-- | plugins/soundserver/po/de.po | 44 | ||||
-rw-r--r-- | plugins/soundserver/po/ru.po | 42 | ||||
-rw-r--r-- | plugins/soundserver/po/tderadio-soundserver.pot | 40 | ||||
-rw-r--r-- | plugins/soundserver/soundserver.cpp | 74 | ||||
-rw-r--r-- | plugins/soundserver/soundserver.h | 54 |
8 files changed, 280 insertions, 0 deletions
diff --git a/plugins/soundserver/CMakeL10n.txt b/plugins/soundserver/CMakeL10n.txt new file mode 100644 index 0000000..afd005e --- /dev/null +++ b/plugins/soundserver/CMakeL10n.txt @@ -0,0 +1,6 @@ +##### create translation templates ############## + +tde_l10n_create_template( + CATALOG "tderadio-soundserver" + DESTINATION "po" +) diff --git a/plugins/soundserver/Makefile.am b/plugins/soundserver/Makefile.am new file mode 100644 index 0000000..bac5fe3 --- /dev/null +++ b/plugins/soundserver/Makefile.am @@ -0,0 +1,18 @@ +SUBDIRS = po . + +INCLUDES = $(all_includes) +METASOURCES = AUTO + +libtderadio_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/tderadio-sound-server.pot + +messages: rc.cpp + $(EXTRACTRC) *.rc *.ui >> rc.cpp + $(XGETTEXT) rc.cpp *.h *.cpp -o po/tderadio-soundserver.pot diff --git a/plugins/soundserver/po/Makefile.am b/plugins/soundserver/po/Makefile.am new file mode 100644 index 0000000..f469927 --- /dev/null +++ b/plugins/soundserver/po/Makefile.am @@ -0,0 +1,2 @@ +PACKAGE = tderadio-soundserver +POFILES = AUTO diff --git a/plugins/soundserver/po/de.po b/plugins/soundserver/po/de.po new file mode 100644 index 0000000..19e4c42 --- /dev/null +++ b/plugins/soundserver/po/de.po @@ -0,0 +1,44 @@ +# translation of de.po to +# translation of tderadio-sound-server.po to +# This file is put in the public domain. +# +# Ernst Martin Witte <emw@nocabal.de>, 2006. +msgid "" +msgstr "" +"Project-Id-Version: de\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-05-11 04:30+0200\n" +"PO-Revision-Date: 2019-11-22 13:27+0000\n" +"Last-Translator: Chris <xchrisx@uber.space>\n" +"Language-Team: German <https://mirror.git.trinitydesktop.org/weblate/" +"projects/applications/tderadio-soundserver/de/>\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=n != 1;\n" +"X-Generator: Weblate 3.9.1\n" + +#. Instead of a literal translation, add your name to the end of the list (separated by a comma). +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "Chris (TDE)" + +#. Instead of a literal translation, add your email to the end of the list (separated by a comma). +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "(Keine Email)" + +#: soundserver.cpp:27 +msgid "SoundServer" +msgstr "SoundServer" + +#: soundserver.cpp:32 +msgid "SoundServer Plugin" +msgstr "SoundServer Zusatzmodul" + +#: soundserver.cpp:34 +msgid "initializing tderadio soundserver" +msgstr "Initialisierung des TDERadio-Soundservers" diff --git a/plugins/soundserver/po/ru.po b/plugins/soundserver/po/ru.po new file mode 100644 index 0000000..b0c42ef --- /dev/null +++ b/plugins/soundserver/po/ru.po @@ -0,0 +1,42 @@ +# translation of ru.po to +# translation of tderadio-soundserver.po to +# This file is put in the public domain. +# Алексей Кузнецов <Alexey.Kouznetsov@GMail.com>, 2006. +# +msgid "" +msgstr "" +"Project-Id-Version: ru\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-05-11 04:30+0200\n" +"PO-Revision-Date: 2006-11-08 12:46+0300\n" +"Last-Translator: Алексей Кузнецов <Alexey.Kouznetsov@GMail.com>\n" +"Language-Team: <ru@li.org>\n" +"Language: \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" + +#. Instead of a literal translation, add your name to the end of the list (separated by a comma). +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "" + +#. Instead of a literal translation, add your email to the end of the list (separated by a comma). +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "" + +#: soundserver.cpp:27 +msgid "SoundServer" +msgstr "SoundServer" + +#: soundserver.cpp:32 +msgid "SoundServer Plugin" +msgstr "Модуль звукового сервера" + +#: soundserver.cpp:34 +msgid "initializing tderadio soundserver" +msgstr "Включение звукового сервера TDERadio" diff --git a/plugins/soundserver/po/tderadio-soundserver.pot b/plugins/soundserver/po/tderadio-soundserver.pot new file mode 100644 index 0000000..54cb4f5 --- /dev/null +++ b/plugins/soundserver/po/tderadio-soundserver.pot @@ -0,0 +1,40 @@ +# SOME DESCRIPTIVE TITLE. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"POT-Creation-Date: 2020-05-11 04:30+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Instead of a literal translation, add your name to the end of the list (separated by a comma). +#, ignore-inconsistent +msgid "" +"_: NAME OF TRANSLATORS\n" +"Your names" +msgstr "" + +#. Instead of a literal translation, add your email to the end of the list (separated by a comma). +#, ignore-inconsistent +msgid "" +"_: EMAIL OF TRANSLATORS\n" +"Your emails" +msgstr "" + +#: soundserver.cpp:27 +msgid "SoundServer" +msgstr "" + +#: soundserver.cpp:32 +msgid "SoundServer Plugin" +msgstr "" + +#: soundserver.cpp:34 +msgid "initializing tderadio soundserver" +msgstr "" diff --git a/plugins/soundserver/soundserver.cpp b/plugins/soundserver/soundserver.cpp new file mode 100644 index 0000000..305e4c2 --- /dev/null +++ b/plugins/soundserver/soundserver.cpp @@ -0,0 +1,74 @@ +/*************************************************************************** + soundserver.cpp - description + ------------------- + begin : Sun Apr 17 2005 + copyright : (C) 2003 by Martin Witte + email : witte@kawo1.rwth-aachen.de + ***************************************************************************/ + +/*************************************************************************** + * * + * 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 <tdeapplication.h> +#include <tdelocale.h> + + +/////////////////////////////////////////////////////////////////////// +//// plugin library functions + +PLUGIN_LIBRARY_FUNCTIONS(SoundServer, "tderadio-soundserver", i18n("SoundServer")); + +///////////////////////////////////////////////////////////////////////////// + +SoundServer::SoundServer(const TQString &name) + : PluginBase(name, i18n("SoundServer Plugin")) +{ + logDebug(i18n("initializing tderadio 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/plugins/soundserver/soundserver.h b/plugins/soundserver/soundserver.h new file mode 100644 index 0000000..f01e863 --- /dev/null +++ b/plugins/soundserver/soundserver.h @@ -0,0 +1,54 @@ +/*************************************************************************** + soundserver.h - description + ------------------- + begin : Sun Apr 17 2005 + copyright : (C) 2003 by Martin Witte + email : witte@kawo1.rwth-aachen.de + ***************************************************************************/ + +/*************************************************************************** + * * + * 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 |