1 // 2 // anyRemote 3 // a wi-fi or bluetooth remote for your PC. 4 // 5 // Copyright (C) 2006-2016 Mikhail Fedotov <anyremote@mail.ru> 6 // 7 // This program is free software; you can redistribute it and/or modify 8 // it under the terms of the GNU General Public License as published by 9 // the Free Software Foundation; either version 3 of the License, or 10 // (at your option) any later version. 11 // 12 // This program is distributed in the hope that it will be useful, 13 // but WITHOUT ANY WARRANTY; without even the implied warranty of 14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 // GNU General Public License for more details. 16 // 17 // You should have received a copy of the GNU General Public License 18 // along with this program; if not, write to the Free Software 19 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 // 21 22 #ifndef _PR_GEN_XML_H_ 23 #define _PR_GEN_XML_H_ 24 25 #include "lib_wrapper.h" 26 27 #define XML_SOFTKEY_NUM 4 28 29 #define XML_BUTTON_PRESS "xml_button=" 30 #define XML_SHORT_MENU "xml_me=" 31 #define XML_LONG_MENU "xml_mw=" 32 #define XML_LIST_MENU "xml_lm=" 33 #define XML_LIST_MENU2 "xml_ll=" 34 #define XML_LIST_MENU_EXT "xml_lext" 35 #define XML_EFIELD_CANCEL "xml_ec" 36 #define XML_EFIELD_SUBMIT ";?xml_ef=" 37 38 string_t* renderCtrlXMLForm(string_t* ip, int port); 39 string_t* renderTextXMLForm(string_t* ip, int port); 40 string_t* renderListXMLForm(string_t* ip, int port); 41 string_t* renderWmanXMLForm(string_t* ip, int port); 42 string_t* renderEditXMLForm(string_t* ip, int port); 43 string_t* renderPassXMLForm(string_t* ip, int port); 44 45 string_t* sendXMLMenu(int form, string_t* ip, int port, int idx); 46 47 void parseScreenDef (char* buffer); 48 void parseCiscoModel(char* buffer); 49 50 void renderXMLImage(); 51 52 int xmlScreenWidth(); 53 int xmlScreenHeight(); 54 boolean_t xmlScreenGrayscale(); 55 void xmlSetLayoutOk(boolean_t ok); 56 57 #endif 58