aboutsummaryrefslogtreecommitdiff
path: root/visualization/renderer
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2023-11-26 01:10:36 -0500
committerGravatar Chris Xiong <chirs241097@gmail.com> 2023-11-26 01:10:36 -0500
commit60989e52b3f3bc0a95d3e61bd8e59fa4d9b7ab83 (patch)
treeaf08e5b6f7019c6f70bf3800a419ec78db140988 /visualization/renderer
parent382d85b15ce9cc4580a2522b39f5dd4ce43a24b0 (diff)
downloadQMidiPlayer-60989e52b3f3bc0a95d3e61bd8e59fa4d9b7ab83.tar.xz
The 2 year constipation. (mpris plugin)
Probably buggy as hell.
Diffstat (limited to 'visualization/renderer')
-rw-r--r--visualization/renderer/qmppluginapistub.cpp12
-rw-r--r--visualization/renderer/qmppluginapistub.hpp3
2 files changed, 15 insertions, 0 deletions
diff --git a/visualization/renderer/qmppluginapistub.cpp b/visualization/renderer/qmppluginapistub.cpp
index 6c6424c..7804cc6 100644
--- a/visualization/renderer/qmppluginapistub.cpp
+++ b/visualization/renderer/qmppluginapistub.cpp
@@ -98,6 +98,16 @@ std::wstring qmpPluginAPIStub::getWTitle()
core->settings()->getOptionEnumIntOptName("Midi/TextEncoding").c_str())->
toUnicode(core->player->getTitle()).toStdWString();
}
+
+std::string qmpPluginAPIStub::getFilePath()
+{
+ return "";
+}
+
+std::wstring qmpPluginAPIStub::getWFilePath()
+{
+ return L"";
+}
std::string qmpPluginAPIStub::getChannelPresetString(int ch)
{
return std::string();
@@ -110,6 +120,8 @@ void *qmpPluginAPIStub::getMainWindow()
{
return nullptr;
}
+
+void qmpPluginAPIStub::playbackControl(PlaybackControlCommand cmd, void *data) {}
void qmpPluginAPIStub::discardCurrentEvent() {}
void qmpPluginAPIStub::commitEventChange(SEvent d) {}
void qmpPluginAPIStub::callEventReaderCB(SEvent d) {}
diff --git a/visualization/renderer/qmppluginapistub.hpp b/visualization/renderer/qmppluginapistub.hpp
index ede08d3..675a306 100644
--- a/visualization/renderer/qmppluginapistub.hpp
+++ b/visualization/renderer/qmppluginapistub.hpp
@@ -29,9 +29,12 @@ public:
bool getChannelMask(int ch);
std::string getTitle();
std::wstring getWTitle();
+ std::string getFilePath();
+ std::wstring getWFilePath();
std::string getChannelPresetString(int ch);
bool isDarkTheme();
void *getMainWindow();
+ void playbackControl(PlaybackControlCommand cmd, void* data);
void discardCurrentEvent();
void commitEventChange(SEvent d);