CMake conversion.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/4/head
Michele Calgaro 2 years ago
parent f3116341d0
commit bc7518bdba
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -0,0 +1,94 @@
############################################
# #
# Improvements and feedbacks are welcome #
# #
# This file is released under GPL >= 3 #
# #
############################################
cmake_minimum_required( VERSION 3.1 )
#### general package setup
project( tderadio )
#### include essential cmake modules
include( FindPkgConfig )
include( CheckSymbolExists )
include( CheckIncludeFile )
include( CheckLibraryExists )
include( CheckCSourceCompiles )
include( CheckCXXSourceCompiles )
#### include our cmake modules
include( TDEMacros )
##### set version number ########################
tde_set_project_version( )
##### setup install paths
include( TDESetupPaths )
tde_setup_paths( )
##### optional stuff
option( WITH_ALL_OPTIONS "Enable all optional support" OFF )
option( WITH_LAME "Enable lame support" ${WITH_ALL_OPTIONS} )
option( WITH_OGG "Enable ogg/vorbis support" ${WITH_ALL_OPTIONS} )
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
##### user requested modules
option( BUILD_ALL "Build all" ON )
option( BUILD_DOC "Build documentation" ${BUILD_ALL} )
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
option( BUILD_ALSA_PLUGIN "Build ALSA plugin" ${BUILD_ALL} )
option( BUILD_LIRC_PLUGIN "Build LIRC plugin" ${BUILD_ALL} )
option( BUILD_OSS_PLUGIN "Build OSS plugin" ${BUILD_ALL} )
##### configure checks
include( ConfigureChecks.cmake )
###### global compiler settings
add_definitions( -DHAVE_CONFIG_H )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
##### directories
add_subdirectory( convert-presets )
add_subdirectory( icons )
add_subdirectory( plugins )
add_subdirectory( presets )
add_subdirectory( src )
##### other data ################################
tde_conditional_add_project_docs( BUILD_DOC )
##### write configure files
configure_file( config.h.cmake config.h @ONLY )

@ -0,0 +1,94 @@
###########################################
# #
# Improvements and feedback are welcome #
# #
# This file is released under GPL >= 3 #
# #
###########################################
# required stuff
find_package( TQt )
find_package( TDE )
tde_setup_architecture_flags( )
include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
tde_setup_largefiles( )
##### check for gcc visibility support
if( WITH_GCC_VISIBILITY )
tde_setup_gcc_visibility( )
endif( WITH_GCC_VISIBILITY )
##### check for ALSA #####
if( BUILD_ALSA_PLUGIN )
find_package( ALSA )
if( NOT ALSA_FOUND )
tde_message_fatal( "alsa support is requested, but was not found on your system" )
endif( NOT ALSA_FOUND )
endif( BUILD_ALSA_PLUGIN )
###### check for LAME #####
if( WITH_LAME )
check_include_file( lame/lame.h HAVE_LAME_H )
if( NOT HAVE_LAME_H )
tde_message_fatal( "lame is requested, but not found on your system" )
endif( )
check_library_exists( mp3lame lame_init "" HAVE_LAME )
if( NOT HAVE_LAME )
tde_message_fatal( "mp3lame is requested, but not found on your system" )
endif( )
set( HAVE_LAME 1 )
set( LAME_LIBRARIES mp3lame CACHE INTERNAL "" FORCE )
endif( WITH_LAME )
##### check for LIRC #####
if( BUILD_LIRC_PLUGIN )
pkg_search_module( LIRC lirc )
if( NOT LIRC_FOUND )
tde_message_fatal( "lirc support is requested, but was not found on your system" )
endif( NOT LIRC_FOUND )
endif( BUILD_LIRC_PLUGIN )
##### check for OGG/Vorbis #####
if( WITH_OGG )
pkg_search_module( VORBIS vorbis )
pkg_search_module( VORBISFILE vorbisfile )
pkg_search_module( VORBISENC vorbisenc )
pkg_search_module( OGG ogg )
if( NOT VORBIS_FOUND )
tde_message_fatal( "vorbis is requested, but was not found on your system" )
elseif( NOT VORBISFILE_FOUND OR NOT VORBISENC_FOUND OR NOT OGG_FOUND )
tde_message_fatal( "vorbis is requested, but some of it's essential parts wasn't found on your system" )
endif( )
set( HAVE_OGG 1 )
endif( WITH_OGG )
##### check for sndfile #####
pkg_search_module( SNDFILE sndfile )
if( NOT SNDFILE_FOUND )
tde_message_fatal( "sndfile is required, but was not found on your system" )
endif( )
##### Check for videodev #####
check_include_file( "linux/videodev2.h" HAVE_VIDEODEV2_H )
if( HAVE_VIDEODEV2_H )
set( HAVE_V4L2 1 )
endif( )

@ -1,16 +1,3 @@
Note on automake/autoconf versions
==================================
TDERadio should build with automake >= 1.6.1 and autoconf 2.5*
If you have such a version but configure/make complains it needs e.g.
automake 1.7.x you should try to run
make -f Makefile.dist
before you run ./configure.
Basic Installation Basic Installation
================== ==================

@ -1,72 +0,0 @@
This is a comfortable radio application for KDE 3.x.
You can get the latest version from
http://sourceforge.net/projects/tderadio/
------------------
Mailing Lists
------------------
http://lists.sourceforge.net/lists/listinfo/tderadio-user
http://lists.sourceforge.net/lists/listinfo/tderadio-devel
http://lists.sourceforge.net/lists/listinfo/tderadio-announce
------------------
Compile CVS tree
------------------
First checkout tderadio from CVS
mkdir tderadio-cvs
cd tderadio-cvs
# next follow instructions on http://sourceforge.net/cvs/?group_id=45668
cd tderadio
and compile it
make -f Makefile.dist
./configure
make
make install
-------------------
Configuration files
-------------------
gui, alarms, etc.:
<dot-tdedir>/share/config/tderadiorc
stations (xml-format):
<dot-tdedir>/share/apps/tderadio/stations.krp
systemwide presets (xml-format):
<tdedir>/share/apps/tderadio/presets/<country>/<city>-<media>.krp
------------------
lirc support
------------------
lirc support is realized by the lirc_client lib. It should be detected
automatically by ./configure. This library is used to translate the
remote control key names to names used by tderadio, and may additionally
be used for state management (tv, etc). An example for an apropriate
.lircrc file can be found in ./tderadio/dot-lircrc.example.
Names used by tderadio:
TV powerOff, give tv program a chance
0..9 numerical station selection
CH+ frequency increment
CH- frequency decrement
VOL+ volume increment
VOL- volume decrement
CH-SEARCH beachward station search
CH+SEARCH forward statino search
POWER power tderadio on/off
RADIO power tderadio on
SLEEP enable sleep countdown
NEXT next station in list
PREV prev station in list
QUIT quit tderadio application

