TV: 'TV'
};
+var ServiceType = {
+ APP_COMM_CLIENT: 'APP_COMM_CLIENT',
+ APP_COMM_SERVER: 'APP_COMM_SERVER',
+ REMOTE_APP_CONTROL: 'REMOTE_APP_CONTROL'
+};
+
function SetReadOnlyProperty(obj, n, v) {
if (arguments.length > 2)
Object.defineProperty(
}
});
+ this.type = ServiceType.REMOTE_APP_CONTROL;
+
// Registering the service in the table of issued services
convergenceServices[this._serviceId] = this;
}
}
]);
- if (this.connectionState == ConnectionState.CONNECTED)
- throw new WebAPIException('InvalidStateError', 'Service is connected already.');
-
var lid = this._serviceId;
// TODO In fact it must be a list of callbacks
// But untill D2D FW suppurts transaction management, it is meaningless to
validator_.isConstructorCall(this, AppCommunicationServerService);
this.connectionState = ConnectionState.NOT_CONNECTED;
+ this.type = ServiceType.APP_COMM_SERVER;
native_.callSync('AppCommunicationServerService_constructLocal', {
deviceId: this._deviceId
validator_.isConstructorCall(this, AppCommunicationClientService);
this.connectionState = ConnectionState.NOT_CONNECTED;
+ this.type = ServiceType.APP_COMM_CLIENT;
}
AppCommunicationClientService.prototype = new AppCommunicationService();
}
exports = new ConvergenceManager();
-tizen.RemoteAppControlService = RemoteAppControlService;
tizen.AppCommunicationServerService = AppCommunicationServerService;
-tizen.AppCommunicationClientService = AppCommunicationClientService;
tizen.ChannelInfo = ChannelInfo;