From d95a4fea540b371fa86493d069fdbd54f33c5b40 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 30 May 2022 19:40:31 +0900 Subject: Standardize folder structure. Signed-off-by: Michele Calgaro --- plugins/soundserver/CMakeL10n.txt | 6 ++ plugins/soundserver/Makefile.am | 18 ++++++ plugins/soundserver/po/Makefile.am | 2 + plugins/soundserver/po/de.po | 44 +++++++++++++++ plugins/soundserver/po/ru.po | 42 ++++++++++++++ plugins/soundserver/po/tderadio-soundserver.pot | 40 +++++++++++++ plugins/soundserver/soundserver.cpp | 74 +++++++++++++++++++++++++ plugins/soundserver/soundserver.h | 54 ++++++++++++++++++ 8 files changed, 280 insertions(+) create mode 100644 plugins/soundserver/CMakeL10n.txt create mode 100644 plugins/soundserver/Makefile.am create mode 100644 plugins/soundserver/po/Makefile.am create mode 100644 plugins/soundserver/po/de.po create mode 100644 plugins/soundserver/po/ru.po create mode 100644 plugins/soundserver/po/tderadio-soundserver.pot create mode 100644 plugins/soundserver/soundserver.cpp create mode 100644 plugins/soundserver/soundserver.h (limited to 'plugins/soundserver') 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 , 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 \n" +"Language-Team: German \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. +# Алексей Кузнецов , 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: Алексей Кузнецов \n" +"Language-Team: \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 , 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 \n" +"Language-Team: LANGUAGE \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 +#include + + +/////////////////////////////////////////////////////////////////////// +//// 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 +#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 -- cgit v1.2.1