/usr/share/pyshared/remuco/message.py is in remuco-base 0.9.6-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | # =============================================================================
#
# Remuco - A remote control system for media players.
# Copyright (C) 2006-2010 by the Remuco team, see AUTHORS.
#
# This file is part of Remuco.
#
# Remuco is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Remuco is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Remuco. If not, see <http://www.gnu.org/licenses/>.
#
# =============================================================================
IGNORE = 0
# =============================================================================
# connection related messages
# =============================================================================
_CONN = 100
#CONN_PLIST = _CONN
CONN_PINFO = _CONN + 10
CONN_CINFO = _CONN + 20
CONN_SLEEP = _CONN + 30
CONN_WAKEUP = _CONN + 40
CONN_BYE = _CONN + 90
# =============================================================================
# sync messages
# =============================================================================
_SYNC = 200
SYNC_STATE = _SYNC
SYNC_PROGRESS = _SYNC + 1
SYNC_ITEM = _SYNC + 2
# =============================================================================
# control messages
# =============================================================================
_CTRL = 300
CTRL_PLAYPAUSE = _CTRL
CTRL_NEXT = _CTRL + 1
CTRL_PREV = _CTRL + 2
CTRL_SEEK = _CTRL + 3
CTRL_VOLUME = _CTRL + 4
CTRL_REPEAT = _CTRL + 5
CTRL_SHUFFLE = _CTRL + 6
CTRL_FULLSCREEN = _CTRL + 7
CTRL_RATE = _CTRL + 8
CTRL_TAG = _CTRL + 30
CTRL_NAVIGATE = _CTRL + 40 #31 would be ugly
CTRL_SHUTDOWN = _CTRL + 90
# =============================================================================
# action messages
# =============================================================================
_ACT = 400
ACT_PLAYLIST = _ACT
ACT_QUEUE = _ACT + 1
ACT_MLIB = _ACT + 2
ACT_FILES = _ACT + 3
ACT_SEARCH = _ACT + 4
# =============================================================================
# request messages
# =============================================================================
_REQ = 500
REQ_ITEM = _REQ # currently unused
REQ_PLAYLIST = _REQ + 1
REQ_QUEUE = _REQ + 2
REQ_MLIB = _REQ + 3
REQ_FILES = _REQ + 4
REQ_SEARCH = _REQ + 5
# =============================================================================
# internal messages
# =============================================================================
_PRIV = 0x10000000
PRIV_INITIAL_SYNC = _PRIV # used internally in server
# =============================================================================
def _is_in_range(range_start, id):
return id >= range_start and id < range_start + 100
def is_control(id):
return _is_in_range(_CTRL, id)
def is_action(id):
return _is_in_range(_ACT, id)
def is_request(id):
return _is_in_range(_REQ, id)
def is_private(id):
return _is_in_range(_PRIV, id)
|