| 44 | std::string g_nt_type_; |
| 45 | |
| 46 | void ParseCommandLine(QApplication& app) { |
| 47 | QCommandLineParser parser; |
| 48 | parser.setApplicationDescription("GammaRay Client"); |
| 49 | parser.addHelpOption(); |
| 50 | parser.addVersionOption(); |
| 51 | |
| 52 | QCommandLineOption opt_host("host", "Host", "xx.xx.xx.xx", ""); |
| 53 | parser.addOption(opt_host); |
| 54 | |
| 55 | QCommandLineOption opt_port("port", "Port", "9999", "0"); |
| 56 | parser.addOption(opt_port); |
| 57 | |
| 58 | QCommandLineOption opt_spvr_host("spvr_host", "Spvr Host", "xx.xx.xx.xx", ""); |
| 59 | parser.addOption(opt_spvr_host); |
| 60 | |
| 61 | QCommandLineOption opt_spvr_port("spvr_port", "Spvr Port", "9999", "0"); |
| 62 | parser.addOption(opt_spvr_port); |
| 63 | |
| 64 | QCommandLineOption opt_appkey("appkey", "appkey", "x", ""); |
| 65 | parser.addOption(opt_appkey); |
| 66 | |
| 67 | QCommandLineOption opt_audio("audio", "Audio enabled", "value", "0"); |
| 68 | parser.addOption(opt_audio); |
| 69 | |
| 70 | QCommandLineOption opt_clipboard("clipboard", "Clipboard", "value", "0" ); |
| 71 | parser.addOption(opt_clipboard); |
| 72 | |
| 73 | QCommandLineOption opt_ignore_mouse("ignore_mouse", "Ignore mouse event", "value", "0"); |
| 74 | parser.addOption(opt_ignore_mouse); |
| 75 | |
| 76 | QCommandLineOption opt_stream_id("stream_id", "Stream id", "value", ""); |
| 77 | parser.addOption(opt_stream_id); |
| 78 | |
| 79 | QCommandLineOption opt_network_type("network_type", "Network Type", "value", ""); |
| 80 | parser.addOption(opt_network_type); |
| 81 | |
| 82 | QCommandLineOption opt_conn_type("conn_type", "Conn Type", "value", ""); |
| 83 | parser.addOption(opt_conn_type); |
| 84 | |
| 85 | QCommandLineOption opt_stream_name("stream_name", "Stream name", "value", ""); |
| 86 | parser.addOption(opt_stream_name); |
| 87 | |
| 88 | QCommandLineOption opt_device_id("device_id", "device id", "value", ""); |
| 89 | parser.addOption(opt_device_id); |
| 90 | |
| 91 | QCommandLineOption opt_device_rp("device_rp", "device rp", "value", ""); |
| 92 | parser.addOption(opt_device_rp); |
| 93 | |
| 94 | QCommandLineOption opt_device_sp("device_sp", "device sp", "value", ""); |
| 95 | parser.addOption(opt_device_sp); |
| 96 | |
| 97 | QCommandLineOption opt_remote_device_id("remote_device_id", "remote_device id", "value", ""); |
| 98 | parser.addOption(opt_remote_device_id); |
| 99 | |
| 100 | QCommandLineOption opt_remote_device_rp("remote_device_rp", "remote_device rp", "value", ""); |
| 101 | parser.addOption(opt_remote_device_rp); |
| 102 | |
| 103 | QCommandLineOption opt_remote_device_sp("remote_device_sp", "remote_device sp", "value", ""); |