@ -0,0 +1,61 @@
TDERadio - a comfortable radio application for TDE
Requirements
------------
- v4l or v4l2 enabled kernel
- libsndfile (development package or header for compilation, library for execution)
- libmp3lame (for mp3 encoding)
- oss support (mixer, dsp/pcm) ??
- radio card ;)
Configuration files
---------------------
gui, alarms, etc.:
.trinity/share/config/tderadiorc
stations (xml-format):
.trinity/share/apps/tderadio/stations.krp
systemwide presets (xml-format):
<tdedir>/share/apps/tderadio/presets/<country>/<city>-<media>.krp
lirc support
--------------
lirc support is realized by the lirc_client lib. This library is used to
translate the remote control key names to names used by tderadio, and may
additionally be used for state management (tv, etc).
Names used by tderadio:
TV powerOff, give tv program a chance
0..9 numerical station selection
CH+ frequency increment
CH- frequency decrement
VOL+ volume increment
VOL- volume decrement
CH-SEARCH beachward station search
CH+SEARCH forward statino search
POWER power tderadio on/off
RADIO power tderadio on
SLEEP enable sleep countdown
NEXT next station in list
PREV prev station in list
QUIT quit tderadio application
.
Contributing
--------------
If you wish to contribute to TDERadio, you might do so:
- TDE Gitea Workspace (TGW) collaboration tool.
https://mirror.git.trinitydesktop.org/gitea
- TDE Weblate Translation Workspace (TWTW) collaboration tool.
https://mirror.git.trinitydesktop.org/weblate

@ -57,8 +57,6 @@ FUTURE
====== ======
* mediacontrol applet integration * mediacontrol applet integration
* dcop interface * dcop interface
* compile with -DTQT_NO_ASCII_CAST (see src/Makefile.am)
(necessary for Qt4)
* just grep for FIXME and TODO... * just grep for FIXME and TODO...

@ -0,0 +1,17 @@
#define VERSION "@VERSION@"
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
// Defined if LAME support found
#cmakedefine HAVE_LAME
// Defined if OGG/Vorbis support found
#cmakedefine HAVE_OGG
// Defined if videodev2 support found
#cmakedefine HAVE_V4L2

