-
Notifications
You must be signed in to change notification settings - Fork 78
/
CtrlCmdDef.h
160 lines (137 loc) · 9.24 KB
/
CtrlCmdDef.h
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
#ifndef __CTRL_CMD_DEF_H__
#define __CTRL_CMD_DEF_H__
//デフォルトコネクトタイムアウト
#define CONNECT_TIMEOUT 15*1000
//ストリームバッファのサイズ
#define CMD2_SEND_BUFF_SIZE 1024*1024
#define CMD2_RES_BUFF_SIZE 1024*1024
//パイプ名
#define CMD2_EPG_SRV_PIPE _T("\\\\.\\pipe\\EpgTimerSrvPipe")
#define CMD2_GUI_CTRL_PIPE _T("\\\\.\\pipe\\EpgTimerGUI_Ctrl_BonPipe_") //+プロセスID
#define CMD2_VIEW_CTRL_PIPE _T("\\\\.\\pipe\\View_Ctrl_BonPipe_") //+プロセスID
#define CMD2_TVTEST_CTRL_PIPE _T("\\\\.\\pipe\\TvTest_Ctrl_BonPipe_") //+プロセスID
//接続待機用イベント
#define CMD2_EPG_SRV_EVENT_WAIT_CONNECT _T("Global\\EpgTimerSrvConnect")
#define CMD2_GUI_CTRL_WAIT_CONNECT _T("Global\\EpgTimerGUI_Ctrl_BonConnect_") //+プロセスID
#define CMD2_VIEW_CTRL_WAIT_CONNECT _T("Global\\View_Ctrl_BonConnect_") //+プロセスID
#define CMD2_TVTEST_CTRL_WAIT_CONNECT _T("Global\\TvTest_Ctrl_BonConnect_") //+プロセスID
//モジュール内コマンド実行イベント
#define CMD2_CTRL_EVENT_WAIT _T("CtrlCmdEvent_") //+ID
//コマンドバージョン
//#define CMD_VER 2 //バージョン情報追加対応 録画設定への部分受信録画フォルダ指定追加
//#define CMD_VER 3 //検索条件に同一録画チェック追加
//#define CMD_VER 4 //録画済み情報にプロテクト追加
#define CMD_VER 5 //予定ファイル名追加
//コマンド
#define CMD2_EPG_SRV_ADDLOAD_RESERVE 1 //Program.txtの追加読み込み
#define CMD2_EPG_SRV_RELOAD_EPG 2 //EPG再読み込み
#define CMD2_EPG_SRV_RELOAD_SETTING 3 //設定の再読み込み
#define CMD2_EPG_SRV_CLOSE 4 //アプリケーションの終了(CreateProcessで普通に起動した場合に使用)
#define CMD2_EPG_SRV_REGIST_GUI 5 //GUIアプリケーションのパイプ名と接続待機用イベント名を登録(タイマーGUI用のコマンドが飛ぶようになる)
#define CMD2_EPG_SRV_UNREGIST_GUI 6 //GUIアプリケーションのパイプ名と接続待機用イベント名の登録を解除
#define CMD2_EPG_SRV_REGIST_GUI_TCP 7 //TCP接続のGUIアプリケーションのIPとポートを登録(タイマーGUI用のコマンドが飛ぶようになる)
#define CMD2_EPG_SRV_UNREGIST_GUI_TCP 8 //TCP接続のGUIアプリケーションのIPとポートの登録を解除
#define CMD2_EPG_SRV_ENUM_RESERVE 1011 //予約一覧取得
#define CMD2_EPG_SRV_GET_RESERVE 1012 //予約情報取得
#define CMD2_EPG_SRV_ADD_RESERVE 1013 //予約追加
#define CMD2_EPG_SRV_DEL_RESERVE 1014 //予約削除
#define CMD2_EPG_SRV_CHG_RESERVE 1015 //予約変更
#define CMD2_EPG_SRV_ENUM_TUNER_RESERVE 1016 //チューナーごとの予約ID一覧取得
#define CMD2_EPG_SRV_ENUM_RECINFO 1017 //録画済み情報一覧取得
#define CMD2_EPG_SRV_DEL_RECINFO 1018 //録画済み情報削除
//バージョン情報追加対応版
#define CMD2_EPG_SRV_ENUM_RESERVE2 2011 //予約一覧取得
#define CMD2_EPG_SRV_GET_RESERVE2 2012 //予約情報取得
#define CMD2_EPG_SRV_ADD_RESERVE2 2013 //予約追加
#define CMD2_EPG_SRV_CHG_RESERVE2 2015 //予約変更
#define CMD2_EPG_SRV_ENUM_RECINFO2 2017 //録画済み情報一覧取得
#define CMD2_EPG_SRV_CHG_PROTECT_RECINFO2 2019 //録画済み情報のプロテクト変更
#define CMD2_EPG_SRV_ADDCHK_RESERVE2 2030 //サーバー連携用 予約追加できるかのチェック(戻り値 0:追加不可 1:追加可能 2:追加可能だが開始か終了が重なるものあり 3:すでに同じ物がある)
#define CMD2_EPG_SRV_GET_EPG_FILETIME2 2031 //サーバー連携用 EPGデータファイルのタイムスタンプ取得
#define CMD2_EPG_SRV_GET_EPG_FILE2 2032 //サーバー連携用 EPGデータファイル取得
#define CMD2_EPG_SRV_ENUM_AUTO_ADD2 2131 //自動予約登録の条件一覧取得
#define CMD2_EPG_SRV_ADD_AUTO_ADD2 2132 //自動予約登録の条件追加
#define CMD2_EPG_SRV_CHG_AUTO_ADD2 2134 //自動予約登録の条件変更
#define CMD2_EPG_SRV_ENUM_MANU_ADD2 2141 //プログラム予約自動登録の条件一覧取得
#define CMD2_EPG_SRV_ADD_MANU_ADD2 2142 //プログラム予約自動登録の条件追加
#define CMD2_EPG_SRV_CHG_MANU_ADD2 2144 //プログラム予約自動登録の条件変更
#define CMD2_EPG_SRV_ENUM_SERVICE 1021 //読み込まれたEPGデータのサービスの一覧取得
#define CMD2_EPG_SRV_ENUM_PG_INFO 1022 //サービス指定で番組情報一覧を取得する
#define CMD2_EPG_SRV_GET_PG_INFO 1023 //番組情報取得
#define CMD2_EPG_SRV_SEARCH_PG 1025 //番組検索
#define CMD2_EPG_SRV_ENUM_PG_ALL 1026 //番組情報一覧取得
#define CMD2_EPG_SRV_ENUM_AUTO_ADD 1031 //自動予約登録の条件一覧取得
#define CMD2_EPG_SRV_ADD_AUTO_ADD 1032 //自動予約登録の条件追加
#define CMD2_EPG_SRV_DEL_AUTO_ADD 1033 //自動予約登録の条件削除
#define CMD2_EPG_SRV_CHG_AUTO_ADD 1034 //自動予約登録の条件変更
#define CMD2_EPG_SRV_ENUM_MANU_ADD 1041 //プログラム予約自動登録の条件一覧取得
#define CMD2_EPG_SRV_ADD_MANU_ADD 1042 //プログラム予約自動登録の条件追加
#define CMD2_EPG_SRV_DEL_MANU_ADD 1043 //プログラム予約自動登録の条件削除
#define CMD2_EPG_SRV_CHG_MANU_ADD 1044 //プログラム予約自動登録の条件変更
#define CMD2_EPG_SRV_CHK_SUSPEND 1050 //スタンバイ、休止、シャットダウンを行っていいかの確認
#define CMD2_EPG_SRV_SUSPEND 1051 //スタンバイ、休止、シャットダウンに移行する(1:スタンバイ 2:休止 3:シャットダウン | 0x0100:復帰後再起動)
#define CMD2_EPG_SRV_REBOOT 1052 //PC再起動を行う
#define CMD2_EPG_SRV_EPG_CAP_NOW 1053 //10秒後にEPGデータの取得を行う
#define CMD2_EPG_SRV_FILE_COPY 1060 //指定ファイルを転送する
#define CMD2_EPG_SRV_ENUM_PLUGIN 1061 //PlugInファイルの一覧を取得する(1:ReName、2:Write)
#define CMD2_EPG_SRV_GET_CHG_CH_TVTEST 1062 //TVTestのチャンネル切り替え用の情報を取得する
#define CMD2_EPG_SRV_NWTV_SET_CH 1070 //ネットワークモードのEpgDataCap_Bonのチャンネルを切り替え
#define CMD2_EPG_SRV_NWTV_CLOSE 1071 //ネットワークモードで起動中のEpgDataCap_Bonを終了
#define CMD2_EPG_SRV_NWTV_MODE 1072 //ネットワークモードで起動するときのモード(1:UDP 2:TCP 3:UDP+TCP)
#define CMD2_EPG_SRV_NWPLAY_OPEN 1080 //ストリーム配信用ファイルを開く
#define CMD2_EPG_SRV_NWPLAY_CLOSE 1081 //ストリーム配信用ファイルを閉じる
#define CMD2_EPG_SRV_NWPLAY_PLAY 1082 //ストリーム配信開始
#define CMD2_EPG_SRV_NWPLAY_STOP 1083 //ストリーム配信停止
#define CMD2_EPG_SRV_NWPLAY_GET_POS 1084 //ストリーム配信で現在の送信位置と総ファイルサイズを取得する
#define CMD2_EPG_SRV_NWPLAY_SET_POS 1085 //ストリーム配信で送信位置をシークする
#define CMD2_EPG_SRV_NWPLAY_SET_IP 1086 //ストリーム配信で送信先を設定する
#define CMD2_EPG_SRV_NWPLAY_TF_OPEN 1087 //ストリーム配信用ファイルをタイムシフトモードで開く
//タイマーGUI(EpgTimer_Bon.exe)用
#define CMD2_TIMER_GUI_SHOW_DLG 101 //ダイアログを前面に表示
#define CMD2_TIMER_GUI_UPDATE_RESERVE 102 //予約一覧の情報が更新された
#define CMD2_TIMER_GUI_UPDATE_EPGDATA 103 //EPGデータの再読み込みが完了した
#define CMD2_TIMER_GUI_VIEW_EXECUTE 110 //Viewアプリ(EpgDataCap_Bon.exe)を起動
#define CMD2_TIMER_GUI_QUERY_SUSPEND 120 //スタンバイ、休止、シャットダウンに入っていいかの確認をユーザーに行う(入っていいならCMD_EPG_SRV_SUSPENDを送る)
#define CMD2_TIMER_GUI_QUERY_REBOOT 121 //PC再起動に入っていいかの確認をユーザーに行う(入っていいならCMD_EPG_SRV_REBOOTを送る)
#define CMD2_TIMER_GUI_SRV_STATUS_CHG 130 //サーバーのステータス変更通知(1:通常、2:EPGデータ取得開始、3:予約録画開始)
//バージョン情報追加対応版
#define CMD2_TIMER_GUI_SRV_STATUS_NOTIFY2 1130 //サーバーの情報変更通知
//Viewアプリ(EpgDataCap_Bon.exe)用
#define CMD2_VIEW_APP_SET_BONDRIVER 201 //BonDriverの切り替え
#define CMD2_VIEW_APP_GET_BONDRIVER 202 //使用中のBonDriverのファイル名を取得
#define CMD2_VIEW_APP_SET_CH 205 //SpaceとCh or OriginalNetworkID、TSID、ServieIDでチャンネル切り替え
#define CMD2_VIEW_APP_GET_DELAY 206 //放送波の時間とPC時間の誤差取得
#define CMD2_VIEW_APP_GET_STATUS 207 //現在の状態を取得
#define CMD2_VIEW_APP_CLOSE 208 //アプリケーションの終了
#define CMD2_VIEW_APP_SET_ID 1201 //識別用IDの設定
#define CMD2_VIEW_APP_GET_ID 1202 //識別用IDの取得
#define CMD2_VIEW_APP_SET_STANDBY_REC 1203 //予約録画用にGUIキープ
#define CMD2_VIEW_APP_EXEC_VIEW_APP 1204 //Viewボタン登録アプリの起動
#define CMD2_VIEW_APP_CREATE_CTRL 1221 //ストリーム制御用コントロール作成
#define CMD2_VIEW_APP_DELETE_CTRL 1222 //ストリーム制御用コントロール削除
#define CMD2_VIEW_APP_SET_CTRLMODE 1223 //コントロールの動作を設定(対象サービス、スクランブル、処理対象データ)
#define CMD2_VIEW_APP_REC_START_CTRL 1224 //録画処理開始
#define CMD2_VIEW_APP_REC_STOP_CTRL 1225 //録画処理停止
#define CMD2_VIEW_APP_REC_FILE_PATH 1226 //録画ファイルパスを取得
#define CMD2_VIEW_APP_REC_STOP_ALL 1227 //即時録画を停止
#define CMD2_VIEW_APP_REC_WRITE_SIZE 1228 //ファイル出力したサイズを取得
#define CMD2_VIEW_APP_EPGCAP_START 1241 //EPG取得開始
#define CMD2_VIEW_APP_EPGCAP_STOP 1242 //EPG取得停止
#define CMD2_VIEW_APP_SEARCH_EVENT 1251 //EPG情報の検索
#define CMD2_VIEW_APP_GET_EVENT_PF 1252 //現在or次の番組情報を取得する
//TVTest連携のストリーミング配信専用
#define CMD2_VIEW_APP_TT_SET_CTRL 1261 //ストリーミング配信制御IDの設定
//旧バージョン互換コマンド
#define CMD_EPG_SRV_GET_RESERVE_INFO 12 //予約情報取得
#define CMD_EPG_SRV_ADD_RESERVE 13 //予約追加
#define CMD_EPG_SRV_DEL_RESERVE 14 //予約削除
#define CMD_EPG_SRV_CHG_RESERVE 15 //予約変更
#define CMD_EPG_SRV_SEARCH_PG_FIRST 21 //番組検索(先頭)
#define CMD_EPG_SRV_SEARCH_PG_NEXT 22 //番組検索の続き
#define CMD_EPG_SRV_ADD_AUTO_ADD 32 //自動予約登録の条件追加
#define CMD_EPG_SRV_DEL_AUTO_ADD 33 //自動予約登録の条件削除
#define CMD_EPG_SRV_CHG_AUTO_ADD 34 //自動予約登録の条件変更
#define OLD_CMD_SUCCESS 0 //成功
#define OLD_CMD_ERR 1 //汎用エラー
#define OLD_CMD_NEXT 2 //Enumコマンド用、続きあり
#endif