diff --git a/Source/WPEFramework/Controller.h b/Source/WPEFramework/Controller.h index ff7f40e93..41437be30 100644 --- a/Source/WPEFramework/Controller.h +++ b/Source/WPEFramework/Controller.h @@ -29,7 +29,8 @@ namespace WPEFramework { namespace Plugin { - class Controller + PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE) // for now we must support the deprecated interface for backwards compatibility reasons + class Controller : public PluginHost::IPlugin , public PluginHost::IWeb , public PluginHost::JSONRPC @@ -353,22 +354,18 @@ namespace Plugin { // IUnknown methods // ------------------------------------------------------------------------------------------------------- -PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE) // for now we must support the deprecated interface for backwards compatibility reasons - BEGIN_INTERFACE_MAP(Controller) - INTERFACE_ENTRY(PluginHost::IPlugin) - INTERFACE_ENTRY(PluginHost::IWeb) - INTERFACE_ENTRY(PluginHost::IDispatcher) - INTERFACE_ENTRY(PluginHost::IController) - INTERFACE_ENTRY(Exchange::Controller::IConfiguration) - INTERFACE_ENTRY(Exchange::Controller::IDiscovery) - INTERFACE_ENTRY(Exchange::Controller::ISystemManagement) - INTERFACE_ENTRY(Exchange::Controller::IMetadata) - INTERFACE_ENTRY(Exchange::Controller::ILifeTime) + INTERFACE_ENTRY(PluginHost::IPlugin) + INTERFACE_ENTRY(PluginHost::IWeb) + INTERFACE_ENTRY(PluginHost::IDispatcher) + INTERFACE_ENTRY(PluginHost::IController) + INTERFACE_ENTRY(Exchange::Controller::IConfiguration) + INTERFACE_ENTRY(Exchange::Controller::IDiscovery) + INTERFACE_ENTRY(Exchange::Controller::ISystemManagement) + INTERFACE_ENTRY(Exchange::Controller::IMetadata) + INTERFACE_ENTRY(Exchange::Controller::ILifeTime) END_INTERFACE_MAP -POP_WARNING() - private: // ILocalDispatcher methods // ------------------------------------------------------------------------------------------------------- @@ -411,6 +408,7 @@ POP_WARNING() std::vector _externalSubsystems; std::list _observers; }; + POP_WARNING() } } diff --git a/Source/WPEFramework/ExampleConfigWindows.json b/Source/WPEFramework/ExampleConfigWindows.json index a7423d7f5..87f6ea47a 100644 --- a/Source/WPEFramework/ExampleConfigWindows.json +++ b/Source/WPEFramework/ExampleConfigWindows.json @@ -3,19 +3,19 @@ "binding": "127.0.0.1", "idletime": 60, "ipv6": false, - "persistentpath": "C:/ThunderWin/artifacts/Persistent", - "volatilepath": "C:/ThunderWin/artifacts/temp", - "datapath": "C:/ThunderWin/artifacts/Debug/Plugins", - "systempath": "C:/ThunderWin/artifacts/Debug", - "proxystubpath": "C:/ThunderWin/artifacts/ProxyStubs/Debug", - "communicator": "0.0.0.0:62000", + "persistentpath": "D:/Domotica/artifacts/Persistent", + "volatilepath": "D:/Domotica/artifacts/temp", + "datapath": "D:/Domotica/artifacts/Debug/Plugins", + "systempath": "D:/Domotica/artifacts/Debug", + "proxystubpath": "D:/Domotica/artifacts/ProxyStubs/Debug", + "communicator": "127.0.0.1:62000", "redirect": "Service/Controller/UI", - "messagingport": 63000, "observe": { - "proxystubpath": "C:/ThunderWin/artifacts/dynamic/proxystubs", - "configpath": "C:/ThunderWin/artifacts/dynamic/config" + "proxystubpath": "D:/Domotica/artifacts/dynamic/proxystubs", + "configpath": "D:/Domotica/artifacts/dynamic/config" }, "messaging": { + "port": 63000, "logging": { "abbreviated": true, "settings": [ @@ -29,6 +29,14 @@ "settings": [ { "module": "ZWave", + "enabled": true + }, + { + "module": "Plugin_ZWaveControl", + "enabled": true + }, + { + "module": "Plugin_TestPlugin", "enabled": false }, { @@ -41,6 +49,10 @@ }, { "module": "Plugin_BridgeLink", + "enabled": false + }, + { + "module": "Plugin_DNSServer", "enabled": true } ] @@ -66,6 +78,17 @@ } } }, + { + "callsign": "TestPlugin", + "locator": "libTestPlugin.so", + "classname": "TestPlugin", + "autostart": false, + "configuration": { + "root": { + "mode": "Local" + } + } + }, { "callsign": "Doofah", "locator": "libDoofah.so", @@ -131,9 +154,10 @@ "callsign": "ZWaveControl", "locator": "libZWaveControl.so", "classname": "ZWaveControl", - "autostart": false, + "autostart": true, "configuration": { - "port": "\\\\.\\COM5" + "port": "\\\\.\\COM4", + "key": "ba:09:87:65:43:21:de:ad:be:ef:12:34:56:78:90:ab" } }, { @@ -258,9 +282,9 @@ }, { "autostart": false, - "callsign": "ScriptEngine", - "classname": "ScriptEngine", - "locator": "libScriptEngine.so" + "callsign": "RuleEngine", + "classname": "RuleEngine", + "locator": "libRuleEngine.so" }, { "autostart": false, @@ -291,7 +315,7 @@ "callsign": "IOControl", "locator": "libIOControl.so", "classname": "IOControl", - "autostart": true, + "autostart": false, "configuration": { "port": "\\\\.\\COM24", "pins": [ @@ -338,7 +362,7 @@ "callsign": "OneWireControl", "locator": "libOneWireControl.so", "classname": "OneWireControl", - "autostart": true, + "autostart": false, "configuration": { "port": "\\\\.\\COM24", "devices": [ @@ -354,7 +378,7 @@ "callsign": "I2CControl", "locator": "libI2CControl.so", "classname": "I2CControl", - "autostart": true, + "autostart": false, "configuration": { "port": "\\\\.\\COM24", "devices": [ @@ -386,7 +410,7 @@ "callsign": "JSONRPCPlugin", "locator": "libJSONRPCPlugin.so", "classname": "JSONRPCPlugin", - "autostart": true + "autostart": false }, { "callsign": "OpenCDMi", @@ -431,6 +455,7 @@ "locator": "libWebServer.so", "classname": "WebServer", "autostart": false, + "communicator": "127.0.0.1:2349", "configuration": { "port": 8080, "binding": "0.0.0.0", @@ -455,7 +480,7 @@ }, { "callsign": "TimeSync", - "locator": "1libtimesync.so", + "locator": "libtimesync.so", "classname": "TimeSync", "autostart": false, "configuration": { @@ -500,7 +525,8 @@ "callsign": "Dictionary", "locator": "libdictionary.so", "classname": "Dictionary", - "autostart": false + "autostart": false, + "communicator": "127.0.0.1:5522" }, { "callsign": "DIALServer", @@ -556,6 +582,17 @@ "mapfile": "ir-remote.json" } }, + { + "callsign": "DNSServer", + "locator": "libDNSServer.so", + "classname": "DNSServer", + "autostart": false, + "configuration": { + "bind": "0.0.0.0:53", + "multicast": "224.0.0.251:5353", + "server": [ "192.168.1.250:53", "8.8.8.8:53" ] + } + }, { "autostart": false, "callsign": "WebKitBrowser", diff --git a/Source/core/FileSystem.h b/Source/core/FileSystem.h index 435f66799..1e5c9aa40 100644 --- a/Source/core/FileSystem.h +++ b/Source/core/FileSystem.h @@ -43,7 +43,7 @@ namespace Core { { size_t position = pathInfo.find("|"); if (position != string::npos) { - Core::NumberType number(pathInfo.substr(position + 1).c_str(), (pathInfo.length() - position)); + Core::NumberType number(pathInfo.substr(position + 1).c_str(), static_cast(pathInfo.length() - position)); permission = number.Value(); } path = pathInfo.substr(0, position); diff --git a/Source/plugins/plugins.vcxproj b/Source/plugins/plugins.vcxproj index a04820f1d..0769f2b3b 100644 --- a/Source/plugins/plugins.vcxproj +++ b/Source/plugins/plugins.vcxproj @@ -148,7 +148,7 @@ $(IntDir)$(TargetName).pdb - python "$(ToolPath)\JsonGenerator\JsonGenerator.py" -I "$(FrameworkPath)\" --no-includes --keep-empty -c --namespace WPEFramework::Exchange::IController -o "$(ProjectDir)generated\json" "$(ProjectDir)IController.h" --force + python "$(ToolPath)\JsonGenerator\JsonGenerator.py" -I "$(FrameworkPath)\" --no-includes --keep-empty -c --namespace WPEFramework::Exchange::Controller -o "$(ProjectDir)generated\json" "$(ProjectDir)IController.h" --force @@ -169,7 +169,7 @@ $(IntDir)$(TargetName).pdb - python "$(ToolPath)\JsonGenerator\JsonGenerator.py" -I "$(FrameworkPath)\" --no-includes --keep-empty -c --namespace WPEFramework::Exchange::IController -o "$(ProjectDir)generated\json" "$(ProjectDir)IController.h" --force + python "$(ToolPath)\JsonGenerator\JsonGenerator.py" -I "$(FrameworkPath)\" --no-includes --keep-empty -c --namespace WPEFramework::Exchange::Controller -o "$(ProjectDir)generated\json" "$(ProjectDir)IController.h" --force @@ -190,7 +190,7 @@ $(IntDir)$(TargetName).pdb - python "$(ToolPath)\JsonGenerator\JsonGenerator.py" -I "$(FrameworkPath)\" --no-includes --keep-empty -c --namespace WPEFramework::Exchange::IController -o "$(ProjectDir)generated\json" "$(ProjectDir)IController.h" --force + python "$(ToolPath)\JsonGenerator\JsonGenerator.py" -I "$(FrameworkPath)\" --no-includes --keep-empty -c --namespace WPEFramework::Exchange::Controller -o "$(ProjectDir)generated\json" "$(ProjectDir)IController.h" --force @@ -215,7 +215,7 @@ $(IntDir)$(TargetName).pdb - python "$(ToolPath)\JsonGenerator\JsonGenerator.py" -I "$(FrameworkPath)\" --no-includes --keep-empty -c --namespace WPEFramework::Exchange::IController -o "$(ProjectDir)generated\json" "$(ProjectDir)IController.h" --force + python "$(ToolPath)\JsonGenerator\JsonGenerator.py" -I "$(FrameworkPath)\" --no-includes --keep-empty -c --namespace WPEFramework::Exchange::Controller -o "$(ProjectDir)generated\json" "$(ProjectDir)IController.h" --force diff --git a/Source/plugins/proxystubs.vcxproj b/Source/plugins/proxystubs.vcxproj index 9c7ecdb35..700891e35 100644 --- a/Source/plugins/proxystubs.vcxproj +++ b/Source/plugins/proxystubs.vcxproj @@ -20,6 +20,7 @@ + @@ -116,6 +117,7 @@ true .;$(FrameworkPath);$(WindowsPath);$(WindowsPath)zlib true + /wd4996 %(AdditionalOptions) Windows @@ -126,7 +128,7 @@ $(IntDir)$(TargetName).pdb - python "$(ToolPath)\ProxyStubGenerator\StubGenerator.py" --namespace WPEFramework::PluginHost --outdir "$(ProjectDir)generated" "$(ProjectDir)IPlugin.h" "$(ProjectDir)IShell.h" "$(ProjectDir)IController.h" "$(ProjectDir)IStateControl.h" "$(ProjectDir)ISubSystem.h" "$(ProjectDir)IDispatcher.h" -I "$(ProjectDir)\.." + python "$(ToolPath)\ProxyStubGenerator\StubGenerator.py" --namespace WPEFramework::PluginHost --outdir "$(ProjectDir)generated" "$(ProjectDir)IPlugin.h" "$(ProjectDir)IShell.h" "$(ProjectDir)IControllerDeprecated.h" "$(ProjectDir)IController.h" "$(ProjectDir)IStateControl.h" "$(ProjectDir)ISubSystem.h" "$(ProjectDir)IDispatcher.h" -I "$(ProjectDir)\.." @@ -141,6 +143,7 @@ true .;$(FrameworkPath);$(WindowsPath);$(WindowsPath)zlib true + /wd4996 %(AdditionalOptions) Windows @@ -149,7 +152,7 @@ $(IntDir)$(TargetName).pdb - python "$(ToolPath)\ProxyStubGenerator\StubGenerator.py" --namespace WPEFramework::PluginHost --outdir "$(ProjectDir)generated" "$(ProjectDir)IPlugin.h" "$(ProjectDir)IShell.h" "$(ProjectDir)IController.h" "$(ProjectDir)IStateControl.h" "$(ProjectDir)ISubSystem.h" "$(ProjectDir)IDispatcher.h" -I "$(ProjectDir)\.." + python "$(ToolPath)\ProxyStubGenerator\StubGenerator.py" --namespace WPEFramework::PluginHost --outdir "$(ProjectDir)generated" "$(ProjectDir)IPlugin.h" "$(ProjectDir)IShell.h" "$(ProjectDir)IControllerDeprecated.h" "$(ProjectDir)IController.h" "$(ProjectDir)IStateControl.h" "$(ProjectDir)ISubSystem.h" "$(ProjectDir)IDispatcher.h" -I "$(ProjectDir)\.." @@ -164,6 +167,7 @@ true .;$(FrameworkPath);$(WindowsPath);$(WindowsPath)zlib true + /wd4996 %(AdditionalOptions) Windows @@ -172,7 +176,7 @@ $(IntDir)$(TargetName).pdb - python "$(ToolPath)\ProxyStubGenerator\StubGenerator.py" --namespace WPEFramework::PluginHost --outdir "$(ProjectDir)generated" "$(ProjectDir)IPlugin.h" "$(ProjectDir)IShell.h" "$(ProjectDir)IController.h" "$(ProjectDir)IStateControl.h" "$(ProjectDir)ISubSystem.h" "$(ProjectDir)IDispatcher.h" -I "$(ProjectDir)\.." + python "$(ToolPath)\ProxyStubGenerator\StubGenerator.py" --namespace WPEFramework::PluginHost --outdir "$(ProjectDir)generated" "$(ProjectDir)IPlugin.h" "$(ProjectDir)IShell.h" "$(ProjectDir)IControllerDeprecated.h" "$(ProjectDir)IController.h" "$(ProjectDir)IStateControl.h" "$(ProjectDir)ISubSystem.h" "$(ProjectDir)IDispatcher.h" -I "$(ProjectDir)\.." @@ -189,6 +193,7 @@ true .;$(FrameworkPath);$(WindowsPath);$(WindowsPath)zlib true + /wd4996 %(AdditionalOptions) Windows @@ -199,7 +204,7 @@ $(IntDir)$(TargetName).pdb - python "$(ToolPath)\ProxyStubGenerator\StubGenerator.py" --namespace WPEFramework::PluginHost --outdir "$(ProjectDir)generated" "$(ProjectDir)IPlugin.h" "$(ProjectDir)IShell.h" "$(ProjectDir)IController.h" "$(ProjectDir)IStateControl.h" "$(ProjectDir)ISubSystem.h" "$(ProjectDir)IDispatcher.h" -I "$(ProjectDir)\.." + python "$(ToolPath)\ProxyStubGenerator\StubGenerator.py" --namespace WPEFramework::PluginHost --outdir "$(ProjectDir)generated" "$(ProjectDir)IPlugin.h" "$(ProjectDir)IShell.h" "$(ProjectDir)IControllerDeprecated.h" "$(ProjectDir)IController.h" "$(ProjectDir)IStateControl.h" "$(ProjectDir)ISubSystem.h" "$(ProjectDir)IDispatcher.h" -I "$(ProjectDir)\.." diff --git a/Source/plugins/proxystubs.vcxproj.filters b/Source/plugins/proxystubs.vcxproj.filters index 83efb02b0..3cc36e049 100644 --- a/Source/plugins/proxystubs.vcxproj.filters +++ b/Source/plugins/proxystubs.vcxproj.filters @@ -16,6 +16,9 @@ Generated Files + + Generated Files +