From 354e8dafe41a6fffd50eb543e01a030aad58ac97 Mon Sep 17 00:00:00 2001 From: Memphiz Date: Wed, 7 Jan 2015 23:48:30 +0100 Subject: [PATCH] [guilib] - add new action and members ACTION_INPUT_TEXT --- xbmc/guilib/Key.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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; }; /*!