forked from knightRider0xD/atem-cli
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcmddict.h
More file actions
104 lines (88 loc) · 3.93 KB
/
Copy pathcmddict.h
File metadata and controls
104 lines (88 loc) · 3.93 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
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
/*
Copyright 2017 Ian Knight <ian@knightly.xyz>
This file is part of atem-cli.
atem-cli 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.
atem-cli 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 atem-cli. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef CMDDICT_H
#define CMDDICT_H
#define DISABLED 0
#define ENABLE_ALWAYS 1
#define ENABLE_CONNECTED 2
#include "cliapp.h"
struct CmdTrieNode {
void (*currentCmd)(QStringList);
int cmdAccess;
CmdTrieNode * nextChar[26];
};
class CmdDict {
public:
CmdDict(CLIApp * app);
static void defineCommand(QString cmd_name, void (*handler)(QStringList), int cmd_access);
static void parseCommand(QStringList cmd);
static struct CmdTrieNode * cmdTrieRoot;
static CLIApp * app;
static void invalid(QStringList cmd);
static void preHelp(QStringList cmd);
static void preQuit(QStringList cmd);
static void preAudioChannelCount(QStringList cmd);
static void preAudioInBalance(QStringList cmd);
static void preAudioInGain(QStringList cmd);
static void preAudioInInfo(QStringList cmd);
static void preAudioInPeak(QStringList cmd);
static void preAudioInState(QStringList cmd);
static void preAudioLevels(QStringList cmd);
static void preAudioMasterGain(QStringList cmd);
static void preAudioMasterLevels(QStringList cmd);
static void preAudioMasterPeak(QStringList cmd);
static void preAuxSource(QStringList cmd);
static void preColorGeneratorColor(QStringList cmd);
static void preConnection(QStringList cmd);
static void preCut(QStringList cmd);
static void preDebug(QStringList cmd);
static void preDSKeyLive(QStringList cmd);
static void preDSKeyAuto(QStringList cmd);
static void preDSKeyAutoFrameRate(QStringList cmd);
static void preDSKeyTie(QStringList cmd);
static void preFadeToBlack(QStringList cmd);
static void preFadeToBlackFrames(QStringList cmd);
static void preFadeToBlackFramesLeft(QStringList cmd);
static void preFadeToBlackFading(QStringList cmd);
static void preInfo(QStringList cmd);
static void preInputInfo(QStringList cmd);
static void preInputNameLong(QStringList cmd);
static void preInputNameShort(QStringList cmd);
static void preInputType(QStringList cmd);
static void prePreview(QStringList cmd);
static void preProgram(QStringList cmd);
static void preSettings(QStringList cmd);
static void preTransitionCurrentKey(QStringList cmd);
static void preTransitionCurrentStyle(QStringList cmd);
static void preTransitionDipFrames(QStringList cmd);
static void preTransitionDipSource(QStringList cmd);
/*static void preTransitionDVEEffect(QStringList cmd);
static void preTransitionDVEFillSource(QStringList cmd);
static void preTransitionDVEFrames(QStringList cmd);*/
static void preTransitionFrames(QStringList cmd);
static void preTallyChannelCount(QStringList cmd);
static void preTallyIndexCount(QStringList cmd);
static void preTallyState(QStringList cmd);
static void preTransitionMixFrames(QStringList cmd);
static void preTransitionNextBackground(QStringList cmd);
static void preTransitionNextKey(QStringList cmd);
static void preTransitionNextStyle(QStringList cmd);
static void preTransitionPosition(QStringList cmd);
static void preTransitionPreview(QStringList cmd);
static void preAutoTransition(QStringList cmd);
static void preVideoDownConvertType(QStringList cmd);
static void preVideoFormat(QStringList cmd);
};
#endif // CMDDICT_H