LunaSysMgr
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
InputManager.cpp File Reference
#include "InputManager.h"
#include "Common.h"
#include "CustomEvents.h"
#include "HostBase.h"
#include "JSONUtils.h"
#include "Preferences.h"
#include "SystemService.h"
#include <QKeyEvent>
#include <cjson/json.h>
#include <glib.h>
#include <map>
#include <string>
#include <SysMgrDeviceKeydefs.h>
Include dependency graph for InputManager.cpp:

Macros

#define KEYS
 
#define LUNA_KEYS   "com.palm.keys"
 
#define CATEGORY_AUDIO   "/audio"
 
#define CATEGORY_MEDIA   "/media"
 
#define CATEGORY_SWITCHES   "/switches"
 
#define CATEGORY_HEADSET   "/headset"
 
#define METHOD_STATUS   "status"
 
#define STR_VOLUME_UP   "volume_up"
 
#define STR_VOLUME_DOWN   "volume_down"
 
#define STR_MEDIA_PLAY   "play"
 
#define STR_MEDIA_PAUSE   "pause"
 
#define STR_MEDIA_TOGGLE_PAUSE_PLAY   "togglePausePlay"
 
#define STR_MEDIA_STOP   "stop"
 
#define STR_MEDIA_NEXT   "next"
 
#define STR_MEDIA_PREV   "prev"
 
#define STR_RINGER   "ringer"
 
#define STR_SLIDER   "slider"
 
#define STR_POWER   "power"
 
#define STR_HEADSET_BTN   "headset_button"
 
#define STR_REPEAT_ALL   "repeat-all"
 
#define STR_REPEAT_TRACK   "repeat-track"
 
#define STR_REPEAT_NONE   "repeat-none"
 
#define STR_SHUFFLE_ON   "shuffle-on"
 
#define STR_SHUFFLE_OFF   "shuffle-off"
 
#define STR_HEADSET   "headset"
 
#define STR_HEADSET_MIC   "headset-mic"
 
#define PRESS_AND_HOLD_TIME_MS   2000
 
#define DOUBLE_PRESS_TIME_MS   1000
 
#define ACTIVITY_TIMER_DURATION_HEADSET   "1500"
 
#define ACTIVITY_START_URI   "palm://com.palm.power/com/palm/power/activityStart"
 
#define ACTIVITY_ID_HEADSET   "com.palm.keys-headset-btn-delay"
 
#define ACTIVITY_JSON_MSG_HEADSET   "{\"id\":\""ACTIVITY_ID_HEADSET"\",\"duration_ms\":"ACTIVITY_TIMER_DURATION_HEADSET"}"
 
#define HEADSET_BTN_HOLD   "hold"
 
#define HEADSET_BTN_SINGLE_PRESS   "single_click"
 
#define HEADSET_BTN_DOUBLE_PRESS   "double_click"
 

Macro Definition Documentation

#define ACTIVITY_ID_HEADSET   "com.palm.keys-headset-btn-delay"
#define ACTIVITY_JSON_MSG_HEADSET   "{\"id\":\""ACTIVITY_ID_HEADSET"\",\"duration_ms\":"ACTIVITY_TIMER_DURATION_HEADSET"}"
#define ACTIVITY_START_URI   "palm://com.palm.power/com/palm/power/activityStart"
#define ACTIVITY_TIMER_DURATION_HEADSET   "1500"
#define CATEGORY_AUDIO   "/audio"
#define CATEGORY_HEADSET   "/headset"
#define CATEGORY_MEDIA   "/media"
#define CATEGORY_SWITCHES   "/switches"
#define DOUBLE_PRESS_TIME_MS   1000
#define HEADSET_BTN_DOUBLE_PRESS   "double_click"
#define HEADSET_BTN_HOLD   "hold"
#define HEADSET_BTN_SINGLE_PRESS   "single_click"
#define KEYS
#define LUNA_KEYS   "com.palm.keys"
#define METHOD_STATUS   "status"
#define PRESS_AND_HOLD_TIME_MS   2000
#define STR_HEADSET   "headset"
#define STR_HEADSET_BTN   "headset_button"
#define STR_HEADSET_MIC   "headset-mic"
#define STR_MEDIA_NEXT   "next"
#define STR_MEDIA_PAUSE   "pause"
#define STR_MEDIA_PLAY   "play"
#define STR_MEDIA_PREV   "prev"
#define STR_MEDIA_STOP   "stop"
#define STR_MEDIA_TOGGLE_PAUSE_PLAY   "togglePausePlay"
#define STR_POWER   "power"
#define STR_REPEAT_ALL   "repeat-all"
#define STR_REPEAT_NONE   "repeat-none"
#define STR_REPEAT_TRACK   "repeat-track"
#define STR_RINGER   "ringer"
#define STR_SHUFFLE_OFF   "shuffle-off"
#define STR_SHUFFLE_ON   "shuffle-on"
#define STR_SLIDER   "slider"
#define STR_VOLUME_DOWN   "volume_down"
#define STR_VOLUME_UP   "volume_up"