blob: a2a8ce12502cd1e6a01d4ed97b8f7d2dc222a7d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef GUI_ACTION_DESCRIPTOR
#define GUI_ACTION_DESCRIPTOR
#include "StdString.h"
#include "system.h"
class CGUIActionDescriptor
{
public:
typedef enum { LANG_XBMC = 0, LANG_PYTHON = 1 /*, LANG_JAVASCRIPT = 2 */ } ActionLang;
CGUIActionDescriptor()
{
m_lang = LANG_XBMC;
m_action = "";
m_sourceWindowId = -1;
}
CGUIActionDescriptor(CStdString& action)
{
m_lang = LANG_XBMC;
m_action = action;
m_sourceWindowId = -1;
}
CGUIActionDescriptor(ActionLang lang, CStdString& action)
{
m_lang = lang;
m_action = action;
m_sourceWindowId = -1;
}
CStdString m_action;
ActionLang m_lang;
int m_sourceWindowId; // the id of the window that was a source of an action
};
#endif
|