diff --git a/xbmc/guilib/Key.h b/xbmc/guilib/Key.h index 5415377693fca..1498b28dd4002 100644 --- a/xbmc/guilib/Key.h +++ b/xbmc/guilib/Key.h @@ -347,6 +347,7 @@ #define ACTION_SETTINGS_LEVEL_CHANGE 242 #define ACTION_TRIGGER_OSD 243 // show autoclosing OSD. Can b used in videoFullScreen.xml window id=2005 +#define ACTION_INPUT_TEXT 244 // touch actions #define ACTION_TOUCH_TAP 401 @@ -418,6 +419,16 @@ class CAction \return name of the action */ const std::string &GetName() const { return m_name; }; + + /*! \brief Text of the action if any + \return text payload of this action. + */ + const std::string &GetText() const { return m_text; }; + + /*! \brief Set the text payload of the action + \param text to be set + */ + void SetText(const std::string &text) { m_text = text; }; /*! \brief Get an amount associated with this action \param zero-based index of amount to retrieve, defaults to 0 @@ -456,6 +467,7 @@ class CAction unsigned int m_holdTime; unsigned int m_buttonCode; wchar_t m_unicode; + std::string m_text; }; /*!