diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-05-02 23:51:25 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-05-02 23:51:25 +0800 |
commit | bb82e7dfe2c6f3ee40a79f949db68cdd2c28456b (patch) | |
tree | 1b68efe784c44f7ce661c65adb7db2e80eb74380 /qmidiplayer-desktop/qmpplugin.cpp | |
parent | 85ccf22f3d2340e80ce2a109bbe610da1b92ca7d (diff) | |
download | QMidiPlayer-bb82e7dfe2c6f3ee40a79f949db68cdd2c28456b.tar.xz |
Finally finished the option proxying infrastructure...
Diffstat (limited to 'qmidiplayer-desktop/qmpplugin.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmpplugin.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/qmidiplayer-desktop/qmpplugin.cpp b/qmidiplayer-desktop/qmpplugin.cpp index ce041ec..7b089d7 100644 --- a/qmidiplayer-desktop/qmpplugin.cpp +++ b/qmidiplayer-desktop/qmpplugin.cpp @@ -118,18 +118,19 @@ int qmpPluginAPI::registerVisualizationIntf(qmpVisualizationIntf* intf) void qmpPluginAPI::unregisterVisualizationIntf(int intfhandle) {qmw->unregisterVisualizationIntf(intfhandle);} -void qmpPluginAPI::registerOptionInt(std::string,std::string,int,int,int){} -int qmpPluginAPI::getOptionInt(std::string){return 0;} -void qmpPluginAPI::setOptionInt(std::string,int){} -void qmpPluginAPI::registerOptionUint(std::string,std::string,unsigned,unsigned,unsigned){} +void qmpPluginAPI::registerOptionInt(std::string tab,std::string desc,std::string key,int min,int max,int defaultval) +{qsw->registerOptionInt(tab,desc,key,min,max,defaultval);} +int qmpPluginAPI::getOptionInt(std::string key){return qsw->getOptionInt(key);} +void qmpPluginAPI::setOptionInt(std::string key,int val){qsw->SetOptionInt(key,val);} +void qmpPluginAPI::registerOptionUint(std::string,std::string,std::string,unsigned,unsigned,unsigned){} unsigned qmpPluginAPI::getOptionUint(std::string){return 0;} void qmpPluginAPI::setOptionUint(std::string,unsigned){} -void qmpPluginAPI::registerOptionBool(std::string,std::string,bool){} +void qmpPluginAPI::registerOptionBool(std::string,std::string,std::string,bool){} bool qmpPluginAPI::getOptionBool(std::string){return false;} void qmpPluginAPI::setOptionBool(std::string,bool){} -void qmpPluginAPI::registerOptionDouble(std::string,std::string,double,double,double){} +void qmpPluginAPI::registerOptionDouble(std::string,std::string,std::string,double,double,double){} double qmpPluginAPI::getOptionDouble(std::string){return 0;} void qmpPluginAPI::setOptionDouble(std::string,double){} -void qmpPluginAPI::registerOptionString(std::string,std::string,std::string){} +void qmpPluginAPI::registerOptionString(std::string,std::string,std::string,std::string){} std::string qmpPluginAPI::getOptionString(std::string){return "";} void qmpPluginAPI::setOptionString(std::string,std::string){} |