File: xml_headers.h

package info (click to toggle)
concordance 1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,700 kB
  • sloc: cpp: 7,203; sh: 4,621; ansic: 882; python: 707; perl: 171; makefile: 132; xml: 34
file content (220 lines) | stat: -rw-r--r-- 8,307 bytes parent folder | download | duplicates (4)
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
/*
 * vim:tw=80:ai:tabstop=4:softtabstop=4:shiftwidth=4:expandtab
 *
 * This program 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.
 *
 * This program 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 this program; if not, write to the Free Software Foundation, Inc.,
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 *
 * (C) Copyright Kevin Timmerman 2007
 */

#ifndef XML_HEADERS_H
#define XML_HEADERS_H

const char *config_header="\
<?xml version=\"1.0\"?>\r\n\
<INFORMATION>\r\n\
    <USERMESSAGES>\r\n\
        <USERMESSAGE>\r\n\
            <VERSIONS>\r\n\
                <VERSION>\r\n\
                    <PROTOCOL>%i</PROTOCOL>\r\n\
                    <SKIN>%i</SKIN>\r\n\
                    <FLASH>0x%02X:0x%02X</FLASH>\r\n\
                    <BOARD>%i.%i.0</BOARD>\r\n\
                    <SOFTWARETYPE>%i</SOFTWARETYPE>\r\n\
                </VERSION>\r\n\
            </VERSIONS>\r\n\
            <TYPE>DoNothing</TYPE>\r\n\
            <ABORTPROCESSING>True</ABORTPROCESSING>\r\n\
        </USERMESSAGE>\r\n\
        <USERMESSAGE>\r\n\
            <VERSIONS>\r\n\
                <VERSION></VERSION>\r\n\
            </VERSIONS>\r\n\
            <TYPE>Warning</TYPE>\r\n\
            <TEXT>This configuration file is not compatible with your Harmony Remote.</TEXT>\r\n\
        </USERMESSAGE>\r\n\
        <USERMESSAGE>\r\n\
            <VERSIONS>\r\n\
                <VERSION></VERSION>\r\n\
            </VERSIONS>\r\n\
            <TYPE>Abort</TYPE>\r\n\
        </USERMESSAGE>\r\n\
    </USERMESSAGES>\r\n\
    <INTENDEDVERSION>\r\n\
        <PROTOCOL>%i</PROTOCOL>\r\n\
        <SKIN>%i</SKIN>\r\n\
        <FLASH>0x%02X:0x%02X</FLASH>\r\n\
        <BOARD>%i.%i.0</BOARD>\r\n\
        <SOFTWARETYPE>%i</SOFTWARETYPE>\r\n\
    </INTENDEDVERSION>\r\n\
    <TRANSFERTYPE>Winsock</TRANSFERTYPE>\r\n\
    <CONFIGURATION>\r\n\
        <CONFIGOPTION>\r\n\
            <KEY>InstructionNoHarmony</KEY>\r\n\
            <TITLE>No Harmony Detected</TITLE>\r\n\
            <IMAGE>0</IMAGE>\r\n\
            <VALUE>Plug the USB cable into your Harmony, or press any button on your Harmony to wake it up.</VALUE>\r\n\
        </CONFIGOPTION>\r\n\
    </CONFIGURATION>\r\n"

"    <POSTOPTIONS>\r\n\
        <SERVER>members.harmonyremote.com</SERVER>\r\n\
        <PATH>EasyZapper/New/ProcUpdate/Receive_Zaps.asp</PATH>\r\n\
        <TIMEOUT>60000</TIMEOUT>\r\n\
        <HEADERS>\r\n\
            <HEADER>\r\n\
                <KEY>Cookie</KEY>\r\n\
                <VALUE>Monster</VALUE>\r\n\
            </HEADER>\r\n\
        </HEADERS>\r\n\
        <PARAMETERS>\r\n\
            <PARAMETER>\r\n\
                <KEY>UserId</KEY>\r\n\
                <VALUE>0</VALUE>\r\n\
            </PARAMETER>\r\n\
        </PARAMETERS>\r\n\
    </POSTOPTIONS>\r\n"

"    <TIPPOSTOPTIONS>\r\n\
        <SERVER>members.harmonyremote.com</SERVER>\r\n\
        <TIMEOUT>60000</TIMEOUT>\r\n\
        <HEADERS>\r\n\
            <HEADER>\r\n\
                <KEY>Cookie</KEY>\r\n\
                <VALUE>Monster</VALUE>\r\n\
            </HEADER>\r\n\
        </HEADERS>\r\n\
    </TIPPOSTOPTIONS>\r\n"
    
    
"    <TIMEPOSTOPTIONS>\r\n\
        <SERVER>members.harmonyremote.com</SERVER>\r\n\
        <PATH>EasyZapper/GetTime.asp</PATH>\r\n\
        <TIMEOUT>60000</TIMEOUT>\r\n\
    </TIMEPOSTOPTIONS>\r\n"

"    <COMPLETEPOSTOPTIONS>\r\n\
        <SERVER>members.harmonyremote.com</SERVER>\r\n\
        <PATH>EasyZapper/New/ProcUpdate/Receive_Complete.asp</PATH>\r\n\
        <TIMEOUT>60000</TIMEOUT>\r\n\
        <HEADERS>\r\n\
            <HEADER>\r\n\
                <KEY>Cookie</KEY>\r\n\
                <VALUE>Monster</VALUE>\r\n\
            </HEADER>\r\n\
        </HEADERS>\r\n\
        <PARAMETERS>\r\n\
            <PARAMETER>\r\n\
                <KEY>UserId</KEY>\r\n\
                <VALUE>0</VALUE>\r\n\
            </PARAMETER>\r\n\
        </PARAMETERS>\r\n\
    </COMPLETEPOSTOPTIONS>\r\n"


