Skip to content

Commit

Permalink
[guilib] - add new action and members ACTION_INPUT_TEXT
Browse files Browse the repository at this point in the history
  • Loading branch information
Memphiz committed Jan 7, 2015
1 parent 9e96d62 commit 354e8da
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions xbmc/guilib/Key.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -456,6 +467,7 @@ class CAction
unsigned int m_holdTime;
unsigned int m_buttonCode;
wchar_t m_unicode;
std::string m_text;
};

/*!
Expand Down

0 comments on commit 354e8da

Please sign in to comment.