Skip to content

Commit

Permalink
playback-history-qt: Add new plugin
Browse files Browse the repository at this point in the history
This plugin tracks and provides access to playback history.
History entries are stored in memory (not persistent) based on the
played song or album which can be configured in the plugin settings.

See also: PR #138
  • Loading branch information
vedgy authored Jan 10, 2025
1 parent ea351f7 commit 92d8487
Show file tree
Hide file tree
Showing 12 changed files with 907 additions and 20 deletions.
3 changes: 2 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ if test "x$USE_GTK" = "xyes" ; then
fi

if test "x$USE_QT" = "xyes" ; then
GENERAL_PLUGINS="$GENERAL_PLUGINS albumart-qt lyrics-qt playlist-manager-qt search-tool-qt song-info-qt statusicon-qt"
GENERAL_PLUGINS="$GENERAL_PLUGINS albumart-qt lyrics-qt playback-history-qt playlist-manager-qt search-tool-qt song-info-qt statusicon-qt"
GENERAL_PLUGINS="$GENERAL_PLUGINS qtui skins-qt"
VISUALIZATION_PLUGINS="$VISUALIZATION_PLUGINS blur_scope-qt qt-spectrum vumeter-qt"
fi
Expand Down Expand Up @@ -888,6 +888,7 @@ if test "x$USE_QT" = "xyes" ; then
echo " Album Art: yes"
echo " Blur Scope: yes"
echo " OpenGL Spectrum Analyzer: $have_qtglspectrum"
echo " Playback History: yes"
echo " Playlist Manager: yes"
echo " Search Tool: yes"
echo " Song Info: yes"
Expand Down
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ if meson.version().version_compare('>= 0.53')
'Album Art': true,
'Blur Scope': true,
'OpenGL Spectrum Analyzer': get_variable('have_qtglspectrum', false),
'Playback History': true,
'Playlist Manager': true,
'Search Tool': true,
'Song Info': true,
Expand Down
1 change: 1 addition & 0 deletions src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ if conf.has('USE_QT')
subdir('albumart-qt')
subdir('blur_scope-qt')
subdir('lyrics-qt')
subdir('playback-history-qt')
subdir('playlist-manager-qt')
subdir('qt-spectrum')
subdir('qtui')
Expand Down
13 changes: 13 additions & 0 deletions src/playback-history-qt/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
PLUGIN = playback-history-qt${PLUGIN_SUFFIX}

SRCS = playback-history.cc

include ../../buildsys.mk
include ../../extra.mk

plugindir := ${plugindir}/${GENERAL_PLUGIN_DIR}

LD = ${CXX}
CPPFLAGS += -I../.. ${QT_CFLAGS}
CFLAGS += ${PLUGIN_CFLAGS}
LIBS += ${QT_LIBS} -laudqt
7 changes: 7 additions & 0 deletions src/playback-history-qt/meson.build
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
shared_module('playback-history-qt',
'playback-history.cc',
dependencies: [audacious_dep, qt_dep, audqt_dep],
name_prefix: '',
install: true,
install_dir: general_plugin_dir
)
Loading

0 comments on commit 92d8487

Please sign in to comment.