"    <BINARYDATASIZE>%i</BINARYDATASIZE>\r\n\
    <CHECKSUM>%i</CHECKSUM>\r\n\
</INFORMATION>\r\n";


const char *mh_config_header = "<DATA><FILES><FILE NAME=\"Result.EzHex\" SIZE=\"%i\" PATH=\"/cfg/usercfg\" VERSION=\"1\" FW_VERSION=\"9.5\" OPERATIONTYPE=\"userconfiguration\"><CHECKSUM SEED=\"0x4321\" OFFSET=\"0x0\" LENGTH=\"0x%04x\" EXPECTEDVALUE=\"0x%04x\" TYPE=\"XOR\"/></FILE></FILES><INTENDED><SKIN>%i</SKIN></INTENDED><ORDER><ORDER_ELEMENT NAME=\"Result.EzHex\" RESET=\"true\"/></ORDER></DATA>";

const char *post_header="\
POST /%s HTTP/1.1\r\n\
User-Agent: HarmonyBrowser/7.3.0 (Build 15; UpdatedFrom 7.3.0.15; Skin logitech; Windows XP 5.1; x86; en; rv: 1.8.0.2) Gecko/20060125\r\n\
Content-Type:  application/x-www-form-urlencoded\r\n\
Host: %s\r\n\
Cookie: %s\r\n\
Content-Length: %i\r\n\r\n";

const char *post_xml="\
<EASYZAPPERDATA>\
<DATAVALUES/>\
<EVENTS/>\
<VERSIONINFORMATION>\
<VERSION>\
<CLIENTSOFTWARE>7.3.0</CLIENTSOFTWARE>\
<CLIENTSOFTWARETYPE>Windows XP (x86.1):Java</CLIENTSOFTWARETYPE>\
<SOFTWARE>%i.%i</SOFTWARE>\
<SOFTWARETYPE>%i</SOFTWARETYPE>\
<ID>%s</ID>\
<BOARD>%i.%i.%i</BOARD>\
<FLASH>0x%02X:0x%02X</FLASH>\
<PROTOCOL>%i</PROTOCOL>\
<ARCHITECTURE>%i</ARCHITECTURE>\
<SKIN>%i</SKIN>";

const char *post_xml_trailer="\
<REGIONS/>\
</VERSION>\
</VERSIONINFORMATION>\
</EASYZAPPERDATA>\r\n";

const char *post_xml_usbnet1="\
<HOMEID>0x%08X</HOMEID>\
<NODEID>%i</NODEID>\
<TID>%s</TID>\
<FIRMWARE>";

const char *post_xml_usbnet_region="\
<REGION ID=\"%i\">%s</REGION>";

const char *post_xml_usbnet2="\
</FIRMWARE>\
<REGIONS/>\
</VERSION>\
</VERSIONINFORMATION>";

const char *post_xml_usbnet3="\
</EASYZAPPERDATA>";

const char *z_post_xml="\
<DATA>\
<STATUS>Success</STATUS>\
<INFORMATION>Initializing services</INFORMATION>\
<INFORMATION>Getting remote control information</INFORMATION>\
<INFORMATION>Logitech Harmony Remote Software version: 7.7.0</INFORMATION>\
<INFORMATION>Hardware version: Board %i.%i.0 (0x%02X:0x%02X)</INFORMATION>\
<INFORMATION>Firmware version: %i.%i</INFORMATION>\
<INFORMATION>Getting remote control information - Successful</INFORMATION>\
<INFORMATION>Checking version information</INFORMATION>\
<INFORMATION>Checking version information - Successful</INFORMATION>\
<INFORMATION>Waking the remote control</INFORMATION>\
<INFORMATION>Waking the remote control - Successful</INFORMATION>\
<INFORMATION>Getting remote control states</INFORMATION>\
<INFORMATION>Getting remote control states - Successful</INFORMATION>\
<INFORMATION>Uploading remote control information to web</INFORMATION>\
<INFORMATION>Initializing the remote control.  Please wait...</INFORMATION>\
<INFORMATION>Uploading remote control information to web - Successful</INFORMATION>\
<INFORMATION>Uploading...</INFORMATION>\
<INFORMATION>Starting communication</INFORMATION>\
<INFORMATION>Starting communication - Successful</INFORMATION>\
<INFORMATION>Estimating time to update remote control</INFORMATION>\
<INFORMATION>Estimated time to update remote control : 2 minutes</INFORMATION>\
<INFORMATION>Estimating time to update remote control - Successful</INFORMATION>\
<INFORMATION>Updating region</INFORMATION>\
<INFORMATION>Verifying the data written to the remote control</INFORMATION>\
<INFORMATION>Verifying the data written to the remote control - Successful</INFORMATION>\
<INFORMATION>Updating region - Successful</INFORMATION>\
<INFORMATION>Verifying the data written to the remote control</INFORMATION>\
<INFORMATION>Verifying the data written to the remote control - Successful</INFORMATION>\
<INFORMATION>Terminating communication</INFORMATION>\
<INFORMATION>Terminating communication - Successful</INFORMATION>\
<INFORMATION>Updated state variables.</INFORMATION>\
<INFORMATION>Updated state variables. - Successful</INFORMATION>\
<INFORMATION>Updating remote control time</INFORMATION>\
<INFORMATION>Updating remote control time - Successful</INFORMATION></DATA>";

#endif