forked from chrishamm/LIRC-Client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLIRC_SQL_DB.txt
More file actions
65 lines (49 loc) · 2.6 KB
/
LIRC_SQL_DB.txt
File metadata and controls
65 lines (49 loc) · 2.6 KB
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
-- LIRC model --
Remote
- id INTEGER AUTOINCREMENT
- name TEXT UNIQUE NOT NULL
- pages INTEGER DEFAULT 1
- simulate NUMERIC DEFAULT 0
Remote_Command
- id INTEGER AUTOINCREMENT
- device INTEGER NOT NULL
- name TEXT UNIQUE NOT NULL
- code TEXT
-- Activity manager model --
Activity
- id INTEGER AUTOINCREMENT
- name TEXT NOT NULL
- pages INTEGER DEFAULT 1
Activity_Command
- activity INTEGER NOT NULL
- command INTEGER NOT NULL
- priority INTEGER NOT NULL
Activity_Button
- activity INTEGER NOT NULL
- command INTEGER NOT NULL
- x INTEGER NOT NULL
- y INTEGER NOT NULL
- icon TEXT
- caption TEXT
Device_Button
- device INTEGER NOT NULL
- command INTEGER NOT NULL
- x INTEGER NOT NULL
- y INTEGER NOT NULL
- icon TEXT
- caption TEXT
-- Macro model --
Macro
- id INTEGER AUTOINCREMENT
- name TEXT NOT NULL
Macro_Command
- macro INTEGER NOT NULL
- command INTEGER NOT NULL
- priority INTEGER
-- Reference --
Activity_Command.priority:
- Greater than 0 for activation
- Less than 0 for deactivation
When activating an activity, all commands should be placed into a queue.
This queue, then, should be checked for identical command pairs (ie. KEY_POWER twice for the same device),
which are removed from the queue before the whole queue is sent through LIRC.