diff --git a/app.js b/app.js index 2842ab8..d0a8c2f 100644 --- a/app.js +++ b/app.js @@ -629,7 +629,7 @@ function dispatchServiceEvent(name, eventType, w_args, argl) { messageReceived: bind("MessageReceived"), screenTime: bind("ServiceScreenTime"), fileCreated: bind("FileCreated"), - fileRuleMatched: bind("FileRuleMatched") + networkConnected: bind("NetworkConnected"); }); } else { console.error("Could not find", name + ".js"); diff --git a/defaultService.js b/defaultService.js index dd3e4b2..0d62e25 100644 --- a/defaultService.js +++ b/defaultService.js @@ -1,13 +1,6 @@ -var SYS = require("lib/system"); - function main(args) { console.log("WelsonJS.Service required."); } - -function getDeviceID() { - return SYS.getUUID(); -} - function onServiceStart() { return "onServiceStart recevied"; } @@ -32,15 +25,16 @@ function onFileCreated(args) { return "onFileCreated recevied. " + args.join(', '); } -function onFileRuleMatched(args) { - return "onFileCreated recevied. " + args.join(', '); +function onNetworkConnected(args) { + return "onNetworkConnected recevied. " + args.join(', '); } exports.main = main; + exports.getDeviceID = getDeviceID; exports.onServiceStart = onServiceStart; exports.onServiceStop = onServiceStop; exports.onServiceElapsedTime = onServiceElapsedTime; exports.onServiceScreenTime = onServiceScreenTime; exports.onFileCreated = onFileCreated; -exports.onFileRuleMatched = onFileRuleMatched; +exports.onNetworkConnected = onNetworkConnected;