diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/qmpcorepublic.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/qmpcorepublic.hpp b/include/qmpcorepublic.hpp index 54365b6..e17bf84 100644 --- a/include/qmpcorepublic.hpp +++ b/include/qmpcorepublic.hpp @@ -71,16 +71,23 @@ class qmpPluginAPI virtual int registerEventHandlerIntf(IMidiCallBack* cb,void* userdata); virtual void unregisterEventHandlerIntf(int intfhandle); + //if desc=="", the option won't be visible in the settings form. + //it will only show up in the configuration file. virtual void registerOptionInt(std::string desc,std::string key,int min,int max,int defaultval); virtual int getOptionInt(std::string key); + virtual void setOptionInt(std::string key,int val); virtual void registerOptionUint(std::string desc,std::string key,unsigned min,unsigned max,unsigned defaultval); virtual unsigned getOptionUint(std::string key); + virtual void setOptionUint(std::string key,unsigned val); virtual void registerOptionBool(std::string desc,std::string key,bool defaultval); virtual bool getOptionBool(std::string key); + virtual void setOptionBool(std::string key,bool val); virtual void registerOptionDouble(std::string desc,std::string key,double min,double max,double defaultval); virtual double getOptionDouble(std::string key); + virtual void setOptionDouble(std::string key,double val); virtual void registerOptionString(std::string desc,std::string key,std::string defaultval); virtual std::string getOptionString(std::string key); + virtual void setOptionString(std::string key,std::string val); }; #ifdef QMP_MAIN } |