@ -0,0 +1,26 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### convert_presets (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### convert_presets (executable)
tde_add_executable( convert-presets AUTOMOC
SOURCES convert-presets.cpp
LINK tdecore-shared tdeui-shared
DESTINATION ${BIN_INSTALL_DIR}
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,150 @@
.\" This file was generated by kdemangen.pl
.TH CONVERT\-PRESETS 1 "Dec 2005" "Trinity Desktop Environment" "convert-presets"
.SH NAME
convert\-presets
\- convert-presets
.SH SYNOPSIS
convert\-presets [Qt\-options] [TDE\-options] [options] [preset files]
.SH DESCRIPTION
convert-presets
.SH OPTIONS
.SS
.SS Arguments:
.TP
.B preset
files preset file to convert
.SS Options:
-q be quiet
.SS
.SS Generic options:
.TP
.B \-\-help
Show help about options
.TP
.B \-\-help\-qt
Show Qt specific options
.TP
.B \-\-help\-tde
Show TDE specific options
.TP
.B \-\-help\-all
Show all options
.TP
.B \-\-author
Show author information
.TP
.B \-v, \-\-version
Show version information
.TP
.B \-\-license
Show license information
.TP
.B \-\-
End of options
.SS
.SS TDE options:
.TP
.B \-\-caption <caption>
Use 'caption' as name in the titlebar
.TP
.B \-\-icon <icon>
Use 'icon' as the application icon
.TP
.B \-\-miniicon <icon>
Use 'icon' as the icon in the titlebar
.TP
.B \-\-config <filename>
Use alternative configuration file
.TP
.B \-\-dcopserver <server>
Use the DCOP Server specified by 'server'
.TP
.B \-\-nocrashhandler
Disable crash handler, to get core dumps
.TP
.B \-\-waitforwm
Waits for a WM_NET compatible windowmanager
.TP
.B \-\-style <style>
sets the application GUI style
.TP
.B \-\-geometry <geometry>
sets the client geometry of the main widget - see man X for the argument format
.SS
.SS Qt options:
.TP
.B \-\-display <displayname>
Use the X-server display 'displayname'
.TP
.B \-\-session <sessionId>
Restore the application for the given 'sessionId'
.TP
.B \-\-cmap
Causes the application to install a private color
map on an 8-bit display
.TP
.B \-\-ncols <count>
Limits the number of colors allocated in the color
cube on an 8-bit display, if the application is
using the QApplication::ManyColor color
specification
.TP
.B \-\-nograb
tells Qt to never grab the mouse or the keyboard
.TP
.B \-\-dograb
running under a debugger can cause an implicit
-nograb, use -dograb to override
.TP
.B \-\-sync
switches to synchronous mode for debugging
.TP
.B \-\-fn, \-\-font <fontname>
defines the application font
.TP
.B \-\-bg, \-\-background <color>
sets the default background color and an
application palette (light and dark shades are
calculated)
.TP
.B \-\-fg, \-\-foreground <color>
sets the default foreground color
.TP
.B \-\-btn, \-\-button <color>
sets the default button color
.TP
.B \-\-name <name>
sets the application name
.TP
.B \-\-title <title>
sets the application title (caption)
.TP
.B \-\-visual TrueColor
forces the application to use a TrueColor visual on
an 8-bit display
.TP
.B \-\-inputstyle <inputstyle>
sets XIM (X Input Method) input style. Possible
values are onthespot, overthespot, offthespot and
root
.TP
.B \-\-im <XIM server>
set XIM server
.TP
.B \-\-noxim
disable XIM
.TP
.B \-\-reverse
mirrors the whole layout of widgets
.SS
.SH SEE ALSO
Full user documentation is available through the TDE Help Center. You can also enter the URL
.BR help:/convert\-presets/
directly into konqueror or you can run
.BR "`khelpcenter help:/convert\-presets/'"
from the command-line.
.br
.SH AUTHORS
Ernst Martin Witte, Klas Kalass
.nf

@ -0,0 +1,147 @@
.\" This file was generated by kdemangen.pl
.TH KRADIO 1 "Dec 2005" "Trinity Desktop Environment" "TDERadio"
.SH NAME
tderadio
\- TDERadio
.SH SYNOPSIS
tderadio [Qt\-options] [TDE\-options]
.SH DESCRIPTION
TDERadio
.SH OPTIONS
.SS Generic options:
.TP
.B \-\-help
Show help about options
.TP
.B \-\-help\-qt
Show Qt specific options
.TP
.B \-\-help\-tde
Show TDE specific options
.TP
.B \-\-help\-all
Show all options
.TP
.B \-\-author
Show author information
.TP
.B \-v, \-\-version
Show version information
.TP
.B \-\-license
Show license information
.TP
.B \-\-
End of options
.SS
.SS TDE options:
.TP
.B \-\-caption <caption>
Use 'caption' as name in the titlebar
.TP
.B \-\-icon <icon>
Use 'icon' as the application icon
.TP
.B \-\-miniicon <icon>
Use 'icon' as the icon in the titlebar
.TP
.B \-\-config <filename>
Use alternative configuration file
.TP
.B \-\-dcopserver <server>
Use the DCOP Server specified by 'server'
.TP
.B \-\-nocrashhandler
Disable crash handler, to get core dumps
.TP
.B \-\-waitforwm
Waits for a WM_NET compatible windowmanager
.TP
.B \-\-style <style>
sets the application GUI style
.TP
.B \-\-geometry <geometry>
sets the client geometry of the main widget - see man X for the argument format
.SS Qt options:
.TP
.B \-\-display <displayname>
Use the X-server display 'displayname'
.TP
.B \-\-session <sessionId>
Restore the application for the given 'sessionId'
.TP
.B \-\-cmap
Causes the application to install a private color
map on an 8-bit display
.TP
.B \-\-ncols <count>
Limits the number of colors allocated in the color
cube on an 8-bit display, if the application is
using the QApplication::ManyColor color
specification
.TP
.B \-\-nograb
tells Qt to never grab the mouse or the keyboard
.TP
.B \-\-dograb
running under a debugger can cause an implicit
-nograb, use -dograb to override
.TP
.B \-\-sync
switches to synchronous mode for debugging
.TP
.B \-\-fn, \-\-font <fontname>
defines the application font
.TP
.B \-\-bg, \-\-background <color>
sets the default background color and an
application palette (light and dark shades are
calculated)
.TP
.B \-\-fg, \-\-foreground <color>
sets the default foreground color
.TP
.B \-\-btn, \-\-button <color>
sets the default button color
.TP
.B \-\-name <name>
sets the application name
.TP
.B \-\-title <title>
sets the application title (caption)
.TP
.B \-\-visual TrueColor
forces the application to use a TrueColor visual on
an 8-bit display
.TP
.B \-\-inputstyle <inputstyle>
sets XIM (X Input Method) input style. Possible
values are onthespot, overthespot, offthespot and
root
.TP
.B \-\-im <XIM server>
set XIM server
.TP
.B \-\-noxim
disable XIM
.TP
.B \-\-reverse
mirrors the whole layout of widgets
.SS
.SH SEE ALSO
Full user documentation is available through the TDE Help Center. You can also enter the URL
.BR help:/tderadio/
directly into konqueror or you can run
.BR "`khelpcenter help:/tderadio/'"
from the command-line.
.br
.SH AUTHORS
.nf
Martin Witte <witte@kawo1.rwth-aachen.de>
.br
Marcus Camen <mcamen@mcamen.de>
.br
Klas Kalass <klas.kalass@gmx.de>
.br

@ -0,0 +1 @@
tde_install_icons( )

@ -0,0 +1,14 @@
tde_conditional_add_subdirectory( BUILD_ALSA_PLUGIN alsa-sound )
add_subdirectory( gui-docking-menu )
add_subdirectory( gui-error-log )
add_subdirectory( gui-quickbar )
add_subdirectory( gui-standard-display )
tde_conditional_add_subdirectory( BUILD_LIRC_PLUGIN lirc )
tde_conditional_add_subdirectory( BUILD_OSS_PLUGIN oss-sound )
add_subdirectory( radio )
add_subdirectory( recording )
add_subdirectory( soundserver )
add_subdirectory( streaming )
add_subdirectory( timecontrol )
add_subdirectory( timeshifter )
add_subdirectory( v4lradio )

@ -0,0 +1,31 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### alsa-sound (icons and translations)
add_subdirectory( icons )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### alsa-sound (plugin)
tde_add_kpart( libalsa-sound AUTOMOC
SOURCES
alsa-sound.cpp alsa-sound-configuration-ui.ui
alsa-sound-configuration.cpp alsa-mixer-element-ui.ui
alsa-mixer-element.cpp alsa-config-mixer-setting.cpp
LINK tderadio-shared ${ALSA_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,28 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/src
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### gui-docking-menu (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### gui-docking-menu (plugin)
tde_add_kpart( libdocking-menu AUTOMOC
SOURCES docking-configuration.cpp docking.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,27 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### gui-error-log (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### gui-error-log (plugin)
tde_add_kpart( liberror-log AUTOMOC
SOURCES errorlog.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,29 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/src
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
${SNDFILE_LIBRARY_DIRS}
)
##### gui-quickbar (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### gui-quickbar (plugin)
tde_add_kpart( libquickbar AUTOMOC
SOURCES buttonflowlayout.cpp quickbar.cpp quickbar-configuration.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,31 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### gui-standard-display (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### gui-standard-display (plugin)
tde_add_kpart( libstandard-display AUTOMOC
SOURCES
displaycfg.cpp displaycfg_interfaces.cpp radioview-configuration.cpp
radioview.cpp radioview_element.cpp radioview_frequencyradio.cpp
radioview_frequencyseeker.cpp radioview_volume.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,35 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### lirc (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### lirc (plugin)
tde_add_kpart( liblirc AUTOMOC
SOURCES lircsupport.cpp lirc-configuration-ui.ui lirc-configuration.cpp listviewitem_lirc.cpp
LINK tderadio-shared ${LIRC_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)
##### other data
INSTALL(
FILES default-dot-lircrc
DESTINATION ${DATA_INSTALL_DIR}/tderadio
)

@ -17,9 +17,7 @@
#include "lircsupport.h" #include "lircsupport.h"
#ifdef HAVE_LIRC
#include <lirc/lirc_client.h> #include <lirc/lirc_client.h>
#endif
#include <tqsocketnotifier.h> #include <tqsocketnotifier.h>
#include <tqtimer.h> #include <tqtimer.h>
@ -43,9 +41,7 @@
/////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////
//// plugin library functions //// plugin library functions
//#ifdef HAVE_LIRC
PLUGIN_LIBRARY_FUNCTIONS(LircSupport, "tderadio-lirc", i18n("Linux Infrared Control (LIRC) Support")); PLUGIN_LIBRARY_FUNCTIONS(LircSupport, "tderadio-lirc", i18n("Linux Infrared Control (LIRC) Support"));
//#endif
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
@ -54,7 +50,6 @@ LircSupport::LircSupport(const TQString &name)
m_TakeRawLIRC(false) m_TakeRawLIRC(false)
{ {
#ifdef HAVE_LIRC
logDebug(i18n("initializing tderadio lirc plugin")); logDebug(i18n("initializing tderadio lirc plugin"));
fprintf (stderr, "%s\n", (const char*)i18n("initializing tderadio lirc plugin").utf8()); fprintf (stderr, "%s\n", (const char*)i18n("initializing tderadio lirc plugin").utf8());
char *prg = (char*)"tderadio"; char *prg = (char*)"tderadio";
@ -111,7 +106,6 @@ LircSupport::LircSupport(const TQString &name)
logDebug(i18n("Initializing tderadio lirc plugin successful")); logDebug(i18n("Initializing tderadio lirc plugin successful"));
fprintf (stderr, "%s\n", (const char*)i18n("Initializing tderadio lirc plugin successful").utf8()); fprintf (stderr, "%s\n", (const char*)i18n("Initializing tderadio lirc plugin successful").utf8());
} }
#endif
m_kbdTimer = new TQTimer (this); m_kbdTimer = new TQTimer (this);
TQObject::connect (m_kbdTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotKbdTimedOut())); TQObject::connect (m_kbdTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotKbdTimedOut()));
@ -122,20 +116,17 @@ LircSupport::LircSupport(const TQString &name)
LircSupport::~LircSupport() LircSupport::~LircSupport()
{ {
#ifdef HAVE_LIRC
if (m_fd_lirc != -1) if (m_fd_lirc != -1)
lirc_deinit(); lirc_deinit();
if (m_lircConfig) if (m_lircConfig)
lirc_freeconfig(m_lircConfig); lirc_freeconfig(m_lircConfig);
m_fd_lirc = -1; m_fd_lirc = -1;
m_lircConfig = 0; m_lircConfig = 0;
#endif
} }
void LircSupport::slotLIRC(int /*socket*/ ) void LircSupport::slotLIRC(int /*socket*/ )
{ {
#ifdef HAVE_LIRC
if (!m_lircConfig || !m_lirc_notify || m_fd_lirc == -1) if (!m_lircConfig || !m_lirc_notify || m_fd_lirc == -1)
return; return;
@ -173,7 +164,6 @@ void LircSupport::slotLIRC(int /*socket*/ )
if (code) if (code)
free (code); free (code);
#endif
} }

@ -141,11 +141,9 @@ signals:
protected: protected:
#ifdef HAVE_LIRC
TQSocketNotifier *m_lirc_notify; TQSocketNotifier *m_lirc_notify;
int m_fd_lirc; int m_fd_lirc;
struct lirc_config *m_lircConfig; struct lirc_config *m_lircConfig;
#endif
TQTimer *m_kbdTimer; TQTimer *m_kbdTimer;
int m_addIndex; int m_addIndex;

@ -0,0 +1 @@
tde_add_project_translations()

@ -5,7 +5,7 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2020-05-11 04:30+0200\n" "POT-Creation-Date: 2022-07-09 17:53+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -129,46 +129,46 @@ msgstr ""
msgid "Double Click on the entries to change the assignments" msgid "Double Click on the entries to change the assignments"
msgstr "" msgstr ""
#: lircsupport.cpp:47 #: lircsupport.cpp:44
msgid "Linux Infrared Control (LIRC) Support" msgid "Linux Infrared Control (LIRC) Support"
msgstr "" msgstr ""
#: lircsupport.cpp:53 lircsupport.cpp:332 #: lircsupport.cpp:49 lircsupport.cpp:322
msgid "LIRC Plugin" msgid "LIRC Plugin"
msgstr "" msgstr ""
#: lircsupport.cpp:58 lircsupport.cpp:59 #: lircsupport.cpp:53 lircsupport.cpp:54
msgid "initializing tderadio lirc plugin" msgid "initializing tderadio lirc plugin"
msgstr "" msgstr ""
#: lircsupport.cpp:67 #: lircsupport.cpp:62
msgid "" msgid ""
"%1 does not exist. File was created with TDERadio's default .lircrc proposal" "%1 does not exist. File was created with TDERadio's default .lircrc proposal"
msgstr "" msgstr ""
#: lircsupport.cpp:96 #: lircsupport.cpp:91
msgid "There is no entry for tderadio in any of your .lircrc files." msgid "There is no entry for tderadio in any of your .lircrc files."
msgstr "" msgstr ""
#: lircsupport.cpp:97 #: lircsupport.cpp:92
msgid "Please setup your .lircrc files correctly." msgid "Please setup your .lircrc files correctly."
msgstr "" msgstr ""
#: lircsupport.cpp:108 lircsupport.cpp:109 #: lircsupport.cpp:103 lircsupport.cpp:104
msgid "Initializing tderadio lirc plugin failed" msgid "Initializing tderadio lirc plugin failed"
msgstr "" msgstr ""
#: lircsupport.cpp:111 lircsupport.cpp:112 #: lircsupport.cpp:106 lircsupport.cpp:107
msgid "Initializing tderadio lirc plugin successful" msgid "Initializing tderadio lirc plugin successful"
msgstr "" msgstr ""
#: lircsupport.cpp:169 #: lircsupport.cpp:160
msgid "" msgid ""
"Reading from LIRC socket failed. Disabling LIRC Functions till next start of " "Reading from LIRC socket failed. Disabling LIRC Functions till next start of "
"tderadio" "tderadio"
msgstr "" msgstr ""
#: lircsupport.cpp:331 #: lircsupport.cpp:321
msgid "LIRC Support" msgid "LIRC Support"
msgstr "" msgstr ""

@ -0,0 +1,28 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### oss-sound (icons and translations)
add_subdirectory( icons )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### oss-sound (plugin)
tde_add_kpart( liboss-sound AUTOMOC
SOURCES oss-sound.cpp oss-sound-configuration-ui.ui oss-sound-configuration.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,28 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${CMAKE_BINARY_DIR}/src
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### radio (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### radio (plugin)
tde_add_kpart( libradio AUTOMOC
SOURCES radio-configuration.cpp radio-configuration-ui.ui radio.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,33 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### recording (icons and translations)
add_subdirectory( icons )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### recording (plugin)
tde_add_kpart( librecording AUTOMOC
SOURCES
recording-configuration.cpp recording-configuration-ui.ui recording.cpp
recording-config.cpp reccfg_interfaces.cpp encoder.cpp recording-datamonitor.cpp
recording-monitor.cpp encoder_mp3.cpp encoder_ogg.cpp encoder_pcm.cpp
LINK tderadio-shared ${LAME_LIBRARIES} ${OGG_LIBRARIES} ${VORBIS_LIBRARIES}
${VORBISFILE_LIBRARIES} ${VORBISENC_LIBRARIES} ${SNDFILE_LIBRARIES}
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,27 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### soundserver (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### soundserver (plugin)
tde_add_kpart( libsoundserver AUTOMOC
SOURCES soundserver.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,31 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### streaming (icons and translations)
add_subdirectory( icons )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### streaming (plugin)
tde_add_kpart( libstreaming AUTOMOC
SOURCES
streaming.cpp streaming-configuration-ui.ui
streaming-configuration.cpp streaming-job.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,28 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### timecontrol (icons and translations)
add_subdirectory( icons )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### timecontrol (plugin)
tde_add_kpart( libtimecontrol AUTOMOC
SOURCES timecontrol-configuration.cpp timecontrol-configuration-ui.ui timecontrol.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,28 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### timeshifter (icons and translations)
add_subdirectory( icons )
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### timeshifter (plugin)
tde_add_kpart( libtimeshifter AUTOMOC
SOURCES timeshifter.cpp timeshifter-configuration-ui.ui timeshifter-configuration.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -0,0 +1,30 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### v4lradio (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### v4lradio (plugin)
tde_add_kpart( libv4lradio AUTOMOC
SOURCES
v4lcfg_interfaces.cpp v4lradio-configuration.cpp
v4lradio-configuration-ui.ui v4lradio.cpp
LINK tderadio-shared
DESTINATION ${LIB_INSTALL_DIR}/${PROJECT_NAME}/plugins
)

@ -0,0 +1 @@
tde_add_project_translations()

@ -1083,7 +1083,7 @@ ConfigPageInfo V4LRadio::createConfigurationPage()
AboutPageInfo V4LRadio::createAboutPage() AboutPageInfo V4LRadio::createAboutPage()
{ {
TDEAboutData aboutData("tderadio", /* TDEAboutData aboutData("tderadio",
NULL, NULL,
NULL, NULL,
I18N_NOOP("V4L/V4L2 Plugin for TDERadio." I18N_NOOP("V4L/V4L2 Plugin for TDERadio."
@ -1104,7 +1104,8 @@ AboutPageInfo V4LRadio::createAboutPage()
i18n("V4L/V4L2"), i18n("V4L/V4L2"),
i18n("V4L/V4L2 Plugin"), i18n("V4L/V4L2 Plugin"),
"applications-utilities" "applications-utilities"
); );*/
return AboutPageInfo();
} }
//////////////////////////////////////// ////////////////////////////////////////

@ -0,0 +1,23 @@
file( GLOB_RECURSE _preset_dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/* )
unset( _dirs )
foreach( _preset_dir IN LISTS _preset_dirs )
get_filename_component( _dir ${_preset_dir} PATH )
list( APPEND _dirs ${_dir} )
endforeach()
if( _dirs )
list( SORT _dirs )
list( REMOVE_DUPLICATES _dirs )
endif()
foreach( _dir IN LISTS _dirs )
file( GLOB _krp_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/*.krp )
if( _krp_files )
INSTALL(
FILES ${_krp_files}
DESTINATION ${DATA_INSTALL_DIR}/tderadio/presets/${_dir}
)
endif()
endforeach()

@ -0,0 +1,89 @@
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_BINARY_DIR}
${TQT_INCLUDE_DIRS}
${TDE_INCLUDE_DIR}
)
link_directories(
${TQT_LIBRARY_DIRS}
${TDE_LIB_DIR}
)
##### tderadio (translations)
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
##### tderadio (shared)
tde_add_library( tderadio SHARED AUTOMOC
META_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/include
SOURCES
alarm.cpp
debug-profiler.cpp
errorlog-interfaces.cpp
fileringbuffer.cpp
frequencyradiostation.cpp
frequencyseekhelper.cpp
internetradiostation.cpp
multibuffer.cpp
plugin_configuration_dialog.cpp
plugins.cpp
pluginmanager.cpp
pluginmanager-configuration.cpp
pluginmanager-configuration-ui.ui
radio_interfaces.cpp
radiodevice_interfaces.cpp
radiodevicepool_interfaces.cpp
radiostation.cpp
radiostation-config.cpp
radiostation-listview.cpp
ringbuffer.cpp
seekhelper.cpp
soundformat.cpp
soundstreamclient_interfaces.cpp
soundstreamid.cpp
standardscandialog.cpp
standardscandialog-ui.ui
station-drag-object.cpp
stationlist.cpp
stationlistxmlhandler.cpp
stationselection_interfaces.cpp
stationselector.cpp
stationselector-ui.ui
timecontrol_interfaces.cpp
utils.cpp
widgetplugins.cpp
LINK tdecore-shared tdeui-shared tdeio-shared
VERSION 0.0.0
DESTINATION ${LIB_INSTALL_DIR}
)
##### tderadio (executable)
tde_add_executable( tderadio AUTOMOC
META_INCLUDES ${CMAKE_CURRENT_SOURCE_DIR}/include
SOURCES
main.cpp
tderadioapp.cpp
aboutwidget.cpp
LINK tderadio-shared
DESTINATION ${BIN_INSTALL_DIR}
)
##### other data
tde_create_translated_desktop( tderadio.desktop )
INSTALL(
FILES tderadio.xpm
DESTINATION ${SHARE_INSTALL_PREFIX}/pixmaps
)

@ -8,8 +8,6 @@ METASOURCES = AUTO
META_INCLUDES = $(srcdir)/include META_INCLUDES = $(srcdir)/include
KDE_CXXFLAGS="-UTQT_NO_ASCII_CAST"
bin_PROGRAMS = tderadio bin_PROGRAMS = tderadio
tderadio_SOURCES = \ tderadio_SOURCES = \

@ -21,8 +21,8 @@
#include <sys/resource.h> #include <sys/resource.h>
TimeProfiler global_time_profiler; KDE_EXPORT TimeProfiler global_time_profiler;
MemProfiler global_mem_profiler; KDE_EXPORT MemProfiler global_mem_profiler;
Profiler::Profiler() Profiler::Profiler()
{ {

@ -23,13 +23,14 @@
#endif #endif
#include <tqdatetime.h> #include <tqdatetime.h>
#include <kdemacros.h>
#include <vector> #include <vector>
/** /**
*@author Martin Witte *@author Martin Witte
*/ */
class Alarm class KDE_EXPORT Alarm
{ {
public: public:

@ -24,6 +24,7 @@
#include <tqstring.h> #include <tqstring.h>
#include <tqmap.h> #include <tqmap.h>
#include <kdemacros.h>
#if (defined __i386__) || (defined __x86_64__) #if (defined __i386__) || (defined __x86_64__)
static __inline__ unsigned long long int rdtsc() static __inline__ unsigned long long int rdtsc()
@ -39,7 +40,7 @@ static __inline__ unsigned long long int rdtsc()
} }
#endif #endif
class Profiler class KDE_EXPORT Profiler
{ {
public: public:
Profiler(); Profiler();
@ -76,14 +77,14 @@ protected:
}; };
class TimeProfiler : public Profiler class KDE_EXPORT TimeProfiler : public Profiler
{ {
protected: protected:
long long getCounter() const { return rdtsc(); } long long getCounter() const { return rdtsc(); }
}; };
class MemProfiler : public Profiler class KDE_EXPORT MemProfiler : public Profiler
{ {
protected: protected:
long long getCounter() const; long long getCounter() const;
@ -95,7 +96,7 @@ extern MemProfiler global_mem_profiler;
class BlockProfiler class KDE_EXPORT BlockProfiler
{ {
public: public:
BlockProfiler(const TQString &descr); BlockProfiler(const TQString &descr);

@ -23,9 +23,10 @@
#endif #endif
#include <tqstring.h> #include <tqstring.h>
#include <kdemacros.h>
#include <stdio.h> #include <stdio.h>
class FileRingBuffer class KDE_EXPORT FileRingBuffer
{ {
public: public:
FileRingBuffer(const TQString &filename, TQ_UINT64 max_size); FileRingBuffer(const TQString &filename, TQ_UINT64 max_size);

@ -22,6 +22,8 @@
#include <config.h> #include <config.h>
#endif #endif
#include <kdemacros.h>
#include "radiostation.h" #include "radiostation.h"
/** /**
@ -35,7 +37,7 @@
// Kopenhagener Wellenplan: 9kHz // Kopenhagener Wellenplan: 9kHz
#define STATION_FREQ_INTERVAL_AM 0.009 #define STATION_FREQ_INTERVAL_AM 0.009
class FrequencyRadioStation : public RadioStation { class KDE_EXPORT FrequencyRadioStation : public RadioStation {
public: public:
FrequencyRadioStation (); FrequencyRadioStation ();
FrequencyRadioStation (float frequency); FrequencyRadioStation (float frequency);

@ -23,10 +23,11 @@
#endif #endif
#include <tqobject.h> #include <tqobject.h>
#include <kdemacros.h>
#include "radiodevice_interfaces.h" #include "radiodevice_interfaces.h"
#include "seekhelper.h" #include "seekhelper.h"
class FrequencySeekHelper : public TQObject, class KDE_EXPORT FrequencySeekHelper : public TQObject,
public SeekHelper, public SeekHelper,
public IFrequencyRadioClient public IFrequencyRadioClient
{ {

@ -401,7 +401,7 @@ private:
#define INTERFACE(IF, cmplIF) \ #define INTERFACE(IF, cmplIF) \
class IF; \ class IF; \
class cmplIF; \ class cmplIF; \
class IF : public InterfaceBase<IF, cmplIF> \ class KDE_EXPORT IF : public InterfaceBase<IF, cmplIF> \
#define IF_CON_DESTRUCTOR(IF, n) \ #define IF_CON_DESTRUCTOR(IF, n) \
IF() : BaseClass((n)) {} \ IF() : BaseClass((n)) {} \

@ -26,12 +26,13 @@
// KDE includes // KDE includes
#include <kurl.h> #include <kurl.h>
#include <kdemacros.h>
/** /**
* @author Klas Kalass, Ernst Martin Witte * @author Klas Kalass, Ernst Martin Witte
*/ */
class InternetRadioStation : public RadioStation { class KDE_EXPORT InternetRadioStation : public RadioStation {
public: public:
InternetRadioStation(); InternetRadioStation();
InternetRadioStation(KURL const &url); InternetRadioStation(KURL const &url);

@ -24,8 +24,9 @@
#include <tqsemaphore.h> #include <tqsemaphore.h>
#include <tqstring.h> #include <tqstring.h>
#include <kdemacros.h>
class MultiBuffer class KDE_EXPORT MultiBuffer
{ {
public: public:
MultiBuffer(size_t n_buffers, size_t buffersize); MultiBuffer(size_t n_buffers, size_t buffersize);

@ -24,6 +24,7 @@
#include <tqstring.h> #include <tqstring.h>
#include <tqptrdict.h> #include <tqptrdict.h>
#include <kdemacros.h>
#include "plugins.h" #include "plugins.h"
@ -42,7 +43,7 @@ class TQMenuData;
class TDERadioApp; class TDERadioApp;
class PluginManager : public TQObject class KDE_EXPORT PluginManager : public TQObject
{ {
Q_OBJECT Q_OBJECT

@ -80,7 +80,7 @@ struct ConfigPageInfo
typedef ConfigPageInfo AboutPageInfo; typedef ConfigPageInfo AboutPageInfo;
class PluginBase : public IErrorLogClient class KDE_EXPORT PluginBase : public IErrorLogClient
{ {
friend class PluginManager; friend class PluginManager;
public : public :
@ -135,22 +135,22 @@ protected :
#define PLUGIN_LIBRARY_FUNCTIONS(class_name, i18nName, description) \ #define PLUGIN_LIBRARY_FUNCTIONS(class_name, i18nName, description) \
extern "C" void TDERadioPlugin_LoadLibrary() \ extern "C" KDE_EXPORT void TDERadioPlugin_LoadLibrary() \
{ \ { \
TDEGlobal::locale()->insertCatalogue(i18nName); \ TDEGlobal::locale()->insertCatalogue(i18nName); \
} \ } \
\ \
extern "C" void TDERadioPlugin_UnloadLibrary() \ extern "C" KDE_EXPORT void TDERadioPlugin_UnloadLibrary() \
{ \ { \
TDEGlobal::locale()->removeCatalogue(i18nName); \ TDEGlobal::locale()->removeCatalogue(i18nName); \
} \ } \
\ \
extern "C" void TDERadioPlugin_GetAvailablePlugins(TQMap<TQString, TQString> &info) \ extern "C" KDE_EXPORT void TDERadioPlugin_GetAvailablePlugins(TQMap<TQString, TQString> &info) \
{ \ { \
info.insert(#class_name, (description)); \ info.insert(#class_name, (description)); \
} \ } \
\ \
extern "C" PluginBase *TDERadioPlugin_CreatePlugin(const TQString &type, const TQString &object_name) \ extern "C" KDE_EXPORT PluginBase *TDERadioPlugin_CreatePlugin(const TQString &type, const TQString &object_name) \
{ \ { \
if (type == #class_name) { \ if (type == #class_name) { \
return new class_name(object_name); \ return new class_name(object_name); \
@ -161,23 +161,23 @@ extern "C" PluginBase *TDERadioPlugin_CreatePlugin(const TQString &type, const T
#define PLUGIN_LIBRARY_FUNCTIONS2(class_name1, i18nName, description1, class_name2, description2) \ #define PLUGIN_LIBRARY_FUNCTIONS2(class_name1, i18nName, description1, class_name2, description2) \
extern "C" void TDERadioPlugin_LoadLibrary() \ extern "C" KDE_EXPORT void TDERadioPlugin_LoadLibrary() \
{ \ { \
TDEGlobal::locale()->insertCatalogue(i18nName); \ TDEGlobal::locale()->insertCatalogue(i18nName); \
} \ } \
\ \
extern "C" void TDERadioPlugin_UnloadLibrary() \ extern "C" KDE_EXPORT void TDERadioPlugin_UnloadLibrary() \
{ \ { \
TDEGlobal::locale()->removeCatalogue(i18nName); \ TDEGlobal::locale()->removeCatalogue(i18nName); \
} \ } \
\ \
extern "C" void TDERadioPlugin_GetAvailablePlugins(TQMap<TQString, TQString> &info) \ extern "C" KDE_EXPORT void TDERadioPlugin_GetAvailablePlugins(TQMap<TQString, TQString> &info) \
{ \ { \
info.insert(#class_name1, (description1)); \ info.insert(#class_name1, (description1)); \
info.insert(#class_name2, (description2)); \ info.insert(#class_name2, (description2)); \
} \ } \
\ \
extern "C" PluginBase *TDERadioPlugin_CreatePlugin(const TQString &type, const TQString &object_name) \ extern "C" KDE_EXPORT PluginBase *TDERadioPlugin_CreatePlugin(const TQString &type, const TQString &object_name) \
{ \ { \
if (type == #class_name1) { \ if (type == #class_name1) { \
return new class_name1(object_name); \ return new class_name1(object_name); \

@ -23,10 +23,11 @@
#endif #endif
#include <tqwidget.h> #include <tqwidget.h>
#include <kdemacros.h>
class RadioStation; class RadioStation;
class RadioStationConfig : public TQWidget class KDE_EXPORT RadioStationConfig : public TQWidget
{ {
Q_OBJECT Q_OBJECT
@ -42,7 +43,7 @@ signals:
}; };
class UndefinedRadioStationConfig : public RadioStationConfig class KDE_EXPORT UndefinedRadioStationConfig : public RadioStationConfig
{ {
Q_OBJECT Q_OBJECT
@ -58,7 +59,7 @@ public:
class TQSpinBox; class TQSpinBox;
class FrequencyRadioStationConfig : public RadioStationConfig class KDE_EXPORT FrequencyRadioStationConfig : public RadioStationConfig
{ {
Q_OBJECT Q_OBJECT

@ -28,7 +28,7 @@
class RadioStation; class RadioStation;
class StationList; class StationList;
class RadioStationListView : public TDEListView class KDE_EXPORT RadioStationListView : public TDEListView
{ {
Q_OBJECT Q_OBJECT

@ -67,7 +67,7 @@ extern struct RegisterStationClass {} registerStationClass;
class RadioStationConfig; class RadioStationConfig;
class RadioStation class KDE_EXPORT RadioStation
{ {
protected: protected:
RadioStation (RegisterStationClass, const TQString &classname); RadioStation (RegisterStationClass, const TQString &classname);
@ -142,7 +142,7 @@ private:
class UndefinedRadioStation : public RadioStation class KDE_EXPORT UndefinedRadioStation : public RadioStation
{ {
public: public:
UndefinedRadioStation (RegisterStationClass) : RadioStation (registerStationClass, getClassName()) {} UndefinedRadioStation (RegisterStationClass) : RadioStation (registerStationClass, getClassName()) {}
@ -159,6 +159,6 @@ public:
}; };
extern const UndefinedRadioStation undefinedRadioStation; extern "C" const UndefinedRadioStation undefinedRadioStation;
#endif #endif

@ -23,8 +23,9 @@
#endif #endif
#include <sys/types.h> #include <sys/types.h>
#include <kdemacros.h>
class RingBuffer class KDE_EXPORT RingBuffer
{ {
public: public:
RingBuffer(size_t size); RingBuffer(size_t size);

@ -22,11 +22,13 @@
#include <config.h> #include <config.h>
#endif #endif
#include <kdemacros.h>
#include "radiodevice_interfaces.h" #include "radiodevice_interfaces.h"
#include "soundstreamclient_interfaces.h" #include "soundstreamclient_interfaces.h"
class SeekHelper : public IRadioDeviceClient, class KDE_EXPORT SeekHelper : public IRadioDeviceClient,
public ISoundStreamClient public ISoundStreamClient
{ {
public: public:

@ -26,7 +26,7 @@
#include <tqstring.h> #include <tqstring.h>
#include <tdeconfig.h> #include <tdeconfig.h>
struct SoundFormat { struct KDE_EXPORT SoundFormat {
unsigned m_SampleRate; unsigned m_SampleRate;
unsigned m_Channels; unsigned m_Channels;
unsigned m_SampleBits; unsigned m_SampleBits;

@ -22,7 +22,9 @@
#include <config.h> #include <config.h>
#endif #endif
class SoundStreamID { #include <kdemacros.h>
class KDE_EXPORT SoundStreamID {
SoundStreamID(int _id, int _phys_id); SoundStreamID(int _id, int _phys_id);
public: public:

@ -29,8 +29,9 @@
#include <tqtimer.h> #include <tqtimer.h>
#include <tqdatetime.h> #include <tqdatetime.h>
#include <kdemacros.h>
class StandardScanDialog : public StandardScanDialogUI, class KDE_EXPORT StandardScanDialog : public StandardScanDialogUI,
public ISeekRadioClient, public ISeekRadioClient,
// public IRadioSoundClient, // public IRadioSoundClient,
public IRadioClient public IRadioClient

@ -19,8 +19,9 @@
#define KRADIO_STATION_DRAG_OBJECT_H #define KRADIO_STATION_DRAG_OBJECT_H
#include <tqdragobject.h> #include <tqdragobject.h>
#include <kdemacros.h>
class StationDragObject : public TQStoredDrag class KDE_EXPORT StationDragObject : public TQStoredDrag
{ {
public: public:
StationDragObject(const TQStringList &stationIDs, TQWidget *dragSource = NULL, const char * name = NULL); StationDragObject(const TQStringList &stationIDs, TQWidget *dragSource = NULL, const char * name = NULL);

@ -26,6 +26,7 @@
#include "errorlog-interfaces.h" #include "errorlog-interfaces.h"
#include <tqptrlist.h> #include <tqptrlist.h>
#include <kdemacros.h>
class RadioStation; class RadioStation;
class KURL; class KURL;
@ -52,7 +53,7 @@ class KURL;
*/ */
class RawStationList : public TQPtrList<RadioStation> class KDE_EXPORT RawStationList : public TQPtrList<RadioStation>
{ {
public: public:
@ -100,7 +101,7 @@ protected:
* @author Klas Kalass, Ernst Martin Witte * @author Klas Kalass, Ernst Martin Witte
*/ */
class StationList { class KDE_EXPORT StationList {
public: public:
StationList(); StationList();
StationList(const StationList &sl); StationList(const StationList &sl);

@ -23,6 +23,7 @@
#endif #endif
#include <tqstringlist.h> #include <tqstringlist.h>
#include <kdemacros.h>
#include "radio_interfaces.h" #include "radio_interfaces.h"
#include "stationselection_interfaces.h" #include "stationselection_interfaces.h"
@ -34,7 +35,7 @@
class RadioStationListView; class RadioStationListView;
class StationSelector : public StationSelectorUI, class KDE_EXPORT StationSelector : public StationSelectorUI,
public IRadioClient, public IRadioClient,
public IStationSelectionClient public IStationSelectionClient
{ {

@ -26,7 +26,7 @@
class TQWidget; class TQWidget;
class WidgetPluginBase : public PluginBase class KDE_EXPORT WidgetPluginBase : public PluginBase
{ {
public : public :
WidgetPluginBase(const TQString &name, const TQString &description); WidgetPluginBase(const TQString &name, const TQString &description);

@ -0,0 +1 @@
tde_add_project_translations()

@ -42,8 +42,8 @@ TQDict<RadioStation> *RadioStation::stationClassRegistry = 0;
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
RegisterStationClass registerStationClass; KDE_EXPORT RegisterStationClass registerStationClass;
const UndefinedRadioStation undefinedRadioStation (registerStationClass); extern "C" const KDE_EXPORT UndefinedRadioStation undefinedRadioStation (registerStationClass);
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////

@ -32,7 +32,7 @@
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
const StationList emptyStationList; const KDE_EXPORT StationList emptyStationList;
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////

@ -168,4 +168,5 @@
<include location="global" impldecl="in implementation">kpushbutton.h</include> <include location="global" impldecl="in implementation">kpushbutton.h</include>
<include location="global" impldecl="in implementation">radiostation-listview.h</include> <include location="global" impldecl="in implementation">radiostation-listview.h</include>
</includes> </includes>
<exportmacro>KDE_EXPORT</exportmacro>
</UI> </UI>

@ -0,0 +1,189 @@
/* XPM */
static char *tderadio[] = {
/* columns rows colors chars-per-pixel */
"32 32 151 2 ",
" c #000000",
". c #0D0603",
"X c #00040A",
"o c #06090E",
"O c #150D0A",
"+ c #1A120F",
"@ c #010710",
"# c #090C10",
"$ c #050E1C",
"% c #0C121A",
"& c #29150C",
"* c #351406",
"= c #3B180A",
"- c #2C1B14",
"; c #301E16",
": c #32211A",
"> c #3C241B",
", c #030F22",
"< c #111925",
"1 c #0C1D37",
"2 c #0D1F3A",
"3 c #172437",
"4 c #13223A",
"5 c #19273C",
"6 c #1A283D",
"7 c #551F09",
"8 c #411E10",
"9 c #452314",
"0 c #40261B",
"q c #552917",
"w c #752A0B",
"e c #782D0E",
"r c #68321C",
"t c #7C3619",
"y c #462C22",
"u c #463026",
"i c #4C3329",
"p c #5A3221",
"a c #543529",
"s c #563527",
"d c #663B2A",
"f c #773E26",
"g c #723F2A",
"h c #603F31",
"j c #6E412E",
"k c #654132",
"l c #6A493A",
"z c #6E4331",
"x c #744735",
"c c #172945",
"v c #1A2E4E",
"b c #1D3456",
"n c #0C397F",
"m c #1C427C",
"M c #284675",
"N c #823718",
"B c #84391A",
"V c #8A3F20",
"C c #8D4223",
"Z c #89462A",
"A c #914627",
"S c #924728",
"D c #954A2B",
"F c #994E2F",
"G c #844A31",
"H c #9A4F30",
"J c #86533E",
"K c #9D5233",
"L c #955337",
"P c #A15636",
"I c #A65B3B",
"U c #A95E3F",
"Y c #895945",
"T c #AA5F40",
"R c #A25F44",
"E c #8D614E",
"W c #93634E",
"Q c #996854",
"! c #936451",
"~ c #AC6142",
"^ c #A2684F",
"/ c #B16646",
"( c #B26748",
") c #B66B4C",
"_ c #B96E4E",
"` c #AC6D52",
"' c #AD745B",
"] c #BD7252",
"[ c #AF7860",
"{ c #C17656",
"} c #C57A5B",
"| c #C87D5E",
" . c #CA7F60",
".. c #CD8263",
"X. c #C58469",
"o. c #D18666",
"O. c #D28768",
"+. c #D58A6B",
"@. c #D98E6E",
"#. c #DA8F70",
"$. c #DD9272",
"%. c #D39174",
"&. c #E19676",
"*. c #E59A7A",
"=. c #E99E7E",
"-. c #00378B",
";. c #033A8D",
":. c #0C3C85",
">. c #083E90",
",. c #1E4888",
"<. c #0E4393",
"1. c #114595",
"2. c #154998",
"3. c #1A4D9B",
"4. c #1D509D",
"5. c #2C4D80",
"6. c #2F538A",
"7. c #325994",
"8. c #3F6296",
"9. c #2456A2",
"0. c #2A5BA6",
"q. c #2759A4",
"w. c #3666AE",
"e. c #3968AF",
"r. c #3D6BB2",
"t. c #42679E",
"y. c #416FB5",
"u. c #4371B5",
"i. c #4976B9",
"p. c #4C79BC",
"a. c #507CBE",
"s. c #577CB4",
"d. c #537FC0",
"f. c #5A81BC",
"g. c #5681C2",
"h. c #5D86C4",
"j. c #5E88C8",
"k. c #628BCA",
"l. c #688CC4",
"z. c #6790CD",
"x. c #6B92CE",
"c. c #6E96D2",
"v. c #739AD5",
"b. c #7EA3DC",
"n. c #EDA282",
"m. c #F1A686",
"M. c #F4A989",
"N. c #F9AE8E",
"B. c #FCB191",
"V. c #81A6DD",
"C. c None",
/* pixels */
"C.C.C.C.C.C.v C.C.C.C.C.C. C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.",
"C.C. 4 C.C.C. C.C.n.=.*.*.m.=.m.C.C.C.C.C.C.C.",
" C.C.C.C.r.C.C.C. C.C.C. - ..I S C A H ) ..*.C.C.C.C.C.C.",
" C.C.C.C.C.M C.C.C.C.C. C.&.> p P S S A V B C } *.C.C.C.C.C.",
"C.C.C. $ b o C.C.C. : +.R . Z F P T I H C F +.&.C.C.C.C.",
"C. C.C.C.r.C.C.C. C.C.C.O ` P 9 0 P _ +.@.} ~ K ) &.$.C.C.C.",
"C. C.C.C.r.i.h.C.C.C. C.C.Y > H t . K _ &.n.n.@._ ~ +.$.C.C.C.",
" C.C.3.9.r.d.k.v.C.C.C. C.+.O L A & f ) $.n.m.M.&...+.@.@.C.C.",
"C.C.C.>.9.r.d.k.v.b.C.C. W +.s z K p d } +.&.M.N.M.=.$.@.+.C.C.",
"C.C.<.;.4.w.i.j.z.c.x.C.u k +.Y a S g p _ _ | *.N.B.N.*.O.o.C.C.",
"C.C.;.-.1.0.r.p.g.g.d.C.W y o.^ a T 7 * B C I } m.B.B.*.+.@.C.C.",
"C.C.<.-.>.3.0.e.y.u.i.C.C.i +.' a ..r * w w e P #.N.B.=.+.@.C.C.",
"C.C.C.-.-.;.2.9.q.q.C.C.: l =.Q k #.Y 9 A N e B O.N.B.n.#.@.C.C.",
"C.C.C.1.-.-.-.>.1.C.C.C.X [ m.l ! @.k j ~ I S A ..N.B.=.+.@.C.C.",
" C.C.C.1.1.1.9.u.C.C.C. m.m.+ %...- G P S S H | m.N.*.o.+.C.C.",
"C. C.C.1.9.r.a.j.C.C. C.m.E i O.Z . V S S C F } n.N.&.o.o.C.C.",
"C.C. C.<.9.r.a.f.C. C.C.X.O X...8 = t S P P / | *.M.$.o.C.C.C.",
"C.C.C.X X 1 v 3 # C.C.C.O x +.` . t B K / } ] ..=.n...| C.C.C.",
" C.C.C.:.m 5.t.h.C.C.C. C.C._ ; q F U ) &.=.+.&.=.*.| C.C.C.C.",
" C.C.<.q.r.p.k.C. C.C.C.0 0 P / { @.*.=.n.m.*.@.| C.C.C.C.",
"C.C. X $ 2 c 5 % o C.C.C.C. > ..+.o.O.@.=.n.m.m.*...} C.C.C.C.",
"C.C.C.-.:.m 6.8.f.c.C.C.C. +.=.M.*.| +.*.n.n.=.@.] ..C.C.C.C.",
" C.-.<.q.r.a.k.l.C. C.C.*.m.M.$.O.$.n.n.*.@. .| C.C.C.C.C.",
"C.C. X , 1 4 5 < # C.C.C.C.&.n.n.&.&.=.m.=.$.+.+.@.C.C.C.C.C.",
"C.C.C.-.n ,.7.t.s.v.C.C.C.C.C.C...=.=.&.=.m.M.=.@.+.C.C.C.C.C.C.",
"C.C.C.-.<.9.r.a.k.v.C.C.C.C.C.C.] | +.@.=.m.n.*.+.@.C.C.C.C.C.C.",
"C.C.C.-.<.q.r.a.k.v.C.C.C.C.C.C.C.) { o.=.=.&.O...C.C.C.C.C.C.C.",
"C.C.-.-.<.9.r.a.k.v.C.C.C.C.C.C.C.C.) ) +.+...+.C.C.C.C.C.C.C.C.",
"C.C.-.-.<.q.r.p.k.c.b.C.C.C.C.C.C.C.( U { / { C.C.C.C.C.C.C.C.C.",
"C.C.-.-.<.q.r.a.k.v.V.C.C.C.C.C.C.C.C./ U C.C.C.C.C.C.C.C.C.C.C.",
"C.C.C.-.<.9.r.d.k.v.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.",
"C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C.C."
};
Loading…
Cancel
Save