diff --git a/src/thrift/bindings/CPUStatusPollControl.d.ts b/src/thrift/bindings/CPUStatusPollControl.d.ts index b58c0b2..891c04f 100644 --- a/src/thrift/bindings/CPUStatusPollControl.d.ts +++ b/src/thrift/bindings/CPUStatusPollControl.d.ts @@ -20,6 +20,7 @@ import CoreLowLevelResult = ttypes.CoreLowLevelResult import WhatNext = ttypes.WhatNext import CoreStatus = ttypes.CoreStatus import Tools = ttypes.Tools +import AMP_VERSION = ttypes.AMP_VERSION import CORES_REGISTRY_SERVICE = ttypes.CORES_REGISTRY_SERVICE import PARTNER_REGISTRY_SERVICE = ttypes.PARTNER_REGISTRY_SERVICE import EVENT_BUS_SERVICE = ttypes.EVENT_BUS_SERVICE diff --git a/src/thrift/bindings/CoresRegistry.d.ts b/src/thrift/bindings/CoresRegistry.d.ts index cb5a94f..9fdc6f3 100644 --- a/src/thrift/bindings/CoresRegistry.d.ts +++ b/src/thrift/bindings/CoresRegistry.d.ts @@ -21,6 +21,7 @@ import CoreLowLevelResult = ttypes.CoreLowLevelResult import WhatNext = ttypes.WhatNext import CoreStatus = ttypes.CoreStatus import Tools = ttypes.Tools +import AMP_VERSION = ttypes.AMP_VERSION import CORES_REGISTRY_SERVICE = ttypes.CORES_REGISTRY_SERVICE import PARTNER_REGISTRY_SERVICE = ttypes.PARTNER_REGISTRY_SERVICE import EVENT_BUS_SERVICE = ttypes.EVENT_BUS_SERVICE diff --git a/src/thrift/bindings/DebuggerStarter.d.ts b/src/thrift/bindings/DebuggerStarter.d.ts index cd967df..585c986 100644 --- a/src/thrift/bindings/DebuggerStarter.d.ts +++ b/src/thrift/bindings/DebuggerStarter.d.ts @@ -21,6 +21,7 @@ import CoreLowLevelResult = ttypes.CoreLowLevelResult import WhatNext = ttypes.WhatNext import CoreStatus = ttypes.CoreStatus import Tools = ttypes.Tools +import AMP_VERSION = ttypes.AMP_VERSION import CORES_REGISTRY_SERVICE = ttypes.CORES_REGISTRY_SERVICE import PARTNER_REGISTRY_SERVICE = ttypes.PARTNER_REGISTRY_SERVICE import EVENT_BUS_SERVICE = ttypes.EVENT_BUS_SERVICE diff --git a/src/thrift/bindings/EventBus.d.ts b/src/thrift/bindings/EventBus.d.ts index 69813d8..debd7f3 100644 --- a/src/thrift/bindings/EventBus.d.ts +++ b/src/thrift/bindings/EventBus.d.ts @@ -21,6 +21,7 @@ import CoreLowLevelResult = ttypes.CoreLowLevelResult import WhatNext = ttypes.WhatNext import CoreStatus = ttypes.CoreStatus import Tools = ttypes.Tools +import AMP_VERSION = ttypes.AMP_VERSION import CORES_REGISTRY_SERVICE = ttypes.CORES_REGISTRY_SERVICE import PARTNER_REGISTRY_SERVICE = ttypes.PARTNER_REGISTRY_SERVICE import EVENT_BUS_SERVICE = ttypes.EVENT_BUS_SERVICE @@ -87,6 +88,10 @@ declare class Client extends HeartbeatService.Client { Fire(toBeFired: Event, callback?: (error: void, response: void)=>void): void; + RegisterWithVersion(clientLocation: ServiceRegistry_ttypes.ServiceLocation, myId: number, ampVersion: number): Q.Promise; + + RegisterWithVersion(clientLocation: ServiceRegistry_ttypes.ServiceLocation, myId: number, ampVersion: number, callback?: (error: ttypes.EventBusRegistrationFailed, response: void)=>void): void; + Register(clientLocation: ServiceRegistry_ttypes.ServiceLocation, myId: number): Q.Promise; Register(clientLocation: ServiceRegistry_ttypes.ServiceLocation, myId: number, callback?: (error: ttypes.EventBusRegistrationFailed, response: void)=>void): void; @@ -98,5 +103,6 @@ declare class Processor extends HeartbeatService.Processor { constructor(handler: object); process(input: thrift.TProtocol, output: thrift.TProtocol): void; process_Fire(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; + process_RegisterWithVersion(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; process_Register(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; } diff --git a/src/thrift/bindings/EventBus.js b/src/thrift/bindings/EventBus.js index 4533f6f..530121e 100644 --- a/src/thrift/bindings/EventBus.js +++ b/src/thrift/bindings/EventBus.js @@ -97,6 +97,141 @@ EventBus_Fire_result.prototype.write = function(output) { return; }; +var EventBus_RegisterWithVersion_args = function(args) { + this.clientLocation = null; + this.myId = null; + this.ampVersion = null; + if (args) { + if (args.clientLocation !== undefined && args.clientLocation !== null) { + this.clientLocation = new ServiceRegistry_ttypes.ServiceLocation(args.clientLocation); + } + if (args.myId !== undefined && args.myId !== null) { + this.myId = args.myId; + } + if (args.ampVersion !== undefined && args.ampVersion !== null) { + this.ampVersion = args.ampVersion; + } + } +}; +EventBus_RegisterWithVersion_args.prototype = {}; +EventBus_RegisterWithVersion_args.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == Thrift.Type.STRUCT) { + this.clientLocation = new ServiceRegistry_ttypes.ServiceLocation(); + this.clientLocation.read(input); + } else { + input.skip(ftype); + } + break; + case 2: + if (ftype == Thrift.Type.I32) { + this.myId = input.readI32(); + } else { + input.skip(ftype); + } + break; + case 3: + if (ftype == Thrift.Type.I32) { + this.ampVersion = input.readI32(); + } else { + input.skip(ftype); + } + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +EventBus_RegisterWithVersion_args.prototype.write = function(output) { + output.writeStructBegin('EventBus_RegisterWithVersion_args'); + if (this.clientLocation !== null && this.clientLocation !== undefined) { + output.writeFieldBegin('clientLocation', Thrift.Type.STRUCT, 1); + this.clientLocation.write(output); + output.writeFieldEnd(); + } + if (this.myId !== null && this.myId !== undefined) { + output.writeFieldBegin('myId', Thrift.Type.I32, 2); + output.writeI32(this.myId); + output.writeFieldEnd(); + } + if (this.ampVersion !== null && this.ampVersion !== undefined) { + output.writeFieldBegin('ampVersion', Thrift.Type.I32, 3); + output.writeI32(this.ampVersion); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var EventBus_RegisterWithVersion_result = function(args) { + this.regFaild = null; + if (args instanceof ttypes.EventBusRegistrationFailed) { + this.regFaild = args; + return; + } + if (args) { + if (args.regFaild !== undefined && args.regFaild !== null) { + this.regFaild = args.regFaild; + } + } +}; +EventBus_RegisterWithVersion_result.prototype = {}; +EventBus_RegisterWithVersion_result.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == Thrift.Type.STRUCT) { + this.regFaild = new ttypes.EventBusRegistrationFailed(); + this.regFaild.read(input); + } else { + input.skip(ftype); + } + break; + case 0: + input.skip(ftype); + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +EventBus_RegisterWithVersion_result.prototype.write = function(output) { + output.writeStructBegin('EventBus_RegisterWithVersion_result'); + if (this.regFaild !== null && this.regFaild !== undefined) { + output.writeFieldBegin('regFaild', Thrift.Type.STRUCT, 1); + this.regFaild.write(output); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + var EventBus_Register_args = function(args) { this.clientLocation = null; this.myId = null; @@ -269,6 +404,67 @@ EventBusClient.prototype.send_Fire = function(toBeFired) { } }; +EventBusClient.prototype.RegisterWithVersion = function(clientLocation, myId, ampVersion, callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_RegisterWithVersion(clientLocation, myId, ampVersion); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_RegisterWithVersion(clientLocation, myId, ampVersion); + } +}; + +EventBusClient.prototype.send_RegisterWithVersion = function(clientLocation, myId, ampVersion) { + var output = new this.pClass(this.output); + var params = { + clientLocation: clientLocation, + myId: myId, + ampVersion: ampVersion + }; + var args = new EventBus_RegisterWithVersion_args(params); + try { + output.writeMessageBegin('RegisterWithVersion', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +EventBusClient.prototype.recv_RegisterWithVersion = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); + x.read(input); + input.readMessageEnd(); + return callback(x); + } + var result = new EventBus_RegisterWithVersion_result(); + result.read(input); + input.readMessageEnd(); + + if (null !== result.regFaild) { + return callback(result.regFaild); + } + callback(null); +}; + EventBusClient.prototype.Register = function(clientLocation, myId, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { @@ -352,6 +548,50 @@ EventBusProcessor.prototype.process_Fire = function(seqid, input, output) { input.readMessageEnd(); this._handler.Fire(args.toBeFired); }; +EventBusProcessor.prototype.process_RegisterWithVersion = function(seqid, input, output) { + var args = new EventBus_RegisterWithVersion_args(); + args.read(input); + input.readMessageEnd(); + if (this._handler.RegisterWithVersion.length === 3) { + Q.fcall(this._handler.RegisterWithVersion.bind(this._handler), + args.clientLocation, + args.myId, + args.ampVersion + ).then(function(result) { + var result_obj = new EventBus_RegisterWithVersion_result({success: result}); + output.writeMessageBegin("RegisterWithVersion", Thrift.MessageType.REPLY, seqid); + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }).catch(function (err) { + var result; + if (err instanceof ttypes.EventBusRegistrationFailed) { + result = new EventBus_RegisterWithVersion_result(err); + output.writeMessageBegin("RegisterWithVersion", Thrift.MessageType.REPLY, seqid); + } else { + result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("RegisterWithVersion", Thrift.MessageType.EXCEPTION, seqid); + } + result.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } else { + this._handler.RegisterWithVersion(args.clientLocation, args.myId, args.ampVersion, function (err, result) { + var result_obj; + if ((err === null || typeof err === 'undefined') || err instanceof ttypes.EventBusRegistrationFailed) { + result_obj = new EventBus_RegisterWithVersion_result((err !== null || typeof err === 'undefined') ? err : {success: result}); + output.writeMessageBegin("RegisterWithVersion", Thrift.MessageType.REPLY, seqid); + } else { + result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("RegisterWithVersion", Thrift.MessageType.EXCEPTION, seqid); + } + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } +}; EventBusProcessor.prototype.process_Register = function(seqid, input, output) { var args = new EventBus_Register_args(); args.read(input); diff --git a/src/thrift/bindings/ExecutionControl.d.ts b/src/thrift/bindings/ExecutionControl.d.ts index 09055ec..76b8b71 100644 --- a/src/thrift/bindings/ExecutionControl.d.ts +++ b/src/thrift/bindings/ExecutionControl.d.ts @@ -20,6 +20,7 @@ import CoreLowLevelResult = ttypes.CoreLowLevelResult import WhatNext = ttypes.WhatNext import CoreStatus = ttypes.CoreStatus import Tools = ttypes.Tools +import AMP_VERSION = ttypes.AMP_VERSION import CORES_REGISTRY_SERVICE = ttypes.CORES_REGISTRY_SERVICE import PARTNER_REGISTRY_SERVICE = ttypes.PARTNER_REGISTRY_SERVICE import EVENT_BUS_SERVICE = ttypes.EVENT_BUS_SERVICE diff --git a/src/thrift/bindings/Frontend.d.ts b/src/thrift/bindings/Frontend.d.ts index f68dfef..1575927 100644 --- a/src/thrift/bindings/Frontend.d.ts +++ b/src/thrift/bindings/Frontend.d.ts @@ -10,6 +10,7 @@ import Thrift = thrift.Thrift; import Q = thrift.Q; import Int64 = require('node-int64'); import shared_ttypes = require('./shared_types'); +import themes_ttypes = require('./themes_types'); import ttypes = require('./frontend_types'); @@ -259,6 +260,16 @@ declare class Client extends HeartbeatService.Client { * specified alias id. */ resolveAliasForFile(fileName: string, suggestedFile: string, callback?: (error: void, response: string)=>void): void; + + /** + * Resolve the current theme that is used by the client. + */ + getActiveTheme(): Q.Promise<{ [k: number /*themes_ttypes.ThriftDisplayElement*/]: themes_ttypes.ColorSchema; }>; + + /** + * Resolve the current theme that is used by the client. + */ + getActiveTheme(callback?: (error: void, response: { [k: number /*themes_ttypes.ThriftDisplayElement*/]: themes_ttypes.ColorSchema; })=>void): void; } declare class Processor extends HeartbeatService.Processor { @@ -283,4 +294,5 @@ declare class Processor extends HeartbeatService.Processor { process_openMultipleElementSelectionDialog(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; process_editSourceLocation(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; process_resolveAliasForFile(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; + process_getActiveTheme(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; } diff --git a/src/thrift/bindings/Frontend.js b/src/thrift/bindings/Frontend.js index 9e43066..727c06b 100644 --- a/src/thrift/bindings/Frontend.js +++ b/src/thrift/bindings/Frontend.js @@ -11,6 +11,7 @@ var Q = thrift.Q; var Int64 = require('node-int64'); var shared_ttypes = require('./shared_types'); +var themes_ttypes = require('./themes_types'); var HeartbeatService = require('./HeartbeatService'); @@ -2230,6 +2231,100 @@ Frontend_resolveAliasForFile_result.prototype.write = function(output) { return; }; +var Frontend_getActiveTheme_args = function(args) { +}; +Frontend_getActiveTheme_args.prototype = {}; +Frontend_getActiveTheme_args.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + if (ftype == Thrift.Type.STOP) { + break; + } + input.skip(ftype); + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +Frontend_getActiveTheme_args.prototype.write = function(output) { + output.writeStructBegin('Frontend_getActiveTheme_args'); + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var Frontend_getActiveTheme_result = function(args) { + this.success = null; + if (args) { + if (args.success !== undefined && args.success !== null) { + this.success = Thrift.copyMap(args.success, [themes_ttypes.ColorSchema]); + } + } +}; +Frontend_getActiveTheme_result.prototype = {}; +Frontend_getActiveTheme_result.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 0: + if (ftype == Thrift.Type.MAP) { + this.success = {}; + var _rtmp351 = input.readMapBegin(); + var _size50 = _rtmp351.size || 0; + for (var _i52 = 0; _i52 < _size50; ++_i52) { + var key53 = null; + var val54 = null; + key53 = input.readI32(); + val54 = new themes_ttypes.ColorSchema(); + val54.read(input); + this.success[key53] = val54; + } + input.readMapEnd(); + } else { + input.skip(ftype); + } + break; + case 0: + input.skip(ftype); + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +Frontend_getActiveTheme_result.prototype.write = function(output) { + output.writeStructBegin('Frontend_getActiveTheme_result'); + if (this.success !== null && this.success !== undefined) { + output.writeFieldBegin('success', Thrift.Type.MAP, 0); + output.writeMapBegin(Thrift.Type.I32, Thrift.Type.STRUCT, Thrift.objectLength(this.success)); + for (var kiter55 in this.success) { + if (this.success.hasOwnProperty(kiter55)) { + var viter56 = this.success[kiter55]; + output.writeI32(kiter55); + viter56.write(output); + } + } + output.writeMapEnd(); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + var FrontendClient = exports.Client = function(output, pClass) { this.output = output; this.pClass = pClass; @@ -3220,6 +3315,62 @@ FrontendClient.prototype.recv_resolveAliasForFile = function(input,mtype,rseqid) } return callback('resolveAliasForFile failed: unknown result'); }; + +FrontendClient.prototype.getActiveTheme = function(callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_getActiveTheme(); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_getActiveTheme(); + } +}; + +FrontendClient.prototype.send_getActiveTheme = function() { + var output = new this.pClass(this.output); + var args = new Frontend_getActiveTheme_args(); + try { + output.writeMessageBegin('getActiveTheme', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +FrontendClient.prototype.recv_getActiveTheme = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); + x.read(input); + input.readMessageEnd(); + return callback(x); + } + var result = new Frontend_getActiveTheme_result(); + result.read(input); + input.readMessageEnd(); + + if (null !== result.success) { + return callback(null, result.success); + } + return callback('getActiveTheme failed: unknown result'); +}; var FrontendProcessor = exports.Processor = function(handler) { this._handler = handler; }; @@ -3806,3 +3957,39 @@ FrontendProcessor.prototype.process_resolveAliasForFile = function(seqid, input, }); } }; +FrontendProcessor.prototype.process_getActiveTheme = function(seqid, input, output) { + var args = new Frontend_getActiveTheme_args(); + args.read(input); + input.readMessageEnd(); + if (this._handler.getActiveTheme.length === 0) { + Q.fcall(this._handler.getActiveTheme.bind(this._handler) + ).then(function(result) { + var result_obj = new Frontend_getActiveTheme_result({success: result}); + output.writeMessageBegin("getActiveTheme", Thrift.MessageType.REPLY, seqid); + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }).catch(function (err) { + var result; + result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("getActiveTheme", Thrift.MessageType.EXCEPTION, seqid); + result.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } else { + this._handler.getActiveTheme(function (err, result) { + var result_obj; + if ((err === null || typeof err === 'undefined')) { + result_obj = new Frontend_getActiveTheme_result((err !== null || typeof err === 'undefined') ? err : {success: result}); + output.writeMessageBegin("getActiveTheme", Thrift.MessageType.REPLY, seqid); + } else { + result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("getActiveTheme", Thrift.MessageType.EXCEPTION, seqid); + } + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } +}; diff --git a/src/thrift/bindings/Gatekeeper.d.ts b/src/thrift/bindings/Gatekeeper.d.ts index a7bbf85..1954c0f 100644 --- a/src/thrift/bindings/Gatekeeper.d.ts +++ b/src/thrift/bindings/Gatekeeper.d.ts @@ -21,6 +21,7 @@ import CoreLowLevelResult = ttypes.CoreLowLevelResult import WhatNext = ttypes.WhatNext import CoreStatus = ttypes.CoreStatus import Tools = ttypes.Tools +import AMP_VERSION = ttypes.AMP_VERSION import CORES_REGISTRY_SERVICE = ttypes.CORES_REGISTRY_SERVICE import PARTNER_REGISTRY_SERVICE = ttypes.PARTNER_REGISTRY_SERVICE import EVENT_BUS_SERVICE = ttypes.EVENT_BUS_SERVICE diff --git a/src/thrift/bindings/MultiCoreLog.d.ts b/src/thrift/bindings/MultiCoreLog.d.ts index f6dda55..1de8030 100644 --- a/src/thrift/bindings/MultiCoreLog.d.ts +++ b/src/thrift/bindings/MultiCoreLog.d.ts @@ -20,6 +20,7 @@ import CoreLowLevelResult = ttypes.CoreLowLevelResult import WhatNext = ttypes.WhatNext import CoreStatus = ttypes.CoreStatus import Tools = ttypes.Tools +import AMP_VERSION = ttypes.AMP_VERSION import CORES_REGISTRY_SERVICE = ttypes.CORES_REGISTRY_SERVICE import PARTNER_REGISTRY_SERVICE = ttypes.PARTNER_REGISTRY_SERVICE import EVENT_BUS_SERVICE = ttypes.EVENT_BUS_SERVICE diff --git a/src/thrift/bindings/PartnerRegistry.d.ts b/src/thrift/bindings/PartnerRegistry.d.ts index 98db1c1..9a8bb8a 100644 --- a/src/thrift/bindings/PartnerRegistry.d.ts +++ b/src/thrift/bindings/PartnerRegistry.d.ts @@ -21,6 +21,7 @@ import CoreLowLevelResult = ttypes.CoreLowLevelResult import WhatNext = ttypes.WhatNext import CoreStatus = ttypes.CoreStatus import Tools = ttypes.Tools +import AMP_VERSION = ttypes.AMP_VERSION import CORES_REGISTRY_SERVICE = ttypes.CORES_REGISTRY_SERVICE import PARTNER_REGISTRY_SERVICE = ttypes.PARTNER_REGISTRY_SERVICE import EVENT_BUS_SERVICE = ttypes.EVENT_BUS_SERVICE diff --git a/src/thrift/bindings/ProjectManager.d.ts b/src/thrift/bindings/ProjectManager.d.ts index f785bf4..ea1ecdc 100644 --- a/src/thrift/bindings/ProjectManager.d.ts +++ b/src/thrift/bindings/ProjectManager.d.ts @@ -34,6 +34,7 @@ import OptionCategory = ttypes.OptionCategory import BuildItem = ttypes.BuildItem import BatchBuildItem = ttypes.BatchBuildItem import BuildResult = ttypes.BuildResult +import ControlFilePlugin = ttypes.ControlFilePlugin import HeartbeatService = require('./HeartbeatService'); /** @@ -218,6 +219,16 @@ declare class Client extends HeartbeatService.Client { */ SaveEwpFile(project: ProjectContext, callback?: (error: ttypes.ProjectManagerError, response: void)=>void): void; + /** + * Reload project that has for example been modified on disk. + */ + ReloadProject(project: ProjectContext): Q.Promise; + + /** + * Reload project that has for example been modified on disk. + */ + ReloadProject(project: ProjectContext, callback?: (error: ttypes.ProjectManagerError, response: ProjectContext)=>void): void; + /** * Save a copy of the project to a new file. * @@ -653,22 +664,22 @@ declare class Client extends HeartbeatService.Client { /** * Get a list of options for the given node (file, group) in a project, within the given configuration . */ - GetOptionsForNode(prj: ProjectContext, node: Node, configurationName: string): Q.Promise; + GetOptionsForNode(prj: ProjectContext, node: Node, configurationName: string, optionIds?: string[]): Q.Promise; /** * Get a list of options for the given node (file, group) in a project, within the given configuration . */ - GetOptionsForNode(prj: ProjectContext, node: Node, configurationName: string, callback?: (error: ttypes.ProjectManagerError, response: OptionDescription[])=>void): void; + GetOptionsForNode(prj: ProjectContext, node: Node, configurationName: string, optionIds?: string[], callback?: (error: ttypes.ProjectManagerError, response: OptionDescription[])=>void): void; /** * Get a list of options for the given build configuration in a project. */ - GetOptionsForConfiguration(prj: ProjectContext, configurationName: string): Q.Promise; + GetOptionsForConfiguration(prj: ProjectContext, configurationName: string, optionIds?: string[]): Q.Promise; /** * Get a list of options for the given build configuration in a project. */ - GetOptionsForConfiguration(prj: ProjectContext, configurationName: string, callback?: (error: ttypes.ProjectManagerError, response: OptionDescription[])=>void): void; + GetOptionsForConfiguration(prj: ProjectContext, configurationName: string, optionIds?: string[], callback?: (error: ttypes.ProjectManagerError, response: OptionDescription[])=>void): void; /** * Set a list of options for the given node (file, group) in a project. Return a list of updated options. @@ -799,6 +810,98 @@ declare class Client extends HeartbeatService.Client { * Supported locales: en_GB */ GetPresentationForOptionsAsJson(locale: string, callback?: (error: ttypes.ProjectManagerError, response: string)=>void): void; + + /** + * Update all project connections listed for the given project. + */ + UpdateProjectConnections(prj: ProjectContext): Q.Promise; + + /** + * Update all project connections listed for the given project. + */ + UpdateProjectConnections(prj: ProjectContext, callback?: (error: void, response: void)=>void): void; + + /** + * Run the update sequence for a specific file. + */ + UpdateProjectConnection(prj: ProjectContext, file: string): Q.Promise; + + /** + * Run the update sequence for a specific file. + */ + UpdateProjectConnection(prj: ProjectContext, file: string, callback?: (error: void, response: boolean)=>void): void; + + /** + * Remove all created monitors for a given project. + */ + RemoveMonitors(prj: ProjectContext): Q.Promise; + + /** + * Remove all created monitors for a given project. + */ + RemoveMonitors(prj: ProjectContext, callback?: (error: void, response: void)=>void): void; + + /** + * Enable/disable the usage of project connection files. + */ + EnableProjectConnections(enable: boolean): Q.Promise; + + /** + * Enable/disable the usage of project connection files. + */ + EnableProjectConnections(enable: boolean, callback?: (error: void, response: void)=>void): void; + + /** + * Add a control file for a specific plugin. Throws if: + * 1. The supplied plugin does not exist. + * 2. The supplied plugin does not accept the given file. + */ + AddControlFile(prj: ProjectContext, file: string, pluginId: string): Q.Promise; + + /** + * Add a control file for a specific plugin. Throws if: + * 1. The supplied plugin does not exist. + * 2. The supplied plugin does not accept the given file. + */ + AddControlFile(prj: ProjectContext, file: string, pluginId: string, callback?: (error: void, response: void)=>void): void; + + /** + * Check if the project has a control file node registered for a given plugin. + */ + HasControlFileFor(prj: ProjectContext, pluginId: string): Q.Promise; + + /** + * Check if the project has a control file node registered for a given plugin. + */ + HasControlFileFor(prj: ProjectContext, pluginId: string, callback?: (error: void, response: boolean)=>void): void; + + /** + * Check if project connection is enabled. + */ + IsProjectConnectionsEnabled(): Q.Promise; + + /** + * Check if project connection is enabled. + */ + IsProjectConnectionsEnabled(callback?: (error: void, response: boolean)=>void): void; + + /** + * Get a list with information about the set of registered control files plugins. + */ + GetControlFilePlugins(): Q.Promise; + + /** + * Get a list with information about the set of registered control files plugins. + */ + GetControlFilePlugins(callback?: (error: void, response: ControlFilePlugin[])=>void): void; + + GetOptionsForProject(prj: ProjectContext): Q.Promise; + + GetOptionsForProject(prj: ProjectContext, callback?: (error: void, response: OptionDescription[])=>void): void; + + ApplyOptionsForProject(prj: ProjectContext, options: OptionDescription[]): Q.Promise; + + ApplyOptionsForProject(prj: ProjectContext, options: OptionDescription[], callback?: (error: void, response: boolean)=>void): void; } declare class Processor extends HeartbeatService.Processor { @@ -822,6 +925,7 @@ declare class Processor extends HeartbeatService.Processor { process_CreateProjectFromTemplate(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; process_LoadEwpFile(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; process_SaveEwpFile(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; + process_ReloadProject(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; process_SaveEwpFileAs(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; process_ImportProjectFiles(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; process_IsModified(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; @@ -878,4 +982,14 @@ declare class Processor extends HeartbeatService.Processor { process_GetToolArgumentsForConfiguration(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; process_ExpandArgVars(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; process_GetPresentationForOptionsAsJson(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; + process_UpdateProjectConnections(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; + process_UpdateProjectConnection(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; + process_RemoveMonitors(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; + process_EnableProjectConnections(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; + process_AddControlFile(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; + process_HasControlFileFor(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; + process_IsProjectConnectionsEnabled(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; + process_GetControlFilePlugins(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; + process_GetOptionsForProject(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; + process_ApplyOptionsForProject(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; } diff --git a/src/thrift/bindings/ProjectManager.js b/src/thrift/bindings/ProjectManager.js index 133b88e..1b8b73e 100644 --- a/src/thrift/bindings/ProjectManager.js +++ b/src/thrift/bindings/ProjectManager.js @@ -1637,6 +1637,126 @@ ProjectManager_SaveEwpFile_result.prototype.write = function(output) { return; }; +var ProjectManager_ReloadProject_args = function(args) { + this.project = null; + if (args) { + if (args.project !== undefined && args.project !== null) { + this.project = new ttypes.ProjectContext(args.project); + } + } +}; +ProjectManager_ReloadProject_args.prototype = {}; +ProjectManager_ReloadProject_args.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == Thrift.Type.STRUCT) { + this.project = new ttypes.ProjectContext(); + this.project.read(input); + } else { + input.skip(ftype); + } + break; + case 0: + input.skip(ftype); + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_ReloadProject_args.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_ReloadProject_args'); + if (this.project !== null && this.project !== undefined) { + output.writeFieldBegin('project', Thrift.Type.STRUCT, 1); + this.project.write(output); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_ReloadProject_result = function(args) { + this.success = null; + this.e = null; + if (args instanceof ttypes.ProjectManagerError) { + this.e = args; + return; + } + if (args) { + if (args.success !== undefined && args.success !== null) { + this.success = new ttypes.ProjectContext(args.success); + } + if (args.e !== undefined && args.e !== null) { + this.e = args.e; + } + } +}; +ProjectManager_ReloadProject_result.prototype = {}; +ProjectManager_ReloadProject_result.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 0: + if (ftype == Thrift.Type.STRUCT) { + this.success = new ttypes.ProjectContext(); + this.success.read(input); + } else { + input.skip(ftype); + } + break; + case 1: + if (ftype == Thrift.Type.STRUCT) { + this.e = new ttypes.ProjectManagerError(); + this.e.read(input); + } else { + input.skip(ftype); + } + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_ReloadProject_result.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_ReloadProject_result'); + if (this.success !== null && this.success !== undefined) { + output.writeFieldBegin('success', Thrift.Type.STRUCT, 0); + this.success.write(output); + output.writeFieldEnd(); + } + if (this.e !== null && this.e !== undefined) { + output.writeFieldBegin('e', Thrift.Type.STRUCT, 1); + this.e.write(output); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + var ProjectManager_SaveEwpFileAs_args = function(args) { this.project = null; this.file_path = null; @@ -6527,6 +6647,7 @@ var ProjectManager_GetOptionsForNode_args = function(args) { this.prj = null; this.node = null; this.configurationName = null; + this.optionIds = []; if (args) { if (args.prj !== undefined && args.prj !== null) { this.prj = new ttypes.ProjectContext(args.prj); @@ -6537,6 +6658,9 @@ var ProjectManager_GetOptionsForNode_args = function(args) { if (args.configurationName !== undefined && args.configurationName !== null) { this.configurationName = args.configurationName; } + if (args.optionIds !== undefined && args.optionIds !== null) { + this.optionIds = Thrift.copyList(args.optionIds, [null]); + } } }; ProjectManager_GetOptionsForNode_args.prototype = {}; @@ -6573,6 +6697,21 @@ ProjectManager_GetOptionsForNode_args.prototype.read = function(input) { input.skip(ftype); } break; + case 4: + if (ftype == Thrift.Type.LIST) { + this.optionIds = []; + var _rtmp3161 = input.readListBegin(); + var _size160 = _rtmp3161.size || 0; + for (var _i162 = 0; _i162 < _size160; ++_i162) { + var elem163 = null; + elem163 = input.readString(); + this.optionIds.push(elem163); + } + input.readListEnd(); + } else { + input.skip(ftype); + } + break; default: input.skip(ftype); } @@ -6599,6 +6738,18 @@ ProjectManager_GetOptionsForNode_args.prototype.write = function(output) { output.writeString(this.configurationName); output.writeFieldEnd(); } + if (this.optionIds !== null && this.optionIds !== undefined) { + output.writeFieldBegin('optionIds', Thrift.Type.LIST, 4); + output.writeListBegin(Thrift.Type.STRING, this.optionIds.length); + for (var iter164 in this.optionIds) { + if (this.optionIds.hasOwnProperty(iter164)) { + iter164 = this.optionIds[iter164]; + output.writeString(iter164); + } + } + output.writeListEnd(); + output.writeFieldEnd(); + } output.writeFieldStop(); output.writeStructEnd(); return; @@ -6634,13 +6785,13 @@ ProjectManager_GetOptionsForNode_result.prototype.read = function(input) { case 0: if (ftype == Thrift.Type.LIST) { this.success = []; - var _rtmp3161 = input.readListBegin(); - var _size160 = _rtmp3161.size || 0; - for (var _i162 = 0; _i162 < _size160; ++_i162) { - var elem163 = null; - elem163 = new ttypes.OptionDescription(); - elem163.read(input); - this.success.push(elem163); + var _rtmp3166 = input.readListBegin(); + var _size165 = _rtmp3166.size || 0; + for (var _i167 = 0; _i167 < _size165; ++_i167) { + var elem168 = null; + elem168 = new ttypes.OptionDescription(); + elem168.read(input); + this.success.push(elem168); } input.readListEnd(); } else { @@ -6669,10 +6820,10 @@ ProjectManager_GetOptionsForNode_result.prototype.write = function(output) { if (this.success !== null && this.success !== undefined) { output.writeFieldBegin('success', Thrift.Type.LIST, 0); output.writeListBegin(Thrift.Type.STRUCT, this.success.length); - for (var iter164 in this.success) { - if (this.success.hasOwnProperty(iter164)) { - iter164 = this.success[iter164]; - iter164.write(output); + for (var iter169 in this.success) { + if (this.success.hasOwnProperty(iter169)) { + iter169 = this.success[iter169]; + iter169.write(output); } } output.writeListEnd(); @@ -6691,6 +6842,7 @@ ProjectManager_GetOptionsForNode_result.prototype.write = function(output) { var ProjectManager_GetOptionsForConfiguration_args = function(args) { this.prj = null; this.configurationName = null; + this.optionIds = []; if (args) { if (args.prj !== undefined && args.prj !== null) { this.prj = new ttypes.ProjectContext(args.prj); @@ -6698,6 +6850,9 @@ var ProjectManager_GetOptionsForConfiguration_args = function(args) { if (args.configurationName !== undefined && args.configurationName !== null) { this.configurationName = args.configurationName; } + if (args.optionIds !== undefined && args.optionIds !== null) { + this.optionIds = Thrift.copyList(args.optionIds, [null]); + } } }; ProjectManager_GetOptionsForConfiguration_args.prototype = {}; @@ -6726,6 +6881,21 @@ ProjectManager_GetOptionsForConfiguration_args.prototype.read = function(input) input.skip(ftype); } break; + case 3: + if (ftype == Thrift.Type.LIST) { + this.optionIds = []; + var _rtmp3171 = input.readListBegin(); + var _size170 = _rtmp3171.size || 0; + for (var _i172 = 0; _i172 < _size170; ++_i172) { + var elem173 = null; + elem173 = input.readString(); + this.optionIds.push(elem173); + } + input.readListEnd(); + } else { + input.skip(ftype); + } + break; default: input.skip(ftype); } @@ -6747,6 +6917,18 @@ ProjectManager_GetOptionsForConfiguration_args.prototype.write = function(output output.writeString(this.configurationName); output.writeFieldEnd(); } + if (this.optionIds !== null && this.optionIds !== undefined) { + output.writeFieldBegin('optionIds', Thrift.Type.LIST, 3); + output.writeListBegin(Thrift.Type.STRING, this.optionIds.length); + for (var iter174 in this.optionIds) { + if (this.optionIds.hasOwnProperty(iter174)) { + iter174 = this.optionIds[iter174]; + output.writeString(iter174); + } + } + output.writeListEnd(); + output.writeFieldEnd(); + } output.writeFieldStop(); output.writeStructEnd(); return; @@ -6782,13 +6964,13 @@ ProjectManager_GetOptionsForConfiguration_result.prototype.read = function(input case 0: if (ftype == Thrift.Type.LIST) { this.success = []; - var _rtmp3166 = input.readListBegin(); - var _size165 = _rtmp3166.size || 0; - for (var _i167 = 0; _i167 < _size165; ++_i167) { - var elem168 = null; - elem168 = new ttypes.OptionDescription(); - elem168.read(input); - this.success.push(elem168); + var _rtmp3176 = input.readListBegin(); + var _size175 = _rtmp3176.size || 0; + for (var _i177 = 0; _i177 < _size175; ++_i177) { + var elem178 = null; + elem178 = new ttypes.OptionDescription(); + elem178.read(input); + this.success.push(elem178); } input.readListEnd(); } else { @@ -6817,10 +6999,10 @@ ProjectManager_GetOptionsForConfiguration_result.prototype.write = function(outp if (this.success !== null && this.success !== undefined) { output.writeFieldBegin('success', Thrift.Type.LIST, 0); output.writeListBegin(Thrift.Type.STRUCT, this.success.length); - for (var iter169 in this.success) { - if (this.success.hasOwnProperty(iter169)) { - iter169 = this.success[iter169]; - iter169.write(output); + for (var iter179 in this.success) { + if (this.success.hasOwnProperty(iter179)) { + iter179 = this.success[iter179]; + iter179.write(output); } } output.writeListEnd(); @@ -6893,13 +7075,13 @@ ProjectManager_ApplyOptionsForNode_args.prototype.read = function(input) { case 4: if (ftype == Thrift.Type.LIST) { this.optionsToSet = []; - var _rtmp3171 = input.readListBegin(); - var _size170 = _rtmp3171.size || 0; - for (var _i172 = 0; _i172 < _size170; ++_i172) { - var elem173 = null; - elem173 = new ttypes.OptionDescription(); - elem173.read(input); - this.optionsToSet.push(elem173); + var _rtmp3181 = input.readListBegin(); + var _size180 = _rtmp3181.size || 0; + for (var _i182 = 0; _i182 < _size180; ++_i182) { + var elem183 = null; + elem183 = new ttypes.OptionDescription(); + elem183.read(input); + this.optionsToSet.push(elem183); } input.readListEnd(); } else { @@ -6935,10 +7117,10 @@ ProjectManager_ApplyOptionsForNode_args.prototype.write = function(output) { if (this.optionsToSet !== null && this.optionsToSet !== undefined) { output.writeFieldBegin('optionsToSet', Thrift.Type.LIST, 4); output.writeListBegin(Thrift.Type.STRUCT, this.optionsToSet.length); - for (var iter174 in this.optionsToSet) { - if (this.optionsToSet.hasOwnProperty(iter174)) { - iter174 = this.optionsToSet[iter174]; - iter174.write(output); + for (var iter184 in this.optionsToSet) { + if (this.optionsToSet.hasOwnProperty(iter184)) { + iter184 = this.optionsToSet[iter184]; + iter184.write(output); } } output.writeListEnd(); @@ -6979,13 +7161,13 @@ ProjectManager_ApplyOptionsForNode_result.prototype.read = function(input) { case 0: if (ftype == Thrift.Type.LIST) { this.success = []; - var _rtmp3176 = input.readListBegin(); - var _size175 = _rtmp3176.size || 0; - for (var _i177 = 0; _i177 < _size175; ++_i177) { - var elem178 = null; - elem178 = new ttypes.OptionDescription(); - elem178.read(input); - this.success.push(elem178); + var _rtmp3186 = input.readListBegin(); + var _size185 = _rtmp3186.size || 0; + for (var _i187 = 0; _i187 < _size185; ++_i187) { + var elem188 = null; + elem188 = new ttypes.OptionDescription(); + elem188.read(input); + this.success.push(elem188); } input.readListEnd(); } else { @@ -7014,10 +7196,10 @@ ProjectManager_ApplyOptionsForNode_result.prototype.write = function(output) { if (this.success !== null && this.success !== undefined) { output.writeFieldBegin('success', Thrift.Type.LIST, 0); output.writeListBegin(Thrift.Type.STRUCT, this.success.length); - for (var iter179 in this.success) { - if (this.success.hasOwnProperty(iter179)) { - iter179 = this.success[iter179]; - iter179.write(output); + for (var iter189 in this.success) { + if (this.success.hasOwnProperty(iter189)) { + iter189 = this.success[iter189]; + iter189.write(output); } } output.writeListEnd(); @@ -7090,13 +7272,13 @@ ProjectManager_VerifyOptionsForNode_args.prototype.read = function(input) { case 4: if (ftype == Thrift.Type.LIST) { this.optionsToSet = []; - var _rtmp3181 = input.readListBegin(); - var _size180 = _rtmp3181.size || 0; - for (var _i182 = 0; _i182 < _size180; ++_i182) { - var elem183 = null; - elem183 = new ttypes.OptionDescription(); - elem183.read(input); - this.optionsToSet.push(elem183); + var _rtmp3191 = input.readListBegin(); + var _size190 = _rtmp3191.size || 0; + for (var _i192 = 0; _i192 < _size190; ++_i192) { + var elem193 = null; + elem193 = new ttypes.OptionDescription(); + elem193.read(input); + this.optionsToSet.push(elem193); } input.readListEnd(); } else { @@ -7132,10 +7314,10 @@ ProjectManager_VerifyOptionsForNode_args.prototype.write = function(output) { if (this.optionsToSet !== null && this.optionsToSet !== undefined) { output.writeFieldBegin('optionsToSet', Thrift.Type.LIST, 4); output.writeListBegin(Thrift.Type.STRUCT, this.optionsToSet.length); - for (var iter184 in this.optionsToSet) { - if (this.optionsToSet.hasOwnProperty(iter184)) { - iter184 = this.optionsToSet[iter184]; - iter184.write(output); + for (var iter194 in this.optionsToSet) { + if (this.optionsToSet.hasOwnProperty(iter194)) { + iter194 = this.optionsToSet[iter194]; + iter194.write(output); } } output.writeListEnd(); @@ -7176,13 +7358,13 @@ ProjectManager_VerifyOptionsForNode_result.prototype.read = function(input) { case 0: if (ftype == Thrift.Type.LIST) { this.success = []; - var _rtmp3186 = input.readListBegin(); - var _size185 = _rtmp3186.size || 0; - for (var _i187 = 0; _i187 < _size185; ++_i187) { - var elem188 = null; - elem188 = new ttypes.OptionDescription(); - elem188.read(input); - this.success.push(elem188); + var _rtmp3196 = input.readListBegin(); + var _size195 = _rtmp3196.size || 0; + for (var _i197 = 0; _i197 < _size195; ++_i197) { + var elem198 = null; + elem198 = new ttypes.OptionDescription(); + elem198.read(input); + this.success.push(elem198); } input.readListEnd(); } else { @@ -7211,10 +7393,10 @@ ProjectManager_VerifyOptionsForNode_result.prototype.write = function(output) { if (this.success !== null && this.success !== undefined) { output.writeFieldBegin('success', Thrift.Type.LIST, 0); output.writeListBegin(Thrift.Type.STRUCT, this.success.length); - for (var iter189 in this.success) { - if (this.success.hasOwnProperty(iter189)) { - iter189 = this.success[iter189]; - iter189.write(output); + for (var iter199 in this.success) { + if (this.success.hasOwnProperty(iter199)) { + iter199 = this.success[iter199]; + iter199.write(output); } } output.writeListEnd(); @@ -7275,13 +7457,13 @@ ProjectManager_ApplyOptionsForConfiguration_args.prototype.read = function(input case 3: if (ftype == Thrift.Type.LIST) { this.optionsToSet = []; - var _rtmp3191 = input.readListBegin(); - var _size190 = _rtmp3191.size || 0; - for (var _i192 = 0; _i192 < _size190; ++_i192) { - var elem193 = null; - elem193 = new ttypes.OptionDescription(); - elem193.read(input); - this.optionsToSet.push(elem193); + var _rtmp3201 = input.readListBegin(); + var _size200 = _rtmp3201.size || 0; + for (var _i202 = 0; _i202 < _size200; ++_i202) { + var elem203 = null; + elem203 = new ttypes.OptionDescription(); + elem203.read(input); + this.optionsToSet.push(elem203); } input.readListEnd(); } else { @@ -7312,10 +7494,10 @@ ProjectManager_ApplyOptionsForConfiguration_args.prototype.write = function(outp if (this.optionsToSet !== null && this.optionsToSet !== undefined) { output.writeFieldBegin('optionsToSet', Thrift.Type.LIST, 3); output.writeListBegin(Thrift.Type.STRUCT, this.optionsToSet.length); - for (var iter194 in this.optionsToSet) { - if (this.optionsToSet.hasOwnProperty(iter194)) { - iter194 = this.optionsToSet[iter194]; - iter194.write(output); + for (var iter204 in this.optionsToSet) { + if (this.optionsToSet.hasOwnProperty(iter204)) { + iter204 = this.optionsToSet[iter204]; + iter204.write(output); } } output.writeListEnd(); @@ -7356,13 +7538,13 @@ ProjectManager_ApplyOptionsForConfiguration_result.prototype.read = function(inp case 0: if (ftype == Thrift.Type.LIST) { this.success = []; - var _rtmp3196 = input.readListBegin(); - var _size195 = _rtmp3196.size || 0; - for (var _i197 = 0; _i197 < _size195; ++_i197) { - var elem198 = null; - elem198 = new ttypes.OptionDescription(); - elem198.read(input); - this.success.push(elem198); + var _rtmp3206 = input.readListBegin(); + var _size205 = _rtmp3206.size || 0; + for (var _i207 = 0; _i207 < _size205; ++_i207) { + var elem208 = null; + elem208 = new ttypes.OptionDescription(); + elem208.read(input); + this.success.push(elem208); } input.readListEnd(); } else { @@ -7391,10 +7573,10 @@ ProjectManager_ApplyOptionsForConfiguration_result.prototype.write = function(ou if (this.success !== null && this.success !== undefined) { output.writeFieldBegin('success', Thrift.Type.LIST, 0); output.writeListBegin(Thrift.Type.STRUCT, this.success.length); - for (var iter199 in this.success) { - if (this.success.hasOwnProperty(iter199)) { - iter199 = this.success[iter199]; - iter199.write(output); + for (var iter209 in this.success) { + if (this.success.hasOwnProperty(iter209)) { + iter209 = this.success[iter209]; + iter209.write(output); } } output.writeListEnd(); @@ -7455,13 +7637,13 @@ ProjectManager_VerifyOptionsForConfiguration_args.prototype.read = function(inpu case 3: if (ftype == Thrift.Type.LIST) { this.optionsToSet = []; - var _rtmp3201 = input.readListBegin(); - var _size200 = _rtmp3201.size || 0; - for (var _i202 = 0; _i202 < _size200; ++_i202) { - var elem203 = null; - elem203 = new ttypes.OptionDescription(); - elem203.read(input); - this.optionsToSet.push(elem203); + var _rtmp3211 = input.readListBegin(); + var _size210 = _rtmp3211.size || 0; + for (var _i212 = 0; _i212 < _size210; ++_i212) { + var elem213 = null; + elem213 = new ttypes.OptionDescription(); + elem213.read(input); + this.optionsToSet.push(elem213); } input.readListEnd(); } else { @@ -7492,10 +7674,10 @@ ProjectManager_VerifyOptionsForConfiguration_args.prototype.write = function(out if (this.optionsToSet !== null && this.optionsToSet !== undefined) { output.writeFieldBegin('optionsToSet', Thrift.Type.LIST, 3); output.writeListBegin(Thrift.Type.STRUCT, this.optionsToSet.length); - for (var iter204 in this.optionsToSet) { - if (this.optionsToSet.hasOwnProperty(iter204)) { - iter204 = this.optionsToSet[iter204]; - iter204.write(output); + for (var iter214 in this.optionsToSet) { + if (this.optionsToSet.hasOwnProperty(iter214)) { + iter214 = this.optionsToSet[iter214]; + iter214.write(output); } } output.writeListEnd(); @@ -7536,13 +7718,13 @@ ProjectManager_VerifyOptionsForConfiguration_result.prototype.read = function(in case 0: if (ftype == Thrift.Type.LIST) { this.success = []; - var _rtmp3206 = input.readListBegin(); - var _size205 = _rtmp3206.size || 0; - for (var _i207 = 0; _i207 < _size205; ++_i207) { - var elem208 = null; - elem208 = new ttypes.OptionDescription(); - elem208.read(input); - this.success.push(elem208); + var _rtmp3216 = input.readListBegin(); + var _size215 = _rtmp3216.size || 0; + for (var _i217 = 0; _i217 < _size215; ++_i217) { + var elem218 = null; + elem218 = new ttypes.OptionDescription(); + elem218.read(input); + this.success.push(elem218); } input.readListEnd(); } else { @@ -7571,10 +7753,10 @@ ProjectManager_VerifyOptionsForConfiguration_result.prototype.write = function(o if (this.success !== null && this.success !== undefined) { output.writeFieldBegin('success', Thrift.Type.LIST, 0); output.writeListBegin(Thrift.Type.STRUCT, this.success.length); - for (var iter209 in this.success) { - if (this.success.hasOwnProperty(iter209)) { - iter209 = this.success[iter209]; - iter209.write(output); + for (var iter219 in this.success) { + if (this.success.hasOwnProperty(iter219)) { + iter219 = this.success[iter219]; + iter219.write(output); } } output.writeListEnd(); @@ -7676,13 +7858,13 @@ ProjectManager_GetOptionCategories_result.prototype.read = function(input) { case 0: if (ftype == Thrift.Type.LIST) { this.success = []; - var _rtmp3211 = input.readListBegin(); - var _size210 = _rtmp3211.size || 0; - for (var _i212 = 0; _i212 < _size210; ++_i212) { - var elem213 = null; - elem213 = new ttypes.OptionCategory(); - elem213.read(input); - this.success.push(elem213); + var _rtmp3221 = input.readListBegin(); + var _size220 = _rtmp3221.size || 0; + for (var _i222 = 0; _i222 < _size220; ++_i222) { + var elem223 = null; + elem223 = new ttypes.OptionCategory(); + elem223.read(input); + this.success.push(elem223); } input.readListEnd(); } else { @@ -7706,10 +7888,10 @@ ProjectManager_GetOptionCategories_result.prototype.write = function(output) { if (this.success !== null && this.success !== undefined) { output.writeFieldBegin('success', Thrift.Type.LIST, 0); output.writeListBegin(Thrift.Type.STRUCT, this.success.length); - for (var iter214 in this.success) { - if (this.success.hasOwnProperty(iter214)) { - iter214 = this.success[iter214]; - iter214.write(output); + for (var iter224 in this.success) { + if (this.success.hasOwnProperty(iter224)) { + iter224 = this.success[iter224]; + iter224.write(output); } } output.writeListEnd(); @@ -8328,12 +8510,12 @@ ProjectManager_GetToolArgumentsForConfiguration_result.prototype.read = function case 0: if (ftype == Thrift.Type.LIST) { this.success = []; - var _rtmp3216 = input.readListBegin(); - var _size215 = _rtmp3216.size || 0; - for (var _i217 = 0; _i217 < _size215; ++_i217) { - var elem218 = null; - elem218 = input.readString(); - this.success.push(elem218); + var _rtmp3226 = input.readListBegin(); + var _size225 = _rtmp3226.size || 0; + for (var _i227 = 0; _i227 < _size225; ++_i227) { + var elem228 = null; + elem228 = input.readString(); + this.success.push(elem228); } input.readListEnd(); } else { @@ -8357,10 +8539,10 @@ ProjectManager_GetToolArgumentsForConfiguration_result.prototype.write = functio if (this.success !== null && this.success !== undefined) { output.writeFieldBegin('success', Thrift.Type.LIST, 0); output.writeListBegin(Thrift.Type.STRING, this.success.length); - for (var iter219 in this.success) { - if (this.success.hasOwnProperty(iter219)) { - iter219 = this.success[iter219]; - output.writeString(iter219); + for (var iter229 in this.success) { + if (this.success.hasOwnProperty(iter229)) { + iter229 = this.success[iter229]; + output.writeString(iter229); } } output.writeListEnd(); @@ -8635,132 +8817,1568 @@ ProjectManager_GetPresentationForOptionsAsJson_result.prototype.write = function return; }; -var ProjectManagerClient = exports.Client = function(output, pClass) { - this.output = output; - this.pClass = pClass; - this._seqid = 0; - this._reqs = {}; +var ProjectManager_UpdateProjectConnections_args = function(args) { + this.prj = null; + if (args) { + if (args.prj !== undefined && args.prj !== null) { + this.prj = new ttypes.ProjectContext(args.prj); + } + } }; -Thrift.inherits(ProjectManagerClient, HeartbeatServiceClient); -ProjectManagerClient.prototype.seqid = function() { return this._seqid; }; -ProjectManagerClient.prototype.new_seqid = function() { return this._seqid += 1; }; - -ProjectManagerClient.prototype.CreateEwwFile = function(file_path, callback) { - this._seqid = this.new_seqid(); - if (callback === undefined) { - var _defer = Q.defer(); - this._reqs[this.seqid()] = function(error, result) { - if (error) { - _defer.reject(error); +ProjectManager_UpdateProjectConnections_args.prototype = {}; +ProjectManager_UpdateProjectConnections_args.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == Thrift.Type.STRUCT) { + this.prj = new ttypes.ProjectContext(); + this.prj.read(input); } else { - _defer.resolve(result); + input.skip(ftype); } - }; - this.send_CreateEwwFile(file_path); - return _defer.promise; - } else { - this._reqs[this.seqid()] = callback; - this.send_CreateEwwFile(file_path); - } -}; - -ProjectManagerClient.prototype.send_CreateEwwFile = function(file_path) { - var output = new this.pClass(this.output); - var params = { - file_path: file_path - }; - var args = new ProjectManager_CreateEwwFile_args(params); - try { - output.writeMessageBegin('CreateEwwFile', Thrift.MessageType.CALL, this.seqid()); - args.write(output); - output.writeMessageEnd(); - return this.output.flush(); - } - catch (e) { - delete this._reqs[this.seqid()]; - if (typeof output.reset === 'function') { - output.reset(); + break; + case 0: + input.skip(ftype); + break; + default: + input.skip(ftype); } - throw e; + input.readFieldEnd(); } + input.readStructEnd(); + return; }; -ProjectManagerClient.prototype.recv_CreateEwwFile = function(input,mtype,rseqid) { - var callback = this._reqs[rseqid] || function() {}; - delete this._reqs[rseqid]; - if (mtype == Thrift.MessageType.EXCEPTION) { - var x = new Thrift.TApplicationException(); - x.read(input); - input.readMessageEnd(); - return callback(x); +ProjectManager_UpdateProjectConnections_args.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_UpdateProjectConnections_args'); + if (this.prj !== null && this.prj !== undefined) { + output.writeFieldBegin('prj', Thrift.Type.STRUCT, 1); + this.prj.write(output); + output.writeFieldEnd(); } - var result = new ProjectManager_CreateEwwFile_result(); - result.read(input); - input.readMessageEnd(); + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; - if (null !== result.e) { - return callback(result.e); - } - if (null !== result.success) { - return callback(null, result.success); +var ProjectManager_UpdateProjectConnections_result = function(args) { +}; +ProjectManager_UpdateProjectConnections_result.prototype = {}; +ProjectManager_UpdateProjectConnections_result.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + if (ftype == Thrift.Type.STOP) { + break; + } + input.skip(ftype); + input.readFieldEnd(); } - return callback('CreateEwwFile failed: unknown result'); + input.readStructEnd(); + return; }; -ProjectManagerClient.prototype.DisableAutoDataStoring = function(callback) { - this._seqid = this.new_seqid(); - if (callback === undefined) { - var _defer = Q.defer(); - this._reqs[this.seqid()] = function(error, result) { - if (error) { - _defer.reject(error); - } else { - _defer.resolve(result); - } - }; - this.send_DisableAutoDataStoring(); - return _defer.promise; - } else { - this._reqs[this.seqid()] = callback; - this.send_DisableAutoDataStoring(); - } +ProjectManager_UpdateProjectConnections_result.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_UpdateProjectConnections_result'); + output.writeFieldStop(); + output.writeStructEnd(); + return; }; -ProjectManagerClient.prototype.send_DisableAutoDataStoring = function() { - var output = new this.pClass(this.output); - var args = new ProjectManager_DisableAutoDataStoring_args(); - try { - output.writeMessageBegin('DisableAutoDataStoring', Thrift.MessageType.CALL, this.seqid()); - args.write(output); - output.writeMessageEnd(); - return this.output.flush(); - } - catch (e) { - delete this._reqs[this.seqid()]; - if (typeof output.reset === 'function') { - output.reset(); +var ProjectManager_UpdateProjectConnection_args = function(args) { + this.prj = null; + this.file = null; + if (args) { + if (args.prj !== undefined && args.prj !== null) { + this.prj = new ttypes.ProjectContext(args.prj); + } + if (args.file !== undefined && args.file !== null) { + this.file = args.file; } - throw e; } }; - -ProjectManagerClient.prototype.recv_DisableAutoDataStoring = function(input,mtype,rseqid) { - var callback = this._reqs[rseqid] || function() {}; - delete this._reqs[rseqid]; - if (mtype == Thrift.MessageType.EXCEPTION) { - var x = new Thrift.TApplicationException(); +ProjectManager_UpdateProjectConnection_args.prototype = {}; +ProjectManager_UpdateProjectConnection_args.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == Thrift.Type.STRUCT) { + this.prj = new ttypes.ProjectContext(); + this.prj.read(input); + } else { + input.skip(ftype); + } + break; + case 2: + if (ftype == Thrift.Type.STRING) { + this.file = input.readString(); + } else { + input.skip(ftype); + } + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_UpdateProjectConnection_args.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_UpdateProjectConnection_args'); + if (this.prj !== null && this.prj !== undefined) { + output.writeFieldBegin('prj', Thrift.Type.STRUCT, 1); + this.prj.write(output); + output.writeFieldEnd(); + } + if (this.file !== null && this.file !== undefined) { + output.writeFieldBegin('file', Thrift.Type.STRING, 2); + output.writeString(this.file); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_UpdateProjectConnection_result = function(args) { + this.success = null; + if (args) { + if (args.success !== undefined && args.success !== null) { + this.success = args.success; + } + } +}; +ProjectManager_UpdateProjectConnection_result.prototype = {}; +ProjectManager_UpdateProjectConnection_result.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 0: + if (ftype == Thrift.Type.BOOL) { + this.success = input.readBool(); + } else { + input.skip(ftype); + } + break; + case 0: + input.skip(ftype); + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_UpdateProjectConnection_result.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_UpdateProjectConnection_result'); + if (this.success !== null && this.success !== undefined) { + output.writeFieldBegin('success', Thrift.Type.BOOL, 0); + output.writeBool(this.success); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_RemoveMonitors_args = function(args) { + this.prj = null; + if (args) { + if (args.prj !== undefined && args.prj !== null) { + this.prj = new ttypes.ProjectContext(args.prj); + } + } +}; +ProjectManager_RemoveMonitors_args.prototype = {}; +ProjectManager_RemoveMonitors_args.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == Thrift.Type.STRUCT) { + this.prj = new ttypes.ProjectContext(); + this.prj.read(input); + } else { + input.skip(ftype); + } + break; + case 0: + input.skip(ftype); + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_RemoveMonitors_args.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_RemoveMonitors_args'); + if (this.prj !== null && this.prj !== undefined) { + output.writeFieldBegin('prj', Thrift.Type.STRUCT, 1); + this.prj.write(output); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_RemoveMonitors_result = function(args) { +}; +ProjectManager_RemoveMonitors_result.prototype = {}; +ProjectManager_RemoveMonitors_result.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + if (ftype == Thrift.Type.STOP) { + break; + } + input.skip(ftype); + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_RemoveMonitors_result.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_RemoveMonitors_result'); + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_EnableProjectConnections_args = function(args) { + this.enable = null; + if (args) { + if (args.enable !== undefined && args.enable !== null) { + this.enable = args.enable; + } + } +}; +ProjectManager_EnableProjectConnections_args.prototype = {}; +ProjectManager_EnableProjectConnections_args.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == Thrift.Type.BOOL) { + this.enable = input.readBool(); + } else { + input.skip(ftype); + } + break; + case 0: + input.skip(ftype); + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_EnableProjectConnections_args.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_EnableProjectConnections_args'); + if (this.enable !== null && this.enable !== undefined) { + output.writeFieldBegin('enable', Thrift.Type.BOOL, 1); + output.writeBool(this.enable); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_EnableProjectConnections_result = function(args) { +}; +ProjectManager_EnableProjectConnections_result.prototype = {}; +ProjectManager_EnableProjectConnections_result.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + if (ftype == Thrift.Type.STOP) { + break; + } + input.skip(ftype); + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_EnableProjectConnections_result.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_EnableProjectConnections_result'); + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_AddControlFile_args = function(args) { + this.prj = null; + this.file = null; + this.pluginId = null; + if (args) { + if (args.prj !== undefined && args.prj !== null) { + this.prj = new ttypes.ProjectContext(args.prj); + } + if (args.file !== undefined && args.file !== null) { + this.file = args.file; + } + if (args.pluginId !== undefined && args.pluginId !== null) { + this.pluginId = args.pluginId; + } + } +}; +ProjectManager_AddControlFile_args.prototype = {}; +ProjectManager_AddControlFile_args.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == Thrift.Type.STRUCT) { + this.prj = new ttypes.ProjectContext(); + this.prj.read(input); + } else { + input.skip(ftype); + } + break; + case 2: + if (ftype == Thrift.Type.STRING) { + this.file = input.readString(); + } else { + input.skip(ftype); + } + break; + case 3: + if (ftype == Thrift.Type.STRING) { + this.pluginId = input.readString(); + } else { + input.skip(ftype); + } + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_AddControlFile_args.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_AddControlFile_args'); + if (this.prj !== null && this.prj !== undefined) { + output.writeFieldBegin('prj', Thrift.Type.STRUCT, 1); + this.prj.write(output); + output.writeFieldEnd(); + } + if (this.file !== null && this.file !== undefined) { + output.writeFieldBegin('file', Thrift.Type.STRING, 2); + output.writeString(this.file); + output.writeFieldEnd(); + } + if (this.pluginId !== null && this.pluginId !== undefined) { + output.writeFieldBegin('pluginId', Thrift.Type.STRING, 3); + output.writeString(this.pluginId); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_AddControlFile_result = function(args) { +}; +ProjectManager_AddControlFile_result.prototype = {}; +ProjectManager_AddControlFile_result.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + if (ftype == Thrift.Type.STOP) { + break; + } + input.skip(ftype); + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_AddControlFile_result.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_AddControlFile_result'); + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_HasControlFileFor_args = function(args) { + this.prj = null; + this.pluginId = null; + if (args) { + if (args.prj !== undefined && args.prj !== null) { + this.prj = new ttypes.ProjectContext(args.prj); + } + if (args.pluginId !== undefined && args.pluginId !== null) { + this.pluginId = args.pluginId; + } + } +}; +ProjectManager_HasControlFileFor_args.prototype = {}; +ProjectManager_HasControlFileFor_args.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == Thrift.Type.STRUCT) { + this.prj = new ttypes.ProjectContext(); + this.prj.read(input); + } else { + input.skip(ftype); + } + break; + case 2: + if (ftype == Thrift.Type.STRING) { + this.pluginId = input.readString(); + } else { + input.skip(ftype); + } + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_HasControlFileFor_args.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_HasControlFileFor_args'); + if (this.prj !== null && this.prj !== undefined) { + output.writeFieldBegin('prj', Thrift.Type.STRUCT, 1); + this.prj.write(output); + output.writeFieldEnd(); + } + if (this.pluginId !== null && this.pluginId !== undefined) { + output.writeFieldBegin('pluginId', Thrift.Type.STRING, 2); + output.writeString(this.pluginId); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_HasControlFileFor_result = function(args) { + this.success = null; + if (args) { + if (args.success !== undefined && args.success !== null) { + this.success = args.success; + } + } +}; +ProjectManager_HasControlFileFor_result.prototype = {}; +ProjectManager_HasControlFileFor_result.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 0: + if (ftype == Thrift.Type.BOOL) { + this.success = input.readBool(); + } else { + input.skip(ftype); + } + break; + case 0: + input.skip(ftype); + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_HasControlFileFor_result.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_HasControlFileFor_result'); + if (this.success !== null && this.success !== undefined) { + output.writeFieldBegin('success', Thrift.Type.BOOL, 0); + output.writeBool(this.success); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_IsProjectConnectionsEnabled_args = function(args) { +}; +ProjectManager_IsProjectConnectionsEnabled_args.prototype = {}; +ProjectManager_IsProjectConnectionsEnabled_args.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + if (ftype == Thrift.Type.STOP) { + break; + } + input.skip(ftype); + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_IsProjectConnectionsEnabled_args.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_IsProjectConnectionsEnabled_args'); + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_IsProjectConnectionsEnabled_result = function(args) { + this.success = null; + if (args) { + if (args.success !== undefined && args.success !== null) { + this.success = args.success; + } + } +}; +ProjectManager_IsProjectConnectionsEnabled_result.prototype = {}; +ProjectManager_IsProjectConnectionsEnabled_result.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 0: + if (ftype == Thrift.Type.BOOL) { + this.success = input.readBool(); + } else { + input.skip(ftype); + } + break; + case 0: + input.skip(ftype); + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_IsProjectConnectionsEnabled_result.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_IsProjectConnectionsEnabled_result'); + if (this.success !== null && this.success !== undefined) { + output.writeFieldBegin('success', Thrift.Type.BOOL, 0); + output.writeBool(this.success); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_GetControlFilePlugins_args = function(args) { +}; +ProjectManager_GetControlFilePlugins_args.prototype = {}; +ProjectManager_GetControlFilePlugins_args.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + if (ftype == Thrift.Type.STOP) { + break; + } + input.skip(ftype); + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_GetControlFilePlugins_args.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_GetControlFilePlugins_args'); + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_GetControlFilePlugins_result = function(args) { + this.success = null; + if (args) { + if (args.success !== undefined && args.success !== null) { + this.success = Thrift.copyList(args.success, [ttypes.ControlFilePlugin]); + } + } +}; +ProjectManager_GetControlFilePlugins_result.prototype = {}; +ProjectManager_GetControlFilePlugins_result.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 0: + if (ftype == Thrift.Type.LIST) { + this.success = []; + var _rtmp3231 = input.readListBegin(); + var _size230 = _rtmp3231.size || 0; + for (var _i232 = 0; _i232 < _size230; ++_i232) { + var elem233 = null; + elem233 = new ttypes.ControlFilePlugin(); + elem233.read(input); + this.success.push(elem233); + } + input.readListEnd(); + } else { + input.skip(ftype); + } + break; + case 0: + input.skip(ftype); + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_GetControlFilePlugins_result.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_GetControlFilePlugins_result'); + if (this.success !== null && this.success !== undefined) { + output.writeFieldBegin('success', Thrift.Type.LIST, 0); + output.writeListBegin(Thrift.Type.STRUCT, this.success.length); + for (var iter234 in this.success) { + if (this.success.hasOwnProperty(iter234)) { + iter234 = this.success[iter234]; + iter234.write(output); + } + } + output.writeListEnd(); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_GetOptionsForProject_args = function(args) { + this.prj = null; + if (args) { + if (args.prj !== undefined && args.prj !== null) { + this.prj = new ttypes.ProjectContext(args.prj); + } + } +}; +ProjectManager_GetOptionsForProject_args.prototype = {}; +ProjectManager_GetOptionsForProject_args.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == Thrift.Type.STRUCT) { + this.prj = new ttypes.ProjectContext(); + this.prj.read(input); + } else { + input.skip(ftype); + } + break; + case 0: + input.skip(ftype); + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_GetOptionsForProject_args.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_GetOptionsForProject_args'); + if (this.prj !== null && this.prj !== undefined) { + output.writeFieldBegin('prj', Thrift.Type.STRUCT, 1); + this.prj.write(output); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_GetOptionsForProject_result = function(args) { + this.success = null; + if (args) { + if (args.success !== undefined && args.success !== null) { + this.success = Thrift.copyList(args.success, [ttypes.OptionDescription]); + } + } +}; +ProjectManager_GetOptionsForProject_result.prototype = {}; +ProjectManager_GetOptionsForProject_result.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 0: + if (ftype == Thrift.Type.LIST) { + this.success = []; + var _rtmp3236 = input.readListBegin(); + var _size235 = _rtmp3236.size || 0; + for (var _i237 = 0; _i237 < _size235; ++_i237) { + var elem238 = null; + elem238 = new ttypes.OptionDescription(); + elem238.read(input); + this.success.push(elem238); + } + input.readListEnd(); + } else { + input.skip(ftype); + } + break; + case 0: + input.skip(ftype); + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_GetOptionsForProject_result.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_GetOptionsForProject_result'); + if (this.success !== null && this.success !== undefined) { + output.writeFieldBegin('success', Thrift.Type.LIST, 0); + output.writeListBegin(Thrift.Type.STRUCT, this.success.length); + for (var iter239 in this.success) { + if (this.success.hasOwnProperty(iter239)) { + iter239 = this.success[iter239]; + iter239.write(output); + } + } + output.writeListEnd(); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_ApplyOptionsForProject_args = function(args) { + this.prj = null; + this.options = null; + if (args) { + if (args.prj !== undefined && args.prj !== null) { + this.prj = new ttypes.ProjectContext(args.prj); + } + if (args.options !== undefined && args.options !== null) { + this.options = Thrift.copyList(args.options, [ttypes.OptionDescription]); + } + } +}; +ProjectManager_ApplyOptionsForProject_args.prototype = {}; +ProjectManager_ApplyOptionsForProject_args.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == Thrift.Type.STRUCT) { + this.prj = new ttypes.ProjectContext(); + this.prj.read(input); + } else { + input.skip(ftype); + } + break; + case 2: + if (ftype == Thrift.Type.LIST) { + this.options = []; + var _rtmp3241 = input.readListBegin(); + var _size240 = _rtmp3241.size || 0; + for (var _i242 = 0; _i242 < _size240; ++_i242) { + var elem243 = null; + elem243 = new ttypes.OptionDescription(); + elem243.read(input); + this.options.push(elem243); + } + input.readListEnd(); + } else { + input.skip(ftype); + } + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_ApplyOptionsForProject_args.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_ApplyOptionsForProject_args'); + if (this.prj !== null && this.prj !== undefined) { + output.writeFieldBegin('prj', Thrift.Type.STRUCT, 1); + this.prj.write(output); + output.writeFieldEnd(); + } + if (this.options !== null && this.options !== undefined) { + output.writeFieldBegin('options', Thrift.Type.LIST, 2); + output.writeListBegin(Thrift.Type.STRUCT, this.options.length); + for (var iter244 in this.options) { + if (this.options.hasOwnProperty(iter244)) { + iter244 = this.options[iter244]; + iter244.write(output); + } + } + output.writeListEnd(); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManager_ApplyOptionsForProject_result = function(args) { + this.success = null; + if (args) { + if (args.success !== undefined && args.success !== null) { + this.success = args.success; + } + } +}; +ProjectManager_ApplyOptionsForProject_result.prototype = {}; +ProjectManager_ApplyOptionsForProject_result.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 0: + if (ftype == Thrift.Type.BOOL) { + this.success = input.readBool(); + } else { + input.skip(ftype); + } + break; + case 0: + input.skip(ftype); + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManager_ApplyOptionsForProject_result.prototype.write = function(output) { + output.writeStructBegin('ProjectManager_ApplyOptionsForProject_result'); + if (this.success !== null && this.success !== undefined) { + output.writeFieldBegin('success', Thrift.Type.BOOL, 0); + output.writeBool(this.success); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManagerClient = exports.Client = function(output, pClass) { + this.output = output; + this.pClass = pClass; + this._seqid = 0; + this._reqs = {}; +}; +Thrift.inherits(ProjectManagerClient, HeartbeatServiceClient); +ProjectManagerClient.prototype.seqid = function() { return this._seqid; }; +ProjectManagerClient.prototype.new_seqid = function() { return this._seqid += 1; }; + +ProjectManagerClient.prototype.CreateEwwFile = function(file_path, callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_CreateEwwFile(file_path); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_CreateEwwFile(file_path); + } +}; + +ProjectManagerClient.prototype.send_CreateEwwFile = function(file_path) { + var output = new this.pClass(this.output); + var params = { + file_path: file_path + }; + var args = new ProjectManager_CreateEwwFile_args(params); + try { + output.writeMessageBegin('CreateEwwFile', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +ProjectManagerClient.prototype.recv_CreateEwwFile = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); + x.read(input); + input.readMessageEnd(); + return callback(x); + } + var result = new ProjectManager_CreateEwwFile_result(); + result.read(input); + input.readMessageEnd(); + + if (null !== result.e) { + return callback(result.e); + } + if (null !== result.success) { + return callback(null, result.success); + } + return callback('CreateEwwFile failed: unknown result'); +}; + +ProjectManagerClient.prototype.DisableAutoDataStoring = function(callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_DisableAutoDataStoring(); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_DisableAutoDataStoring(); + } +}; + +ProjectManagerClient.prototype.send_DisableAutoDataStoring = function() { + var output = new this.pClass(this.output); + var args = new ProjectManager_DisableAutoDataStoring_args(); + try { + output.writeMessageBegin('DisableAutoDataStoring', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +ProjectManagerClient.prototype.recv_DisableAutoDataStoring = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); + x.read(input); + input.readMessageEnd(); + return callback(x); + } + var result = new ProjectManager_DisableAutoDataStoring_result(); + result.read(input); + input.readMessageEnd(); + + callback(null); +}; + +ProjectManagerClient.prototype.LoadEwwFile = function(file_path, callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_LoadEwwFile(file_path); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_LoadEwwFile(file_path); + } +}; + +ProjectManagerClient.prototype.send_LoadEwwFile = function(file_path) { + var output = new this.pClass(this.output); + var params = { + file_path: file_path + }; + var args = new ProjectManager_LoadEwwFile_args(params); + try { + output.writeMessageBegin('LoadEwwFile', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +ProjectManagerClient.prototype.recv_LoadEwwFile = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); + x.read(input); + input.readMessageEnd(); + return callback(x); + } + var result = new ProjectManager_LoadEwwFile_result(); + result.read(input); + input.readMessageEnd(); + + if (null !== result.e) { + return callback(result.e); + } + if (null !== result.success) { + return callback(null, result.success); + } + return callback('LoadEwwFile failed: unknown result'); +}; + +ProjectManagerClient.prototype.IsWorkspaceModified = function(callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_IsWorkspaceModified(); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_IsWorkspaceModified(); + } +}; + +ProjectManagerClient.prototype.send_IsWorkspaceModified = function() { + var output = new this.pClass(this.output); + var args = new ProjectManager_IsWorkspaceModified_args(); + try { + output.writeMessageBegin('IsWorkspaceModified', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +ProjectManagerClient.prototype.recv_IsWorkspaceModified = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); + x.read(input); + input.readMessageEnd(); + return callback(x); + } + var result = new ProjectManager_IsWorkspaceModified_result(); + result.read(input); + input.readMessageEnd(); + + if (null !== result.success) { + return callback(null, result.success); + } + return callback('IsWorkspaceModified failed: unknown result'); +}; + +ProjectManagerClient.prototype.SaveEwwFile = function(callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_SaveEwwFile(); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_SaveEwwFile(); + } +}; + +ProjectManagerClient.prototype.send_SaveEwwFile = function() { + var output = new this.pClass(this.output); + var args = new ProjectManager_SaveEwwFile_args(); + try { + output.writeMessageBegin('SaveEwwFile', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +ProjectManagerClient.prototype.recv_SaveEwwFile = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); + x.read(input); + input.readMessageEnd(); + return callback(x); + } + var result = new ProjectManager_SaveEwwFile_result(); + result.read(input); + input.readMessageEnd(); + + if (null !== result.e) { + return callback(result.e); + } + callback(null); +}; + +ProjectManagerClient.prototype.SaveEwwFileAs = function(file_path, callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_SaveEwwFileAs(file_path); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_SaveEwwFileAs(file_path); + } +}; + +ProjectManagerClient.prototype.send_SaveEwwFileAs = function(file_path) { + var output = new this.pClass(this.output); + var params = { + file_path: file_path + }; + var args = new ProjectManager_SaveEwwFileAs_args(params); + try { + output.writeMessageBegin('SaveEwwFileAs', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +ProjectManagerClient.prototype.recv_SaveEwwFileAs = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); + x.read(input); + input.readMessageEnd(); + return callback(x); + } + var result = new ProjectManager_SaveEwwFileAs_result(); + result.read(input); + input.readMessageEnd(); + + if (null !== result.e) { + return callback(result.e); + } + callback(null); +}; + +ProjectManagerClient.prototype.GetProjects = function(callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_GetProjects(); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_GetProjects(); + } +}; + +ProjectManagerClient.prototype.send_GetProjects = function() { + var output = new this.pClass(this.output); + var args = new ProjectManager_GetProjects_args(); + try { + output.writeMessageBegin('GetProjects', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +ProjectManagerClient.prototype.recv_GetProjects = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); + x.read(input); + input.readMessageEnd(); + return callback(x); + } + var result = new ProjectManager_GetProjects_result(); + result.read(input); + input.readMessageEnd(); + + if (null !== result.success) { + return callback(null, result.success); + } + return callback('GetProjects failed: unknown result'); +}; + +ProjectManagerClient.prototype.GetLoadedProjects = function(callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_GetLoadedProjects(); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_GetLoadedProjects(); + } +}; + +ProjectManagerClient.prototype.send_GetLoadedProjects = function() { + var output = new this.pClass(this.output); + var args = new ProjectManager_GetLoadedProjects_args(); + try { + output.writeMessageBegin('GetLoadedProjects', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +ProjectManagerClient.prototype.recv_GetLoadedProjects = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); + x.read(input); + input.readMessageEnd(); + return callback(x); + } + var result = new ProjectManager_GetLoadedProjects_result(); + result.read(input); + input.readMessageEnd(); + + if (null !== result.success) { + return callback(null, result.success); + } + return callback('GetLoadedProjects failed: unknown result'); +}; + +ProjectManagerClient.prototype.GetCurrentProject = function(callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_GetCurrentProject(); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_GetCurrentProject(); + } +}; + +ProjectManagerClient.prototype.send_GetCurrentProject = function() { + var output = new this.pClass(this.output); + var args = new ProjectManager_GetCurrentProject_args(); + try { + output.writeMessageBegin('GetCurrentProject', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +ProjectManagerClient.prototype.recv_GetCurrentProject = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); + x.read(input); + input.readMessageEnd(); + return callback(x); + } + var result = new ProjectManager_GetCurrentProject_result(); + result.read(input); + input.readMessageEnd(); + + if (null !== result.e) { + return callback(result.e); + } + if (null !== result.success) { + return callback(null, result.success); + } + return callback('GetCurrentProject failed: unknown result'); +}; + +ProjectManagerClient.prototype.SetCurrentProject = function(ctx, callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_SetCurrentProject(ctx); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_SetCurrentProject(ctx); + } +}; + +ProjectManagerClient.prototype.send_SetCurrentProject = function(ctx) { + var output = new this.pClass(this.output); + var params = { + ctx: ctx + }; + var args = new ProjectManager_SetCurrentProject_args(params); + try { + output.writeMessageBegin('SetCurrentProject', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +ProjectManagerClient.prototype.recv_SetCurrentProject = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); x.read(input); input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_DisableAutoDataStoring_result(); + var result = new ProjectManager_SetCurrentProject_result(); result.read(input); input.readMessageEnd(); + if (null !== result.e) { + return callback(result.e); + } callback(null); }; -ProjectManagerClient.prototype.LoadEwwFile = function(file_path, callback) { +ProjectManagerClient.prototype.CloseWorkspace = function(callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -8771,22 +10389,78 @@ ProjectManagerClient.prototype.LoadEwwFile = function(file_path, callback) { _defer.resolve(result); } }; - this.send_LoadEwwFile(file_path); + this.send_CloseWorkspace(); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_LoadEwwFile(file_path); + this.send_CloseWorkspace(); } }; -ProjectManagerClient.prototype.send_LoadEwwFile = function(file_path) { +ProjectManagerClient.prototype.send_CloseWorkspace = function() { + var output = new this.pClass(this.output); + var args = new ProjectManager_CloseWorkspace_args(); + try { + output.writeMessageBegin('CloseWorkspace', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +ProjectManagerClient.prototype.recv_CloseWorkspace = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); + x.read(input); + input.readMessageEnd(); + return callback(x); + } + var result = new ProjectManager_CloseWorkspace_result(); + result.read(input); + input.readMessageEnd(); + + if (null !== result.e) { + return callback(result.e); + } + callback(null); +}; + +ProjectManagerClient.prototype.CreateEwpFile = function(file_path, callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_CreateEwpFile(file_path); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_CreateEwpFile(file_path); + } +}; + +ProjectManagerClient.prototype.send_CreateEwpFile = function(file_path) { var output = new this.pClass(this.output); var params = { file_path: file_path }; - var args = new ProjectManager_LoadEwwFile_args(params); + var args = new ProjectManager_CreateEwpFile_args(params); try { - output.writeMessageBegin('LoadEwwFile', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('CreateEwpFile', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -8800,7 +10474,7 @@ ProjectManagerClient.prototype.send_LoadEwwFile = function(file_path) { } }; -ProjectManagerClient.prototype.recv_LoadEwwFile = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_CreateEwpFile = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -8809,7 +10483,7 @@ ProjectManagerClient.prototype.recv_LoadEwwFile = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_LoadEwwFile_result(); + var result = new ProjectManager_CreateEwpFile_result(); result.read(input); input.readMessageEnd(); @@ -8819,10 +10493,10 @@ ProjectManagerClient.prototype.recv_LoadEwwFile = function(input,mtype,rseqid) { if (null !== result.success) { return callback(null, result.success); } - return callback('LoadEwwFile failed: unknown result'); + return callback('CreateEwpFile failed: unknown result'); }; -ProjectManagerClient.prototype.IsWorkspaceModified = function(callback) { +ProjectManagerClient.prototype.CreateEwpFileWithToolChain = function(file_path, toolchain, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -8833,19 +10507,148 @@ ProjectManagerClient.prototype.IsWorkspaceModified = function(callback) { _defer.resolve(result); } }; - this.send_IsWorkspaceModified(); + this.send_CreateEwpFileWithToolChain(file_path, toolchain); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_IsWorkspaceModified(); + this.send_CreateEwpFileWithToolChain(file_path, toolchain); } }; -ProjectManagerClient.prototype.send_IsWorkspaceModified = function() { +ProjectManagerClient.prototype.send_CreateEwpFileWithToolChain = function(file_path, toolchain) { var output = new this.pClass(this.output); - var args = new ProjectManager_IsWorkspaceModified_args(); + var params = { + file_path: file_path, + toolchain: toolchain + }; + var args = new ProjectManager_CreateEwpFileWithToolChain_args(params); + try { + output.writeMessageBegin('CreateEwpFileWithToolChain', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +ProjectManagerClient.prototype.recv_CreateEwpFileWithToolChain = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); + x.read(input); + input.readMessageEnd(); + return callback(x); + } + var result = new ProjectManager_CreateEwpFileWithToolChain_result(); + result.read(input); + input.readMessageEnd(); + + if (null !== result.e) { + return callback(result.e); + } + if (null !== result.success) { + return callback(null, result.success); + } + return callback('CreateEwpFileWithToolChain failed: unknown result'); +}; + +ProjectManagerClient.prototype.CreateProjectFromTemplate = function(template_path, project_path, callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_CreateProjectFromTemplate(template_path, project_path); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_CreateProjectFromTemplate(template_path, project_path); + } +}; + +ProjectManagerClient.prototype.send_CreateProjectFromTemplate = function(template_path, project_path) { + var output = new this.pClass(this.output); + var params = { + template_path: template_path, + project_path: project_path + }; + var args = new ProjectManager_CreateProjectFromTemplate_args(params); + try { + output.writeMessageBegin('CreateProjectFromTemplate', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +ProjectManagerClient.prototype.recv_CreateProjectFromTemplate = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); + x.read(input); + input.readMessageEnd(); + return callback(x); + } + var result = new ProjectManager_CreateProjectFromTemplate_result(); + result.read(input); + input.readMessageEnd(); + + if (null !== result.e) { + return callback(result.e); + } + if (null !== result.success) { + return callback(null, result.success); + } + return callback('CreateProjectFromTemplate failed: unknown result'); +}; + +ProjectManagerClient.prototype.LoadEwpFile = function(file_path, callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_LoadEwpFile(file_path); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_LoadEwpFile(file_path); + } +}; + +ProjectManagerClient.prototype.send_LoadEwpFile = function(file_path) { + var output = new this.pClass(this.output); + var params = { + file_path: file_path + }; + var args = new ProjectManager_LoadEwpFile_args(params); try { - output.writeMessageBegin('IsWorkspaceModified', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('LoadEwpFile', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -8859,7 +10662,7 @@ ProjectManagerClient.prototype.send_IsWorkspaceModified = function() { } }; -ProjectManagerClient.prototype.recv_IsWorkspaceModified = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_LoadEwpFile = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -8868,17 +10671,20 @@ ProjectManagerClient.prototype.recv_IsWorkspaceModified = function(input,mtype,r input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_IsWorkspaceModified_result(); + var result = new ProjectManager_LoadEwpFile_result(); result.read(input); input.readMessageEnd(); + if (null !== result.e) { + return callback(result.e); + } if (null !== result.success) { return callback(null, result.success); } - return callback('IsWorkspaceModified failed: unknown result'); + return callback('LoadEwpFile failed: unknown result'); }; -ProjectManagerClient.prototype.SaveEwwFile = function(callback) { +ProjectManagerClient.prototype.SaveEwpFile = function(project, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -8889,19 +10695,22 @@ ProjectManagerClient.prototype.SaveEwwFile = function(callback) { _defer.resolve(result); } }; - this.send_SaveEwwFile(); + this.send_SaveEwpFile(project); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_SaveEwwFile(); + this.send_SaveEwpFile(project); } }; -ProjectManagerClient.prototype.send_SaveEwwFile = function() { +ProjectManagerClient.prototype.send_SaveEwpFile = function(project) { var output = new this.pClass(this.output); - var args = new ProjectManager_SaveEwwFile_args(); + var params = { + project: project + }; + var args = new ProjectManager_SaveEwpFile_args(params); try { - output.writeMessageBegin('SaveEwwFile', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('SaveEwpFile', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -8915,7 +10724,7 @@ ProjectManagerClient.prototype.send_SaveEwwFile = function() { } }; -ProjectManagerClient.prototype.recv_SaveEwwFile = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_SaveEwpFile = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -8924,7 +10733,7 @@ ProjectManagerClient.prototype.recv_SaveEwwFile = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_SaveEwwFile_result(); + var result = new ProjectManager_SaveEwpFile_result(); result.read(input); input.readMessageEnd(); @@ -8934,7 +10743,7 @@ ProjectManagerClient.prototype.recv_SaveEwwFile = function(input,mtype,rseqid) { callback(null); }; -ProjectManagerClient.prototype.SaveEwwFileAs = function(file_path, callback) { +ProjectManagerClient.prototype.ReloadProject = function(project, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -8945,22 +10754,22 @@ ProjectManagerClient.prototype.SaveEwwFileAs = function(file_path, callback) { _defer.resolve(result); } }; - this.send_SaveEwwFileAs(file_path); + this.send_ReloadProject(project); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_SaveEwwFileAs(file_path); + this.send_ReloadProject(project); } }; -ProjectManagerClient.prototype.send_SaveEwwFileAs = function(file_path) { +ProjectManagerClient.prototype.send_ReloadProject = function(project) { var output = new this.pClass(this.output); var params = { - file_path: file_path + project: project }; - var args = new ProjectManager_SaveEwwFileAs_args(params); + var args = new ProjectManager_ReloadProject_args(params); try { - output.writeMessageBegin('SaveEwwFileAs', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('ReloadProject', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -8974,7 +10783,7 @@ ProjectManagerClient.prototype.send_SaveEwwFileAs = function(file_path) { } }; -ProjectManagerClient.prototype.recv_SaveEwwFileAs = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_ReloadProject = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -8983,17 +10792,20 @@ ProjectManagerClient.prototype.recv_SaveEwwFileAs = function(input,mtype,rseqid) input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_SaveEwwFileAs_result(); + var result = new ProjectManager_ReloadProject_result(); result.read(input); input.readMessageEnd(); if (null !== result.e) { return callback(result.e); } - callback(null); + if (null !== result.success) { + return callback(null, result.success); + } + return callback('ReloadProject failed: unknown result'); }; -ProjectManagerClient.prototype.GetProjects = function(callback) { +ProjectManagerClient.prototype.SaveEwpFileAs = function(project, file_path, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9004,19 +10816,23 @@ ProjectManagerClient.prototype.GetProjects = function(callback) { _defer.resolve(result); } }; - this.send_GetProjects(); + this.send_SaveEwpFileAs(project, file_path); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetProjects(); + this.send_SaveEwpFileAs(project, file_path); } }; -ProjectManagerClient.prototype.send_GetProjects = function() { +ProjectManagerClient.prototype.send_SaveEwpFileAs = function(project, file_path) { var output = new this.pClass(this.output); - var args = new ProjectManager_GetProjects_args(); + var params = { + project: project, + file_path: file_path + }; + var args = new ProjectManager_SaveEwpFileAs_args(params); try { - output.writeMessageBegin('GetProjects', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('SaveEwpFileAs', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9030,7 +10846,7 @@ ProjectManagerClient.prototype.send_GetProjects = function() { } }; -ProjectManagerClient.prototype.recv_GetProjects = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_SaveEwpFileAs = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9039,17 +10855,17 @@ ProjectManagerClient.prototype.recv_GetProjects = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetProjects_result(); + var result = new ProjectManager_SaveEwpFileAs_result(); result.read(input); input.readMessageEnd(); - if (null !== result.success) { - return callback(null, result.success); + if (null !== result.e) { + return callback(result.e); } - return callback('GetProjects failed: unknown result'); + callback(null); }; -ProjectManagerClient.prototype.GetLoadedProjects = function(callback) { +ProjectManagerClient.prototype.ImportProjectFiles = function(ctx, file_path, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9060,19 +10876,23 @@ ProjectManagerClient.prototype.GetLoadedProjects = function(callback) { _defer.resolve(result); } }; - this.send_GetLoadedProjects(); + this.send_ImportProjectFiles(ctx, file_path); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetLoadedProjects(); + this.send_ImportProjectFiles(ctx, file_path); } }; -ProjectManagerClient.prototype.send_GetLoadedProjects = function() { +ProjectManagerClient.prototype.send_ImportProjectFiles = function(ctx, file_path) { var output = new this.pClass(this.output); - var args = new ProjectManager_GetLoadedProjects_args(); + var params = { + ctx: ctx, + file_path: file_path + }; + var args = new ProjectManager_ImportProjectFiles_args(params); try { - output.writeMessageBegin('GetLoadedProjects', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('ImportProjectFiles', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9086,7 +10906,7 @@ ProjectManagerClient.prototype.send_GetLoadedProjects = function() { } }; -ProjectManagerClient.prototype.recv_GetLoadedProjects = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_ImportProjectFiles = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9095,17 +10915,20 @@ ProjectManagerClient.prototype.recv_GetLoadedProjects = function(input,mtype,rse input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetLoadedProjects_result(); + var result = new ProjectManager_ImportProjectFiles_result(); result.read(input); input.readMessageEnd(); + if (null !== result.e) { + return callback(result.e); + } if (null !== result.success) { return callback(null, result.success); } - return callback('GetLoadedProjects failed: unknown result'); + return callback('ImportProjectFiles failed: unknown result'); }; -ProjectManagerClient.prototype.GetCurrentProject = function(callback) { +ProjectManagerClient.prototype.IsModified = function(project, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9116,19 +10939,22 @@ ProjectManagerClient.prototype.GetCurrentProject = function(callback) { _defer.resolve(result); } }; - this.send_GetCurrentProject(); + this.send_IsModified(project); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetCurrentProject(); + this.send_IsModified(project); } }; -ProjectManagerClient.prototype.send_GetCurrentProject = function() { +ProjectManagerClient.prototype.send_IsModified = function(project) { var output = new this.pClass(this.output); - var args = new ProjectManager_GetCurrentProject_args(); + var params = { + project: project + }; + var args = new ProjectManager_IsModified_args(params); try { - output.writeMessageBegin('GetCurrentProject', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('IsModified', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9142,7 +10968,7 @@ ProjectManagerClient.prototype.send_GetCurrentProject = function() { } }; -ProjectManagerClient.prototype.recv_GetCurrentProject = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_IsModified = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9151,20 +10977,17 @@ ProjectManagerClient.prototype.recv_GetCurrentProject = function(input,mtype,rse input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetCurrentProject_result(); + var result = new ProjectManager_IsModified_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); - } if (null !== result.success) { return callback(null, result.success); } - return callback('GetCurrentProject failed: unknown result'); + return callback('IsModified failed: unknown result'); }; -ProjectManagerClient.prototype.SetCurrentProject = function(ctx, callback) { +ProjectManagerClient.prototype.IsMemberOfCurrentProject = function(file_path, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9175,22 +10998,22 @@ ProjectManagerClient.prototype.SetCurrentProject = function(ctx, callback) { _defer.resolve(result); } }; - this.send_SetCurrentProject(ctx); + this.send_IsMemberOfCurrentProject(file_path); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_SetCurrentProject(ctx); + this.send_IsMemberOfCurrentProject(file_path); } }; -ProjectManagerClient.prototype.send_SetCurrentProject = function(ctx) { +ProjectManagerClient.prototype.send_IsMemberOfCurrentProject = function(file_path) { var output = new this.pClass(this.output); var params = { - ctx: ctx + file_path: file_path }; - var args = new ProjectManager_SetCurrentProject_args(params); + var args = new ProjectManager_IsMemberOfCurrentProject_args(params); try { - output.writeMessageBegin('SetCurrentProject', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('IsMemberOfCurrentProject', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9204,7 +11027,7 @@ ProjectManagerClient.prototype.send_SetCurrentProject = function(ctx) { } }; -ProjectManagerClient.prototype.recv_SetCurrentProject = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_IsMemberOfCurrentProject = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9213,17 +11036,17 @@ ProjectManagerClient.prototype.recv_SetCurrentProject = function(input,mtype,rse input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_SetCurrentProject_result(); + var result = new ProjectManager_IsMemberOfCurrentProject_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); + if (null !== result.success) { + return callback(null, result.success); } - callback(null); + return callback('IsMemberOfCurrentProject failed: unknown result'); }; -ProjectManagerClient.prototype.CloseWorkspace = function(callback) { +ProjectManagerClient.prototype.FindMatchingHeaderOrSourceFile = function(file_path, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9234,19 +11057,22 @@ ProjectManagerClient.prototype.CloseWorkspace = function(callback) { _defer.resolve(result); } }; - this.send_CloseWorkspace(); + this.send_FindMatchingHeaderOrSourceFile(file_path); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_CloseWorkspace(); + this.send_FindMatchingHeaderOrSourceFile(file_path); } }; -ProjectManagerClient.prototype.send_CloseWorkspace = function() { +ProjectManagerClient.prototype.send_FindMatchingHeaderOrSourceFile = function(file_path) { var output = new this.pClass(this.output); - var args = new ProjectManager_CloseWorkspace_args(); + var params = { + file_path: file_path + }; + var args = new ProjectManager_FindMatchingHeaderOrSourceFile_args(params); try { - output.writeMessageBegin('CloseWorkspace', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('FindMatchingHeaderOrSourceFile', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9260,7 +11086,7 @@ ProjectManagerClient.prototype.send_CloseWorkspace = function() { } }; -ProjectManagerClient.prototype.recv_CloseWorkspace = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_FindMatchingHeaderOrSourceFile = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9269,17 +11095,17 @@ ProjectManagerClient.prototype.recv_CloseWorkspace = function(input,mtype,rseqid input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_CloseWorkspace_result(); + var result = new ProjectManager_FindMatchingHeaderOrSourceFile_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); + if (null !== result.success) { + return callback(null, result.success); } - callback(null); + return callback('FindMatchingHeaderOrSourceFile failed: unknown result'); }; -ProjectManagerClient.prototype.CreateEwpFile = function(file_path, callback) { +ProjectManagerClient.prototype.GetProject = function(file_path, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9290,22 +11116,22 @@ ProjectManagerClient.prototype.CreateEwpFile = function(file_path, callback) { _defer.resolve(result); } }; - this.send_CreateEwpFile(file_path); + this.send_GetProject(file_path); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_CreateEwpFile(file_path); + this.send_GetProject(file_path); } }; -ProjectManagerClient.prototype.send_CreateEwpFile = function(file_path) { +ProjectManagerClient.prototype.send_GetProject = function(file_path) { var output = new this.pClass(this.output); var params = { file_path: file_path }; - var args = new ProjectManager_CreateEwpFile_args(params); + var args = new ProjectManager_GetProject_args(params); try { - output.writeMessageBegin('CreateEwpFile', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetProject', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9319,7 +11145,7 @@ ProjectManagerClient.prototype.send_CreateEwpFile = function(file_path) { } }; -ProjectManagerClient.prototype.recv_CreateEwpFile = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetProject = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9328,7 +11154,7 @@ ProjectManagerClient.prototype.recv_CreateEwpFile = function(input,mtype,rseqid) input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_CreateEwpFile_result(); + var result = new ProjectManager_GetProject_result(); result.read(input); input.readMessageEnd(); @@ -9338,10 +11164,10 @@ ProjectManagerClient.prototype.recv_CreateEwpFile = function(input,mtype,rseqid) if (null !== result.success) { return callback(null, result.success); } - return callback('CreateEwpFile failed: unknown result'); + return callback('GetProject failed: unknown result'); }; -ProjectManagerClient.prototype.CreateEwpFileWithToolChain = function(file_path, toolchain, callback) { +ProjectManagerClient.prototype.CloseProject = function(project, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9352,23 +11178,22 @@ ProjectManagerClient.prototype.CreateEwpFileWithToolChain = function(file_path, _defer.resolve(result); } }; - this.send_CreateEwpFileWithToolChain(file_path, toolchain); + this.send_CloseProject(project); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_CreateEwpFileWithToolChain(file_path, toolchain); + this.send_CloseProject(project); } }; -ProjectManagerClient.prototype.send_CreateEwpFileWithToolChain = function(file_path, toolchain) { +ProjectManagerClient.prototype.send_CloseProject = function(project) { var output = new this.pClass(this.output); var params = { - file_path: file_path, - toolchain: toolchain + project: project }; - var args = new ProjectManager_CreateEwpFileWithToolChain_args(params); + var args = new ProjectManager_CloseProject_args(params); try { - output.writeMessageBegin('CreateEwpFileWithToolChain', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('CloseProject', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9382,7 +11207,7 @@ ProjectManagerClient.prototype.send_CreateEwpFileWithToolChain = function(file_p } }; -ProjectManagerClient.prototype.recv_CreateEwpFileWithToolChain = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_CloseProject = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9391,20 +11216,17 @@ ProjectManagerClient.prototype.recv_CreateEwpFileWithToolChain = function(input, input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_CreateEwpFileWithToolChain_result(); + var result = new ProjectManager_CloseProject_result(); result.read(input); input.readMessageEnd(); if (null !== result.e) { return callback(result.e); } - if (null !== result.success) { - return callback(null, result.success); - } - return callback('CreateEwpFileWithToolChain failed: unknown result'); + callback(null); }; -ProjectManagerClient.prototype.CreateProjectFromTemplate = function(template_path, project_path, callback) { +ProjectManagerClient.prototype.RemoveProject = function(project, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9415,23 +11237,22 @@ ProjectManagerClient.prototype.CreateProjectFromTemplate = function(template_pat _defer.resolve(result); } }; - this.send_CreateProjectFromTemplate(template_path, project_path); + this.send_RemoveProject(project); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_CreateProjectFromTemplate(template_path, project_path); + this.send_RemoveProject(project); } }; -ProjectManagerClient.prototype.send_CreateProjectFromTemplate = function(template_path, project_path) { +ProjectManagerClient.prototype.send_RemoveProject = function(project) { var output = new this.pClass(this.output); var params = { - template_path: template_path, - project_path: project_path + project: project }; - var args = new ProjectManager_CreateProjectFromTemplate_args(params); + var args = new ProjectManager_RemoveProject_args(params); try { - output.writeMessageBegin('CreateProjectFromTemplate', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('RemoveProject', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9445,7 +11266,7 @@ ProjectManagerClient.prototype.send_CreateProjectFromTemplate = function(templat } }; -ProjectManagerClient.prototype.recv_CreateProjectFromTemplate = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_RemoveProject = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9454,20 +11275,17 @@ ProjectManagerClient.prototype.recv_CreateProjectFromTemplate = function(input,m input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_CreateProjectFromTemplate_result(); + var result = new ProjectManager_RemoveProject_result(); result.read(input); input.readMessageEnd(); if (null !== result.e) { return callback(result.e); } - if (null !== result.success) { - return callback(null, result.success); - } - return callback('CreateProjectFromTemplate failed: unknown result'); + callback(null); }; -ProjectManagerClient.prototype.LoadEwpFile = function(file_path, callback) { +ProjectManagerClient.prototype.GetFiles = function(project, configurationName, col, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9478,22 +11296,24 @@ ProjectManagerClient.prototype.LoadEwpFile = function(file_path, callback) { _defer.resolve(result); } }; - this.send_LoadEwpFile(file_path); + this.send_GetFiles(project, configurationName, col); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_LoadEwpFile(file_path); + this.send_GetFiles(project, configurationName, col); } }; -ProjectManagerClient.prototype.send_LoadEwpFile = function(file_path) { +ProjectManagerClient.prototype.send_GetFiles = function(project, configurationName, col) { var output = new this.pClass(this.output); var params = { - file_path: file_path + project: project, + configurationName: configurationName, + col: col }; - var args = new ProjectManager_LoadEwpFile_args(params); + var args = new ProjectManager_GetFiles_args(params); try { - output.writeMessageBegin('LoadEwpFile', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetFiles', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9507,7 +11327,7 @@ ProjectManagerClient.prototype.send_LoadEwpFile = function(file_path) { } }; -ProjectManagerClient.prototype.recv_LoadEwpFile = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetFiles = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9516,7 +11336,7 @@ ProjectManagerClient.prototype.recv_LoadEwpFile = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_LoadEwpFile_result(); + var result = new ProjectManager_GetFiles_result(); result.read(input); input.readMessageEnd(); @@ -9526,10 +11346,10 @@ ProjectManagerClient.prototype.recv_LoadEwpFile = function(input,mtype,rseqid) { if (null !== result.success) { return callback(null, result.success); } - return callback('LoadEwpFile failed: unknown result'); + return callback('GetFiles failed: unknown result'); }; -ProjectManagerClient.prototype.SaveEwpFile = function(project, callback) { +ProjectManagerClient.prototype.AddConfiguration = function(config, project, isDebug, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9540,22 +11360,24 @@ ProjectManagerClient.prototype.SaveEwpFile = function(project, callback) { _defer.resolve(result); } }; - this.send_SaveEwpFile(project); + this.send_AddConfiguration(config, project, isDebug); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_SaveEwpFile(project); + this.send_AddConfiguration(config, project, isDebug); } }; -ProjectManagerClient.prototype.send_SaveEwpFile = function(project) { +ProjectManagerClient.prototype.send_AddConfiguration = function(config, project, isDebug) { var output = new this.pClass(this.output); var params = { - project: project + config: config, + project: project, + isDebug: isDebug }; - var args = new ProjectManager_SaveEwpFile_args(params); + var args = new ProjectManager_AddConfiguration_args(params); try { - output.writeMessageBegin('SaveEwpFile', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('AddConfiguration', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9569,7 +11391,7 @@ ProjectManagerClient.prototype.send_SaveEwpFile = function(project) { } }; -ProjectManagerClient.prototype.recv_SaveEwpFile = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_AddConfiguration = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9578,17 +11400,14 @@ ProjectManagerClient.prototype.recv_SaveEwpFile = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_SaveEwpFile_result(); + var result = new ProjectManager_AddConfiguration_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); - } callback(null); }; -ProjectManagerClient.prototype.SaveEwpFileAs = function(project, file_path, callback) { +ProjectManagerClient.prototype.AddConfigurationNoSave = function(project, config, basedOnName, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9599,23 +11418,24 @@ ProjectManagerClient.prototype.SaveEwpFileAs = function(project, file_path, call _defer.resolve(result); } }; - this.send_SaveEwpFileAs(project, file_path); + this.send_AddConfigurationNoSave(project, config, basedOnName); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_SaveEwpFileAs(project, file_path); + this.send_AddConfigurationNoSave(project, config, basedOnName); } }; -ProjectManagerClient.prototype.send_SaveEwpFileAs = function(project, file_path) { +ProjectManagerClient.prototype.send_AddConfigurationNoSave = function(project, config, basedOnName) { var output = new this.pClass(this.output); var params = { project: project, - file_path: file_path + config: config, + basedOnName: basedOnName }; - var args = new ProjectManager_SaveEwpFileAs_args(params); + var args = new ProjectManager_AddConfigurationNoSave_args(params); try { - output.writeMessageBegin('SaveEwpFileAs', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('AddConfigurationNoSave', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9629,7 +11449,7 @@ ProjectManagerClient.prototype.send_SaveEwpFileAs = function(project, file_path) } }; -ProjectManagerClient.prototype.recv_SaveEwpFileAs = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_AddConfigurationNoSave = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9638,17 +11458,14 @@ ProjectManagerClient.prototype.recv_SaveEwpFileAs = function(input,mtype,rseqid) input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_SaveEwpFileAs_result(); + var result = new ProjectManager_AddConfigurationNoSave_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); - } callback(null); }; -ProjectManagerClient.prototype.ImportProjectFiles = function(ctx, file_path, callback) { +ProjectManagerClient.prototype.RemoveConfiguration = function(configurationName, project, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9659,23 +11476,23 @@ ProjectManagerClient.prototype.ImportProjectFiles = function(ctx, file_path, cal _defer.resolve(result); } }; - this.send_ImportProjectFiles(ctx, file_path); + this.send_RemoveConfiguration(configurationName, project); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_ImportProjectFiles(ctx, file_path); + this.send_RemoveConfiguration(configurationName, project); } }; -ProjectManagerClient.prototype.send_ImportProjectFiles = function(ctx, file_path) { +ProjectManagerClient.prototype.send_RemoveConfiguration = function(configurationName, project) { var output = new this.pClass(this.output); var params = { - ctx: ctx, - file_path: file_path + configurationName: configurationName, + project: project }; - var args = new ProjectManager_ImportProjectFiles_args(params); + var args = new ProjectManager_RemoveConfiguration_args(params); try { - output.writeMessageBegin('ImportProjectFiles', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('RemoveConfiguration', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9689,7 +11506,7 @@ ProjectManagerClient.prototype.send_ImportProjectFiles = function(ctx, file_path } }; -ProjectManagerClient.prototype.recv_ImportProjectFiles = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_RemoveConfiguration = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9698,20 +11515,14 @@ ProjectManagerClient.prototype.recv_ImportProjectFiles = function(input,mtype,rs input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_ImportProjectFiles_result(); + var result = new ProjectManager_RemoveConfiguration_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); - } - if (null !== result.success) { - return callback(null, result.success); - } - return callback('ImportProjectFiles failed: unknown result'); + callback(null); }; -ProjectManagerClient.prototype.IsModified = function(project, callback) { +ProjectManagerClient.prototype.RemoveConfigurationNoSave = function(project, configurationName, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9722,22 +11533,23 @@ ProjectManagerClient.prototype.IsModified = function(project, callback) { _defer.resolve(result); } }; - this.send_IsModified(project); + this.send_RemoveConfigurationNoSave(project, configurationName); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_IsModified(project); + this.send_RemoveConfigurationNoSave(project, configurationName); } }; -ProjectManagerClient.prototype.send_IsModified = function(project) { +ProjectManagerClient.prototype.send_RemoveConfigurationNoSave = function(project, configurationName) { var output = new this.pClass(this.output); var params = { - project: project + project: project, + configurationName: configurationName }; - var args = new ProjectManager_IsModified_args(params); + var args = new ProjectManager_RemoveConfigurationNoSave_args(params); try { - output.writeMessageBegin('IsModified', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('RemoveConfigurationNoSave', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9751,7 +11563,7 @@ ProjectManagerClient.prototype.send_IsModified = function(project) { } }; -ProjectManagerClient.prototype.recv_IsModified = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_RemoveConfigurationNoSave = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9760,17 +11572,14 @@ ProjectManagerClient.prototype.recv_IsModified = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_IsModified_result(); + var result = new ProjectManager_RemoveConfigurationNoSave_result(); result.read(input); input.readMessageEnd(); - if (null !== result.success) { - return callback(null, result.success); - } - return callback('IsModified failed: unknown result'); + callback(null); }; -ProjectManagerClient.prototype.IsMemberOfCurrentProject = function(file_path, callback) { +ProjectManagerClient.prototype.GetConfigurations = function(project, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9781,22 +11590,22 @@ ProjectManagerClient.prototype.IsMemberOfCurrentProject = function(file_path, ca _defer.resolve(result); } }; - this.send_IsMemberOfCurrentProject(file_path); + this.send_GetConfigurations(project); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_IsMemberOfCurrentProject(file_path); + this.send_GetConfigurations(project); } }; -ProjectManagerClient.prototype.send_IsMemberOfCurrentProject = function(file_path) { +ProjectManagerClient.prototype.send_GetConfigurations = function(project) { var output = new this.pClass(this.output); var params = { - file_path: file_path + project: project }; - var args = new ProjectManager_IsMemberOfCurrentProject_args(params); + var args = new ProjectManager_GetConfigurations_args(params); try { - output.writeMessageBegin('IsMemberOfCurrentProject', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetConfigurations', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9810,7 +11619,7 @@ ProjectManagerClient.prototype.send_IsMemberOfCurrentProject = function(file_pat } }; -ProjectManagerClient.prototype.recv_IsMemberOfCurrentProject = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetConfigurations = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9819,17 +11628,17 @@ ProjectManagerClient.prototype.recv_IsMemberOfCurrentProject = function(input,mt input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_IsMemberOfCurrentProject_result(); + var result = new ProjectManager_GetConfigurations_result(); result.read(input); input.readMessageEnd(); if (null !== result.success) { return callback(null, result.success); } - return callback('IsMemberOfCurrentProject failed: unknown result'); + return callback('GetConfigurations failed: unknown result'); }; -ProjectManagerClient.prototype.FindMatchingHeaderOrSourceFile = function(file_path, callback) { +ProjectManagerClient.prototype.SetConfigurationsOrder = function(project, configNames, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9840,22 +11649,23 @@ ProjectManagerClient.prototype.FindMatchingHeaderOrSourceFile = function(file_pa _defer.resolve(result); } }; - this.send_FindMatchingHeaderOrSourceFile(file_path); + this.send_SetConfigurationsOrder(project, configNames); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_FindMatchingHeaderOrSourceFile(file_path); + this.send_SetConfigurationsOrder(project, configNames); } }; -ProjectManagerClient.prototype.send_FindMatchingHeaderOrSourceFile = function(file_path) { +ProjectManagerClient.prototype.send_SetConfigurationsOrder = function(project, configNames) { var output = new this.pClass(this.output); var params = { - file_path: file_path + project: project, + configNames: configNames }; - var args = new ProjectManager_FindMatchingHeaderOrSourceFile_args(params); + var args = new ProjectManager_SetConfigurationsOrder_args(params); try { - output.writeMessageBegin('FindMatchingHeaderOrSourceFile', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('SetConfigurationsOrder', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9869,7 +11679,7 @@ ProjectManagerClient.prototype.send_FindMatchingHeaderOrSourceFile = function(fi } }; -ProjectManagerClient.prototype.recv_FindMatchingHeaderOrSourceFile = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_SetConfigurationsOrder = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9878,17 +11688,14 @@ ProjectManagerClient.prototype.recv_FindMatchingHeaderOrSourceFile = function(in input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_FindMatchingHeaderOrSourceFile_result(); + var result = new ProjectManager_SetConfigurationsOrder_result(); result.read(input); input.readMessageEnd(); - if (null !== result.success) { - return callback(null, result.success); - } - return callback('FindMatchingHeaderOrSourceFile failed: unknown result'); + callback(null); }; -ProjectManagerClient.prototype.GetProject = function(file_path, callback) { +ProjectManagerClient.prototype.GetCurrentConfiguration = function(project, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9899,22 +11706,22 @@ ProjectManagerClient.prototype.GetProject = function(file_path, callback) { _defer.resolve(result); } }; - this.send_GetProject(file_path); + this.send_GetCurrentConfiguration(project); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetProject(file_path); + this.send_GetCurrentConfiguration(project); } }; -ProjectManagerClient.prototype.send_GetProject = function(file_path) { +ProjectManagerClient.prototype.send_GetCurrentConfiguration = function(project) { var output = new this.pClass(this.output); var params = { - file_path: file_path + project: project }; - var args = new ProjectManager_GetProject_args(params); + var args = new ProjectManager_GetCurrentConfiguration_args(params); try { - output.writeMessageBegin('GetProject', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetCurrentConfiguration', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9928,7 +11735,7 @@ ProjectManagerClient.prototype.send_GetProject = function(file_path) { } }; -ProjectManagerClient.prototype.recv_GetProject = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetCurrentConfiguration = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9937,7 +11744,7 @@ ProjectManagerClient.prototype.recv_GetProject = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetProject_result(); + var result = new ProjectManager_GetCurrentConfiguration_result(); result.read(input); input.readMessageEnd(); @@ -9947,10 +11754,10 @@ ProjectManagerClient.prototype.recv_GetProject = function(input,mtype,rseqid) { if (null !== result.success) { return callback(null, result.success); } - return callback('GetProject failed: unknown result'); + return callback('GetCurrentConfiguration failed: unknown result'); }; -ProjectManagerClient.prototype.CloseProject = function(project, callback) { +ProjectManagerClient.prototype.SetCurrentConfiguration = function(project, configurationName, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -9961,22 +11768,23 @@ ProjectManagerClient.prototype.CloseProject = function(project, callback) { _defer.resolve(result); } }; - this.send_CloseProject(project); + this.send_SetCurrentConfiguration(project, configurationName); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_CloseProject(project); + this.send_SetCurrentConfiguration(project, configurationName); } }; -ProjectManagerClient.prototype.send_CloseProject = function(project) { +ProjectManagerClient.prototype.send_SetCurrentConfiguration = function(project, configurationName) { var output = new this.pClass(this.output); var params = { - project: project + project: project, + configurationName: configurationName }; - var args = new ProjectManager_CloseProject_args(params); + var args = new ProjectManager_SetCurrentConfiguration_args(params); try { - output.writeMessageBegin('CloseProject', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('SetCurrentConfiguration', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -9990,7 +11798,7 @@ ProjectManagerClient.prototype.send_CloseProject = function(project) { } }; -ProjectManagerClient.prototype.recv_CloseProject = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_SetCurrentConfiguration = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -9999,7 +11807,7 @@ ProjectManagerClient.prototype.recv_CloseProject = function(input,mtype,rseqid) input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_CloseProject_result(); + var result = new ProjectManager_SetCurrentConfiguration_result(); result.read(input); input.readMessageEnd(); @@ -10009,7 +11817,7 @@ ProjectManagerClient.prototype.recv_CloseProject = function(input,mtype,rseqid) callback(null); }; -ProjectManagerClient.prototype.RemoveProject = function(project, callback) { +ProjectManagerClient.prototype.SetDesktopPathParameters = function(platform, slavery, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10020,22 +11828,23 @@ ProjectManagerClient.prototype.RemoveProject = function(project, callback) { _defer.resolve(result); } }; - this.send_RemoveProject(project); + this.send_SetDesktopPathParameters(platform, slavery); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_RemoveProject(project); + this.send_SetDesktopPathParameters(platform, slavery); } }; -ProjectManagerClient.prototype.send_RemoveProject = function(project) { +ProjectManagerClient.prototype.send_SetDesktopPathParameters = function(platform, slavery) { var output = new this.pClass(this.output); var params = { - project: project + platform: platform, + slavery: slavery }; - var args = new ProjectManager_RemoveProject_args(params); + var args = new ProjectManager_SetDesktopPathParameters_args(params); try { - output.writeMessageBegin('RemoveProject', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('SetDesktopPathParameters', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10049,7 +11858,7 @@ ProjectManagerClient.prototype.send_RemoveProject = function(project) { } }; -ProjectManagerClient.prototype.recv_RemoveProject = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_SetDesktopPathParameters = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10058,17 +11867,14 @@ ProjectManagerClient.prototype.recv_RemoveProject = function(input,mtype,rseqid) input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_RemoveProject_result(); + var result = new ProjectManager_SetDesktopPathParameters_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); - } callback(null); }; -ProjectManagerClient.prototype.GetFiles = function(project, configurationName, col, callback) { +ProjectManagerClient.prototype.GetOfflineDesktopPath = function(callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10079,24 +11885,19 @@ ProjectManagerClient.prototype.GetFiles = function(project, configurationName, c _defer.resolve(result); } }; - this.send_GetFiles(project, configurationName, col); + this.send_GetOfflineDesktopPath(); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetFiles(project, configurationName, col); + this.send_GetOfflineDesktopPath(); } }; -ProjectManagerClient.prototype.send_GetFiles = function(project, configurationName, col) { +ProjectManagerClient.prototype.send_GetOfflineDesktopPath = function() { var output = new this.pClass(this.output); - var params = { - project: project, - configurationName: configurationName, - col: col - }; - var args = new ProjectManager_GetFiles_args(params); + var args = new ProjectManager_GetOfflineDesktopPath_args(); try { - output.writeMessageBegin('GetFiles', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetOfflineDesktopPath', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10110,7 +11911,7 @@ ProjectManagerClient.prototype.send_GetFiles = function(project, configurationNa } }; -ProjectManagerClient.prototype.recv_GetFiles = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetOfflineDesktopPath = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10119,20 +11920,17 @@ ProjectManagerClient.prototype.recv_GetFiles = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetFiles_result(); + var result = new ProjectManager_GetOfflineDesktopPath_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); - } if (null !== result.success) { return callback(null, result.success); } - return callback('GetFiles failed: unknown result'); + return callback('GetOfflineDesktopPath failed: unknown result'); }; -ProjectManagerClient.prototype.AddConfiguration = function(config, project, isDebug, callback) { +ProjectManagerClient.prototype.GetOnlineDesktopPath = function(callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10143,24 +11941,19 @@ ProjectManagerClient.prototype.AddConfiguration = function(config, project, isDe _defer.resolve(result); } }; - this.send_AddConfiguration(config, project, isDebug); + this.send_GetOnlineDesktopPath(); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_AddConfiguration(config, project, isDebug); + this.send_GetOnlineDesktopPath(); } }; -ProjectManagerClient.prototype.send_AddConfiguration = function(config, project, isDebug) { +ProjectManagerClient.prototype.send_GetOnlineDesktopPath = function() { var output = new this.pClass(this.output); - var params = { - config: config, - project: project, - isDebug: isDebug - }; - var args = new ProjectManager_AddConfiguration_args(params); + var args = new ProjectManager_GetOnlineDesktopPath_args(); try { - output.writeMessageBegin('AddConfiguration', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetOnlineDesktopPath', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10174,7 +11967,7 @@ ProjectManagerClient.prototype.send_AddConfiguration = function(config, project, } }; -ProjectManagerClient.prototype.recv_AddConfiguration = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetOnlineDesktopPath = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10183,14 +11976,17 @@ ProjectManagerClient.prototype.recv_AddConfiguration = function(input,mtype,rseq input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_AddConfiguration_result(); + var result = new ProjectManager_GetOnlineDesktopPath_result(); result.read(input); input.readMessageEnd(); - callback(null); + if (null !== result.success) { + return callback(null, result.success); + } + return callback('GetOnlineDesktopPath failed: unknown result'); }; -ProjectManagerClient.prototype.AddConfigurationNoSave = function(project, config, basedOnName, callback) { +ProjectManagerClient.prototype.GetRootNode = function(ctx, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10201,24 +11997,22 @@ ProjectManagerClient.prototype.AddConfigurationNoSave = function(project, config _defer.resolve(result); } }; - this.send_AddConfigurationNoSave(project, config, basedOnName); + this.send_GetRootNode(ctx); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_AddConfigurationNoSave(project, config, basedOnName); + this.send_GetRootNode(ctx); } }; -ProjectManagerClient.prototype.send_AddConfigurationNoSave = function(project, config, basedOnName) { +ProjectManagerClient.prototype.send_GetRootNode = function(ctx) { var output = new this.pClass(this.output); var params = { - project: project, - config: config, - basedOnName: basedOnName + ctx: ctx }; - var args = new ProjectManager_AddConfigurationNoSave_args(params); + var args = new ProjectManager_GetRootNode_args(params); try { - output.writeMessageBegin('AddConfigurationNoSave', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetRootNode', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10232,7 +12026,7 @@ ProjectManagerClient.prototype.send_AddConfigurationNoSave = function(project, c } }; -ProjectManagerClient.prototype.recv_AddConfigurationNoSave = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetRootNode = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10241,14 +12035,17 @@ ProjectManagerClient.prototype.recv_AddConfigurationNoSave = function(input,mtyp input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_AddConfigurationNoSave_result(); + var result = new ProjectManager_GetRootNode_result(); result.read(input); input.readMessageEnd(); - callback(null); + if (null !== result.success) { + return callback(null, result.success); + } + return callback('GetRootNode failed: unknown result'); }; -ProjectManagerClient.prototype.RemoveConfiguration = function(configurationName, project, callback) { +ProjectManagerClient.prototype.SetNode = function(ctx, node, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10259,23 +12056,23 @@ ProjectManagerClient.prototype.RemoveConfiguration = function(configurationName, _defer.resolve(result); } }; - this.send_RemoveConfiguration(configurationName, project); + this.send_SetNode(ctx, node); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_RemoveConfiguration(configurationName, project); + this.send_SetNode(ctx, node); } }; -ProjectManagerClient.prototype.send_RemoveConfiguration = function(configurationName, project) { +ProjectManagerClient.prototype.send_SetNode = function(ctx, node) { var output = new this.pClass(this.output); var params = { - configurationName: configurationName, - project: project + ctx: ctx, + node: node }; - var args = new ProjectManager_RemoveConfiguration_args(params); + var args = new ProjectManager_SetNode_args(params); try { - output.writeMessageBegin('RemoveConfiguration', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('SetNode', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10289,7 +12086,7 @@ ProjectManagerClient.prototype.send_RemoveConfiguration = function(configuration } }; -ProjectManagerClient.prototype.recv_RemoveConfiguration = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_SetNode = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10298,14 +12095,14 @@ ProjectManagerClient.prototype.recv_RemoveConfiguration = function(input,mtype,r input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_RemoveConfiguration_result(); + var result = new ProjectManager_SetNode_result(); result.read(input); input.readMessageEnd(); callback(null); }; -ProjectManagerClient.prototype.RemoveConfigurationNoSave = function(project, configurationName, callback) { +ProjectManagerClient.prototype.GetNodeByIndex = function(ctx, nodeIndexPath, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10316,23 +12113,23 @@ ProjectManagerClient.prototype.RemoveConfigurationNoSave = function(project, con _defer.resolve(result); } }; - this.send_RemoveConfigurationNoSave(project, configurationName); + this.send_GetNodeByIndex(ctx, nodeIndexPath); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_RemoveConfigurationNoSave(project, configurationName); + this.send_GetNodeByIndex(ctx, nodeIndexPath); } }; -ProjectManagerClient.prototype.send_RemoveConfigurationNoSave = function(project, configurationName) { +ProjectManagerClient.prototype.send_GetNodeByIndex = function(ctx, nodeIndexPath) { var output = new this.pClass(this.output); var params = { - project: project, - configurationName: configurationName + ctx: ctx, + nodeIndexPath: nodeIndexPath }; - var args = new ProjectManager_RemoveConfigurationNoSave_args(params); + var args = new ProjectManager_GetNodeByIndex_args(params); try { - output.writeMessageBegin('RemoveConfigurationNoSave', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetNodeByIndex', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10346,7 +12143,7 @@ ProjectManagerClient.prototype.send_RemoveConfigurationNoSave = function(project } }; -ProjectManagerClient.prototype.recv_RemoveConfigurationNoSave = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetNodeByIndex = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10355,14 +12152,17 @@ ProjectManagerClient.prototype.recv_RemoveConfigurationNoSave = function(input,m input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_RemoveConfigurationNoSave_result(); + var result = new ProjectManager_GetNodeByIndex_result(); result.read(input); input.readMessageEnd(); - callback(null); + if (null !== result.success) { + return callback(null, result.success); + } + return callback('GetNodeByIndex failed: unknown result'); }; -ProjectManagerClient.prototype.GetConfigurations = function(project, callback) { +ProjectManagerClient.prototype.SetNodeByIndex = function(ctx, nodeIndexPath, node, save, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10373,22 +12173,25 @@ ProjectManagerClient.prototype.GetConfigurations = function(project, callback) { _defer.resolve(result); } }; - this.send_GetConfigurations(project); + this.send_SetNodeByIndex(ctx, nodeIndexPath, node, save); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetConfigurations(project); + this.send_SetNodeByIndex(ctx, nodeIndexPath, node, save); } }; -ProjectManagerClient.prototype.send_GetConfigurations = function(project) { +ProjectManagerClient.prototype.send_SetNodeByIndex = function(ctx, nodeIndexPath, node, save) { var output = new this.pClass(this.output); var params = { - project: project + ctx: ctx, + nodeIndexPath: nodeIndexPath, + node: node, + save: save }; - var args = new ProjectManager_GetConfigurations_args(params); + var args = new ProjectManager_SetNodeByIndex_args(params); try { - output.writeMessageBegin('GetConfigurations', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('SetNodeByIndex', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10402,7 +12205,7 @@ ProjectManagerClient.prototype.send_GetConfigurations = function(project) { } }; -ProjectManagerClient.prototype.recv_GetConfigurations = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_SetNodeByIndex = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10411,17 +12214,17 @@ ProjectManagerClient.prototype.recv_GetConfigurations = function(input,mtype,rse input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetConfigurations_result(); + var result = new ProjectManager_SetNodeByIndex_result(); result.read(input); input.readMessageEnd(); - if (null !== result.success) { - return callback(null, result.success); + if (null !== result.e) { + return callback(result.e); } - return callback('GetConfigurations failed: unknown result'); + callback(null); }; -ProjectManagerClient.prototype.SetConfigurationsOrder = function(project, configNames, callback) { +ProjectManagerClient.prototype.AddNodeByIndex = function(ctx, nodeIndexPath, node, save, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10432,23 +12235,25 @@ ProjectManagerClient.prototype.SetConfigurationsOrder = function(project, config _defer.resolve(result); } }; - this.send_SetConfigurationsOrder(project, configNames); + this.send_AddNodeByIndex(ctx, nodeIndexPath, node, save); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_SetConfigurationsOrder(project, configNames); + this.send_AddNodeByIndex(ctx, nodeIndexPath, node, save); } }; -ProjectManagerClient.prototype.send_SetConfigurationsOrder = function(project, configNames) { +ProjectManagerClient.prototype.send_AddNodeByIndex = function(ctx, nodeIndexPath, node, save) { var output = new this.pClass(this.output); var params = { - project: project, - configNames: configNames + ctx: ctx, + nodeIndexPath: nodeIndexPath, + node: node, + save: save }; - var args = new ProjectManager_SetConfigurationsOrder_args(params); + var args = new ProjectManager_AddNodeByIndex_args(params); try { - output.writeMessageBegin('SetConfigurationsOrder', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('AddNodeByIndex', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10462,7 +12267,7 @@ ProjectManagerClient.prototype.send_SetConfigurationsOrder = function(project, c } }; -ProjectManagerClient.prototype.recv_SetConfigurationsOrder = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_AddNodeByIndex = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10471,14 +12276,17 @@ ProjectManagerClient.prototype.recv_SetConfigurationsOrder = function(input,mtyp input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_SetConfigurationsOrder_result(); + var result = new ProjectManager_AddNodeByIndex_result(); result.read(input); input.readMessageEnd(); + if (null !== result.e) { + return callback(result.e); + } callback(null); }; -ProjectManagerClient.prototype.GetCurrentConfiguration = function(project, callback) { +ProjectManagerClient.prototype.RemoveNodeByIndex = function(ctx, nodeIndexPath, save, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10489,22 +12297,24 @@ ProjectManagerClient.prototype.GetCurrentConfiguration = function(project, callb _defer.resolve(result); } }; - this.send_GetCurrentConfiguration(project); + this.send_RemoveNodeByIndex(ctx, nodeIndexPath, save); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetCurrentConfiguration(project); + this.send_RemoveNodeByIndex(ctx, nodeIndexPath, save); } }; -ProjectManagerClient.prototype.send_GetCurrentConfiguration = function(project) { +ProjectManagerClient.prototype.send_RemoveNodeByIndex = function(ctx, nodeIndexPath, save) { var output = new this.pClass(this.output); var params = { - project: project + ctx: ctx, + nodeIndexPath: nodeIndexPath, + save: save }; - var args = new ProjectManager_GetCurrentConfiguration_args(params); + var args = new ProjectManager_RemoveNodeByIndex_args(params); try { - output.writeMessageBegin('GetCurrentConfiguration', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('RemoveNodeByIndex', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10518,7 +12328,7 @@ ProjectManagerClient.prototype.send_GetCurrentConfiguration = function(project) } }; -ProjectManagerClient.prototype.recv_GetCurrentConfiguration = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_RemoveNodeByIndex = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10527,20 +12337,17 @@ ProjectManagerClient.prototype.recv_GetCurrentConfiguration = function(input,mty input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetCurrentConfiguration_result(); + var result = new ProjectManager_RemoveNodeByIndex_result(); result.read(input); input.readMessageEnd(); if (null !== result.e) { return callback(result.e); } - if (null !== result.success) { - return callback(null, result.success); - } - return callback('GetCurrentConfiguration failed: unknown result'); + callback(null); }; -ProjectManagerClient.prototype.SetCurrentConfiguration = function(project, configurationName, callback) { +ProjectManagerClient.prototype.UpdateNodeByIndex = function(ctx, nodeIndexPath, node, save, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10551,23 +12358,25 @@ ProjectManagerClient.prototype.SetCurrentConfiguration = function(project, confi _defer.resolve(result); } }; - this.send_SetCurrentConfiguration(project, configurationName); + this.send_UpdateNodeByIndex(ctx, nodeIndexPath, node, save); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_SetCurrentConfiguration(project, configurationName); + this.send_UpdateNodeByIndex(ctx, nodeIndexPath, node, save); } }; -ProjectManagerClient.prototype.send_SetCurrentConfiguration = function(project, configurationName) { +ProjectManagerClient.prototype.send_UpdateNodeByIndex = function(ctx, nodeIndexPath, node, save) { var output = new this.pClass(this.output); var params = { - project: project, - configurationName: configurationName + ctx: ctx, + nodeIndexPath: nodeIndexPath, + node: node, + save: save }; - var args = new ProjectManager_SetCurrentConfiguration_args(params); + var args = new ProjectManager_UpdateNodeByIndex_args(params); try { - output.writeMessageBegin('SetCurrentConfiguration', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('UpdateNodeByIndex', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10581,7 +12390,7 @@ ProjectManagerClient.prototype.send_SetCurrentConfiguration = function(project, } }; -ProjectManagerClient.prototype.recv_SetCurrentConfiguration = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_UpdateNodeByIndex = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10590,7 +12399,7 @@ ProjectManagerClient.prototype.recv_SetCurrentConfiguration = function(input,mty input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_SetCurrentConfiguration_result(); + var result = new ProjectManager_UpdateNodeByIndex_result(); result.read(input); input.readMessageEnd(); @@ -10600,7 +12409,7 @@ ProjectManagerClient.prototype.recv_SetCurrentConfiguration = function(input,mty callback(null); }; -ProjectManagerClient.prototype.SetDesktopPathParameters = function(platform, slavery, callback) { +ProjectManagerClient.prototype.CanMoveNode = function(ctx, srcNodeIndexPath, dstNodeIndexPath, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10611,23 +12420,24 @@ ProjectManagerClient.prototype.SetDesktopPathParameters = function(platform, sla _defer.resolve(result); } }; - this.send_SetDesktopPathParameters(platform, slavery); + this.send_CanMoveNode(ctx, srcNodeIndexPath, dstNodeIndexPath); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_SetDesktopPathParameters(platform, slavery); + this.send_CanMoveNode(ctx, srcNodeIndexPath, dstNodeIndexPath); } }; -ProjectManagerClient.prototype.send_SetDesktopPathParameters = function(platform, slavery) { +ProjectManagerClient.prototype.send_CanMoveNode = function(ctx, srcNodeIndexPath, dstNodeIndexPath) { var output = new this.pClass(this.output); var params = { - platform: platform, - slavery: slavery + ctx: ctx, + srcNodeIndexPath: srcNodeIndexPath, + dstNodeIndexPath: dstNodeIndexPath }; - var args = new ProjectManager_SetDesktopPathParameters_args(params); + var args = new ProjectManager_CanMoveNode_args(params); try { - output.writeMessageBegin('SetDesktopPathParameters', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('CanMoveNode', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10641,7 +12451,7 @@ ProjectManagerClient.prototype.send_SetDesktopPathParameters = function(platform } }; -ProjectManagerClient.prototype.recv_SetDesktopPathParameters = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_CanMoveNode = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10650,14 +12460,20 @@ ProjectManagerClient.prototype.recv_SetDesktopPathParameters = function(input,mt input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_SetDesktopPathParameters_result(); + var result = new ProjectManager_CanMoveNode_result(); result.read(input); input.readMessageEnd(); - callback(null); + if (null !== result.e) { + return callback(result.e); + } + if (null !== result.success) { + return callback(null, result.success); + } + return callback('CanMoveNode failed: unknown result'); }; -ProjectManagerClient.prototype.GetOfflineDesktopPath = function(callback) { +ProjectManagerClient.prototype.MoveNode = function(ctx, srcNodeIndexPath, dstNodeIndexPath, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10668,19 +12484,24 @@ ProjectManagerClient.prototype.GetOfflineDesktopPath = function(callback) { _defer.resolve(result); } }; - this.send_GetOfflineDesktopPath(); + this.send_MoveNode(ctx, srcNodeIndexPath, dstNodeIndexPath); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetOfflineDesktopPath(); + this.send_MoveNode(ctx, srcNodeIndexPath, dstNodeIndexPath); } }; -ProjectManagerClient.prototype.send_GetOfflineDesktopPath = function() { +ProjectManagerClient.prototype.send_MoveNode = function(ctx, srcNodeIndexPath, dstNodeIndexPath) { var output = new this.pClass(this.output); - var args = new ProjectManager_GetOfflineDesktopPath_args(); + var params = { + ctx: ctx, + srcNodeIndexPath: srcNodeIndexPath, + dstNodeIndexPath: dstNodeIndexPath + }; + var args = new ProjectManager_MoveNode_args(params); try { - output.writeMessageBegin('GetOfflineDesktopPath', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('MoveNode', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10694,7 +12515,7 @@ ProjectManagerClient.prototype.send_GetOfflineDesktopPath = function() { } }; -ProjectManagerClient.prototype.recv_GetOfflineDesktopPath = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_MoveNode = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10703,17 +12524,20 @@ ProjectManagerClient.prototype.recv_GetOfflineDesktopPath = function(input,mtype input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetOfflineDesktopPath_result(); + var result = new ProjectManager_MoveNode_result(); result.read(input); input.readMessageEnd(); + if (null !== result.e) { + return callback(result.e); + } if (null !== result.success) { return callback(null, result.success); } - return callback('GetOfflineDesktopPath failed: unknown result'); + return callback('MoveNode failed: unknown result'); }; -ProjectManagerClient.prototype.GetOnlineDesktopPath = function(callback) { +ProjectManagerClient.prototype.GetToolChainExtensions = function(ctx, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10724,19 +12548,22 @@ ProjectManagerClient.prototype.GetOnlineDesktopPath = function(callback) { _defer.resolve(result); } }; - this.send_GetOnlineDesktopPath(); + this.send_GetToolChainExtensions(ctx); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetOnlineDesktopPath(); + this.send_GetToolChainExtensions(ctx); } }; -ProjectManagerClient.prototype.send_GetOnlineDesktopPath = function() { +ProjectManagerClient.prototype.send_GetToolChainExtensions = function(ctx) { var output = new this.pClass(this.output); - var args = new ProjectManager_GetOnlineDesktopPath_args(); + var params = { + ctx: ctx + }; + var args = new ProjectManager_GetToolChainExtensions_args(params); try { - output.writeMessageBegin('GetOnlineDesktopPath', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetToolChainExtensions', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10750,7 +12577,7 @@ ProjectManagerClient.prototype.send_GetOnlineDesktopPath = function() { } }; -ProjectManagerClient.prototype.recv_GetOnlineDesktopPath = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetToolChainExtensions = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10759,17 +12586,17 @@ ProjectManagerClient.prototype.recv_GetOnlineDesktopPath = function(input,mtype, input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetOnlineDesktopPath_result(); + var result = new ProjectManager_GetToolChainExtensions_result(); result.read(input); input.readMessageEnd(); if (null !== result.success) { return callback(null, result.success); } - return callback('GetOnlineDesktopPath failed: unknown result'); + return callback('GetToolChainExtensions failed: unknown result'); }; -ProjectManagerClient.prototype.GetRootNode = function(ctx, callback) { +ProjectManagerClient.prototype.GetToolchains = function(callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10780,22 +12607,19 @@ ProjectManagerClient.prototype.GetRootNode = function(ctx, callback) { _defer.resolve(result); } }; - this.send_GetRootNode(ctx); + this.send_GetToolchains(); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetRootNode(ctx); + this.send_GetToolchains(); } }; - -ProjectManagerClient.prototype.send_GetRootNode = function(ctx) { - var output = new this.pClass(this.output); - var params = { - ctx: ctx - }; - var args = new ProjectManager_GetRootNode_args(params); + +ProjectManagerClient.prototype.send_GetToolchains = function() { + var output = new this.pClass(this.output); + var args = new ProjectManager_GetToolchains_args(); try { - output.writeMessageBegin('GetRootNode', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetToolchains', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10809,7 +12633,7 @@ ProjectManagerClient.prototype.send_GetRootNode = function(ctx) { } }; -ProjectManagerClient.prototype.recv_GetRootNode = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetToolchains = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10818,17 +12642,20 @@ ProjectManagerClient.prototype.recv_GetRootNode = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetRootNode_result(); + var result = new ProjectManager_GetToolchains_result(); result.read(input); input.readMessageEnd(); + if (null !== result.e) { + return callback(result.e); + } if (null !== result.success) { return callback(null, result.success); } - return callback('GetRootNode failed: unknown result'); + return callback('GetToolchains failed: unknown result'); }; -ProjectManagerClient.prototype.SetNode = function(ctx, node, callback) { +ProjectManagerClient.prototype.AddToolchain = function(toolchain, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10839,23 +12666,22 @@ ProjectManagerClient.prototype.SetNode = function(ctx, node, callback) { _defer.resolve(result); } }; - this.send_SetNode(ctx, node); + this.send_AddToolchain(toolchain); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_SetNode(ctx, node); + this.send_AddToolchain(toolchain); } }; -ProjectManagerClient.prototype.send_SetNode = function(ctx, node) { +ProjectManagerClient.prototype.send_AddToolchain = function(toolchain) { var output = new this.pClass(this.output); var params = { - ctx: ctx, - node: node + toolchain: toolchain }; - var args = new ProjectManager_SetNode_args(params); + var args = new ProjectManager_AddToolchain_args(params); try { - output.writeMessageBegin('SetNode', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('AddToolchain', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10869,7 +12695,7 @@ ProjectManagerClient.prototype.send_SetNode = function(ctx, node) { } }; -ProjectManagerClient.prototype.recv_SetNode = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_AddToolchain = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10878,14 +12704,17 @@ ProjectManagerClient.prototype.recv_SetNode = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_SetNode_result(); + var result = new ProjectManager_AddToolchain_result(); result.read(input); input.readMessageEnd(); + if (null !== result.e) { + return callback(result.e); + } callback(null); }; -ProjectManagerClient.prototype.GetNodeByIndex = function(ctx, nodeIndexPath, callback) { +ProjectManagerClient.prototype.GetBatchBuildItems = function(callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10896,23 +12725,19 @@ ProjectManagerClient.prototype.GetNodeByIndex = function(ctx, nodeIndexPath, cal _defer.resolve(result); } }; - this.send_GetNodeByIndex(ctx, nodeIndexPath); + this.send_GetBatchBuildItems(); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetNodeByIndex(ctx, nodeIndexPath); + this.send_GetBatchBuildItems(); } }; -ProjectManagerClient.prototype.send_GetNodeByIndex = function(ctx, nodeIndexPath) { +ProjectManagerClient.prototype.send_GetBatchBuildItems = function() { var output = new this.pClass(this.output); - var params = { - ctx: ctx, - nodeIndexPath: nodeIndexPath - }; - var args = new ProjectManager_GetNodeByIndex_args(params); + var args = new ProjectManager_GetBatchBuildItems_args(); try { - output.writeMessageBegin('GetNodeByIndex', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetBatchBuildItems', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10926,7 +12751,7 @@ ProjectManagerClient.prototype.send_GetNodeByIndex = function(ctx, nodeIndexPath } }; -ProjectManagerClient.prototype.recv_GetNodeByIndex = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetBatchBuildItems = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10935,17 +12760,20 @@ ProjectManagerClient.prototype.recv_GetNodeByIndex = function(input,mtype,rseqid input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetNodeByIndex_result(); + var result = new ProjectManager_GetBatchBuildItems_result(); result.read(input); input.readMessageEnd(); + if (null !== result.e) { + return callback(result.e); + } if (null !== result.success) { return callback(null, result.success); } - return callback('GetNodeByIndex failed: unknown result'); + return callback('GetBatchBuildItems failed: unknown result'); }; -ProjectManagerClient.prototype.SetNodeByIndex = function(ctx, nodeIndexPath, node, save, callback) { +ProjectManagerClient.prototype.SetBatchBuildItems = function(batchBuildItems, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -10956,25 +12784,22 @@ ProjectManagerClient.prototype.SetNodeByIndex = function(ctx, nodeIndexPath, nod _defer.resolve(result); } }; - this.send_SetNodeByIndex(ctx, nodeIndexPath, node, save); + this.send_SetBatchBuildItems(batchBuildItems); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_SetNodeByIndex(ctx, nodeIndexPath, node, save); + this.send_SetBatchBuildItems(batchBuildItems); } }; -ProjectManagerClient.prototype.send_SetNodeByIndex = function(ctx, nodeIndexPath, node, save) { +ProjectManagerClient.prototype.send_SetBatchBuildItems = function(batchBuildItems) { var output = new this.pClass(this.output); var params = { - ctx: ctx, - nodeIndexPath: nodeIndexPath, - node: node, - save: save + batchBuildItems: batchBuildItems }; - var args = new ProjectManager_SetNodeByIndex_args(params); + var args = new ProjectManager_SetBatchBuildItems_args(params); try { - output.writeMessageBegin('SetNodeByIndex', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('SetBatchBuildItems', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -10988,7 +12813,7 @@ ProjectManagerClient.prototype.send_SetNodeByIndex = function(ctx, nodeIndexPath } }; -ProjectManagerClient.prototype.recv_SetNodeByIndex = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_SetBatchBuildItems = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -10997,7 +12822,7 @@ ProjectManagerClient.prototype.recv_SetNodeByIndex = function(input,mtype,rseqid input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_SetNodeByIndex_result(); + var result = new ProjectManager_SetBatchBuildItems_result(); result.read(input); input.readMessageEnd(); @@ -11007,7 +12832,7 @@ ProjectManagerClient.prototype.recv_SetNodeByIndex = function(input,mtype,rseqid callback(null); }; -ProjectManagerClient.prototype.AddNodeByIndex = function(ctx, nodeIndexPath, node, save, callback) { +ProjectManagerClient.prototype.BuildProject = function(prj, configurationName, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11018,25 +12843,23 @@ ProjectManagerClient.prototype.AddNodeByIndex = function(ctx, nodeIndexPath, nod _defer.resolve(result); } }; - this.send_AddNodeByIndex(ctx, nodeIndexPath, node, save); + this.send_BuildProject(prj, configurationName); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_AddNodeByIndex(ctx, nodeIndexPath, node, save); + this.send_BuildProject(prj, configurationName); } }; -ProjectManagerClient.prototype.send_AddNodeByIndex = function(ctx, nodeIndexPath, node, save) { +ProjectManagerClient.prototype.send_BuildProject = function(prj, configurationName) { var output = new this.pClass(this.output); var params = { - ctx: ctx, - nodeIndexPath: nodeIndexPath, - node: node, - save: save + prj: prj, + configurationName: configurationName }; - var args = new ProjectManager_AddNodeByIndex_args(params); + var args = new ProjectManager_BuildProject_args(params); try { - output.writeMessageBegin('AddNodeByIndex', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('BuildProject', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11050,7 +12873,7 @@ ProjectManagerClient.prototype.send_AddNodeByIndex = function(ctx, nodeIndexPath } }; -ProjectManagerClient.prototype.recv_AddNodeByIndex = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_BuildProject = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11059,17 +12882,20 @@ ProjectManagerClient.prototype.recv_AddNodeByIndex = function(input,mtype,rseqid input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_AddNodeByIndex_result(); + var result = new ProjectManager_BuildProject_result(); result.read(input); input.readMessageEnd(); if (null !== result.e) { return callback(result.e); } - callback(null); + if (null !== result.success) { + return callback(null, result.success); + } + return callback('BuildProject failed: unknown result'); }; -ProjectManagerClient.prototype.RemoveNodeByIndex = function(ctx, nodeIndexPath, save, callback) { +ProjectManagerClient.prototype.RebuildAllAsync = function(buildItems, stopAtError, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11080,24 +12906,23 @@ ProjectManagerClient.prototype.RemoveNodeByIndex = function(ctx, nodeIndexPath, _defer.resolve(result); } }; - this.send_RemoveNodeByIndex(ctx, nodeIndexPath, save); + this.send_RebuildAllAsync(buildItems, stopAtError); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_RemoveNodeByIndex(ctx, nodeIndexPath, save); + this.send_RebuildAllAsync(buildItems, stopAtError); } }; -ProjectManagerClient.prototype.send_RemoveNodeByIndex = function(ctx, nodeIndexPath, save) { +ProjectManagerClient.prototype.send_RebuildAllAsync = function(buildItems, stopAtError) { var output = new this.pClass(this.output); var params = { - ctx: ctx, - nodeIndexPath: nodeIndexPath, - save: save + buildItems: buildItems, + stopAtError: stopAtError }; - var args = new ProjectManager_RemoveNodeByIndex_args(params); + var args = new ProjectManager_RebuildAllAsync_args(params); try { - output.writeMessageBegin('RemoveNodeByIndex', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('RebuildAllAsync', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11111,7 +12936,7 @@ ProjectManagerClient.prototype.send_RemoveNodeByIndex = function(ctx, nodeIndexP } }; -ProjectManagerClient.prototype.recv_RemoveNodeByIndex = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_RebuildAllAsync = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11120,7 +12945,7 @@ ProjectManagerClient.prototype.recv_RemoveNodeByIndex = function(input,mtype,rse input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_RemoveNodeByIndex_result(); + var result = new ProjectManager_RebuildAllAsync_result(); result.read(input); input.readMessageEnd(); @@ -11130,7 +12955,7 @@ ProjectManagerClient.prototype.recv_RemoveNodeByIndex = function(input,mtype,rse callback(null); }; -ProjectManagerClient.prototype.UpdateNodeByIndex = function(ctx, nodeIndexPath, node, save, callback) { +ProjectManagerClient.prototype.CanCompile = function(buildItem, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11141,25 +12966,22 @@ ProjectManagerClient.prototype.UpdateNodeByIndex = function(ctx, nodeIndexPath, _defer.resolve(result); } }; - this.send_UpdateNodeByIndex(ctx, nodeIndexPath, node, save); + this.send_CanCompile(buildItem); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_UpdateNodeByIndex(ctx, nodeIndexPath, node, save); + this.send_CanCompile(buildItem); } }; -ProjectManagerClient.prototype.send_UpdateNodeByIndex = function(ctx, nodeIndexPath, node, save) { +ProjectManagerClient.prototype.send_CanCompile = function(buildItem) { var output = new this.pClass(this.output); var params = { - ctx: ctx, - nodeIndexPath: nodeIndexPath, - node: node, - save: save + buildItem: buildItem }; - var args = new ProjectManager_UpdateNodeByIndex_args(params); + var args = new ProjectManager_CanCompile_args(params); try { - output.writeMessageBegin('UpdateNodeByIndex', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('CanCompile', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11173,7 +12995,7 @@ ProjectManagerClient.prototype.send_UpdateNodeByIndex = function(ctx, nodeIndexP } }; -ProjectManagerClient.prototype.recv_UpdateNodeByIndex = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_CanCompile = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11182,17 +13004,20 @@ ProjectManagerClient.prototype.recv_UpdateNodeByIndex = function(input,mtype,rse input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_UpdateNodeByIndex_result(); + var result = new ProjectManager_CanCompile_result(); result.read(input); input.readMessageEnd(); if (null !== result.e) { return callback(result.e); } - callback(null); + if (null !== result.success) { + return callback(null, result.success); + } + return callback('CanCompile failed: unknown result'); }; -ProjectManagerClient.prototype.CanMoveNode = function(ctx, srcNodeIndexPath, dstNodeIndexPath, callback) { +ProjectManagerClient.prototype.CompileAsync = function(buildItem, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11203,24 +13028,22 @@ ProjectManagerClient.prototype.CanMoveNode = function(ctx, srcNodeIndexPath, dst _defer.resolve(result); } }; - this.send_CanMoveNode(ctx, srcNodeIndexPath, dstNodeIndexPath); + this.send_CompileAsync(buildItem); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_CanMoveNode(ctx, srcNodeIndexPath, dstNodeIndexPath); + this.send_CompileAsync(buildItem); } }; -ProjectManagerClient.prototype.send_CanMoveNode = function(ctx, srcNodeIndexPath, dstNodeIndexPath) { +ProjectManagerClient.prototype.send_CompileAsync = function(buildItem) { var output = new this.pClass(this.output); var params = { - ctx: ctx, - srcNodeIndexPath: srcNodeIndexPath, - dstNodeIndexPath: dstNodeIndexPath + buildItem: buildItem }; - var args = new ProjectManager_CanMoveNode_args(params); + var args = new ProjectManager_CompileAsync_args(params); try { - output.writeMessageBegin('CanMoveNode', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('CompileAsync', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11234,7 +13057,7 @@ ProjectManagerClient.prototype.send_CanMoveNode = function(ctx, srcNodeIndexPath } }; -ProjectManagerClient.prototype.recv_CanMoveNode = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_CompileAsync = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11243,20 +13066,17 @@ ProjectManagerClient.prototype.recv_CanMoveNode = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_CanMoveNode_result(); + var result = new ProjectManager_CompileAsync_result(); result.read(input); input.readMessageEnd(); if (null !== result.e) { return callback(result.e); } - if (null !== result.success) { - return callback(null, result.success); - } - return callback('CanMoveNode failed: unknown result'); + callback(null); }; -ProjectManagerClient.prototype.MoveNode = function(ctx, srcNodeIndexPath, dstNodeIndexPath, callback) { +ProjectManagerClient.prototype.BuildAsync = function(buildItems, stopAtError, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11267,24 +13087,23 @@ ProjectManagerClient.prototype.MoveNode = function(ctx, srcNodeIndexPath, dstNod _defer.resolve(result); } }; - this.send_MoveNode(ctx, srcNodeIndexPath, dstNodeIndexPath); + this.send_BuildAsync(buildItems, stopAtError); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_MoveNode(ctx, srcNodeIndexPath, dstNodeIndexPath); + this.send_BuildAsync(buildItems, stopAtError); } }; -ProjectManagerClient.prototype.send_MoveNode = function(ctx, srcNodeIndexPath, dstNodeIndexPath) { +ProjectManagerClient.prototype.send_BuildAsync = function(buildItems, stopAtError) { var output = new this.pClass(this.output); var params = { - ctx: ctx, - srcNodeIndexPath: srcNodeIndexPath, - dstNodeIndexPath: dstNodeIndexPath + buildItems: buildItems, + stopAtError: stopAtError }; - var args = new ProjectManager_MoveNode_args(params); + var args = new ProjectManager_BuildAsync_args(params); try { - output.writeMessageBegin('MoveNode', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('BuildAsync', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11298,7 +13117,7 @@ ProjectManagerClient.prototype.send_MoveNode = function(ctx, srcNodeIndexPath, d } }; -ProjectManagerClient.prototype.recv_MoveNode = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_BuildAsync = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11307,20 +13126,17 @@ ProjectManagerClient.prototype.recv_MoveNode = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_MoveNode_result(); + var result = new ProjectManager_BuildAsync_result(); result.read(input); input.readMessageEnd(); if (null !== result.e) { return callback(result.e); } - if (null !== result.success) { - return callback(null, result.success); - } - return callback('MoveNode failed: unknown result'); + callback(null); }; -ProjectManagerClient.prototype.GetToolChainExtensions = function(ctx, callback) { +ProjectManagerClient.prototype.CleanAsync = function(buildItems, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11331,22 +13147,22 @@ ProjectManagerClient.prototype.GetToolChainExtensions = function(ctx, callback) _defer.resolve(result); } }; - this.send_GetToolChainExtensions(ctx); + this.send_CleanAsync(buildItems); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetToolChainExtensions(ctx); + this.send_CleanAsync(buildItems); } }; -ProjectManagerClient.prototype.send_GetToolChainExtensions = function(ctx) { +ProjectManagerClient.prototype.send_CleanAsync = function(buildItems) { var output = new this.pClass(this.output); var params = { - ctx: ctx + buildItems: buildItems }; - var args = new ProjectManager_GetToolChainExtensions_args(params); + var args = new ProjectManager_CleanAsync_args(params); try { - output.writeMessageBegin('GetToolChainExtensions', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('CleanAsync', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11360,7 +13176,7 @@ ProjectManagerClient.prototype.send_GetToolChainExtensions = function(ctx) { } }; -ProjectManagerClient.prototype.recv_GetToolChainExtensions = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_CleanAsync = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11369,17 +13185,17 @@ ProjectManagerClient.prototype.recv_GetToolChainExtensions = function(input,mtyp input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetToolChainExtensions_result(); + var result = new ProjectManager_CleanAsync_result(); result.read(input); input.readMessageEnd(); - if (null !== result.success) { - return callback(null, result.success); + if (null !== result.e) { + return callback(result.e); } - return callback('GetToolChainExtensions failed: unknown result'); + callback(null); }; -ProjectManagerClient.prototype.GetToolchains = function(callback) { +ProjectManagerClient.prototype.CancelBuild = function(callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11390,19 +13206,19 @@ ProjectManagerClient.prototype.GetToolchains = function(callback) { _defer.resolve(result); } }; - this.send_GetToolchains(); + this.send_CancelBuild(); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetToolchains(); + this.send_CancelBuild(); } }; -ProjectManagerClient.prototype.send_GetToolchains = function() { +ProjectManagerClient.prototype.send_CancelBuild = function() { var output = new this.pClass(this.output); - var args = new ProjectManager_GetToolchains_args(); + var args = new ProjectManager_CancelBuild_args(); try { - output.writeMessageBegin('GetToolchains', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('CancelBuild', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11416,7 +13232,7 @@ ProjectManagerClient.prototype.send_GetToolchains = function() { } }; -ProjectManagerClient.prototype.recv_GetToolchains = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_CancelBuild = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11425,20 +13241,14 @@ ProjectManagerClient.prototype.recv_GetToolchains = function(input,mtype,rseqid) input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetToolchains_result(); + var result = new ProjectManager_CancelBuild_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); - } - if (null !== result.success) { - return callback(null, result.success); - } - return callback('GetToolchains failed: unknown result'); + callback(null); }; -ProjectManagerClient.prototype.AddToolchain = function(toolchain, callback) { +ProjectManagerClient.prototype.TerminateAnalysis = function(callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11449,22 +13259,19 @@ ProjectManagerClient.prototype.AddToolchain = function(toolchain, callback) { _defer.resolve(result); } }; - this.send_AddToolchain(toolchain); + this.send_TerminateAnalysis(); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_AddToolchain(toolchain); + this.send_TerminateAnalysis(); } }; -ProjectManagerClient.prototype.send_AddToolchain = function(toolchain) { +ProjectManagerClient.prototype.send_TerminateAnalysis = function() { var output = new this.pClass(this.output); - var params = { - toolchain: toolchain - }; - var args = new ProjectManager_AddToolchain_args(params); + var args = new ProjectManager_TerminateAnalysis_args(); try { - output.writeMessageBegin('AddToolchain', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('TerminateAnalysis', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11478,7 +13285,7 @@ ProjectManagerClient.prototype.send_AddToolchain = function(toolchain) { } }; -ProjectManagerClient.prototype.recv_AddToolchain = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_TerminateAnalysis = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11487,17 +13294,14 @@ ProjectManagerClient.prototype.recv_AddToolchain = function(input,mtype,rseqid) input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_AddToolchain_result(); + var result = new ProjectManager_TerminateAnalysis_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); - } callback(null); }; -ProjectManagerClient.prototype.GetBatchBuildItems = function(callback) { +ProjectManagerClient.prototype.GetOptionsForNode = function(prj, node, configurationName, optionIds, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11508,19 +13312,25 @@ ProjectManagerClient.prototype.GetBatchBuildItems = function(callback) { _defer.resolve(result); } }; - this.send_GetBatchBuildItems(); + this.send_GetOptionsForNode(prj, node, configurationName, optionIds); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetBatchBuildItems(); + this.send_GetOptionsForNode(prj, node, configurationName, optionIds); } }; -ProjectManagerClient.prototype.send_GetBatchBuildItems = function() { +ProjectManagerClient.prototype.send_GetOptionsForNode = function(prj, node, configurationName, optionIds) { var output = new this.pClass(this.output); - var args = new ProjectManager_GetBatchBuildItems_args(); + var params = { + prj: prj, + node: node, + configurationName: configurationName, + optionIds: optionIds + }; + var args = new ProjectManager_GetOptionsForNode_args(params); try { - output.writeMessageBegin('GetBatchBuildItems', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetOptionsForNode', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11534,7 +13344,7 @@ ProjectManagerClient.prototype.send_GetBatchBuildItems = function() { } }; -ProjectManagerClient.prototype.recv_GetBatchBuildItems = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetOptionsForNode = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11543,7 +13353,7 @@ ProjectManagerClient.prototype.recv_GetBatchBuildItems = function(input,mtype,rs input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetBatchBuildItems_result(); + var result = new ProjectManager_GetOptionsForNode_result(); result.read(input); input.readMessageEnd(); @@ -11553,10 +13363,10 @@ ProjectManagerClient.prototype.recv_GetBatchBuildItems = function(input,mtype,rs if (null !== result.success) { return callback(null, result.success); } - return callback('GetBatchBuildItems failed: unknown result'); + return callback('GetOptionsForNode failed: unknown result'); }; -ProjectManagerClient.prototype.SetBatchBuildItems = function(batchBuildItems, callback) { +ProjectManagerClient.prototype.GetOptionsForConfiguration = function(prj, configurationName, optionIds, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11567,22 +13377,24 @@ ProjectManagerClient.prototype.SetBatchBuildItems = function(batchBuildItems, ca _defer.resolve(result); } }; - this.send_SetBatchBuildItems(batchBuildItems); + this.send_GetOptionsForConfiguration(prj, configurationName, optionIds); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_SetBatchBuildItems(batchBuildItems); + this.send_GetOptionsForConfiguration(prj, configurationName, optionIds); } }; -ProjectManagerClient.prototype.send_SetBatchBuildItems = function(batchBuildItems) { +ProjectManagerClient.prototype.send_GetOptionsForConfiguration = function(prj, configurationName, optionIds) { var output = new this.pClass(this.output); var params = { - batchBuildItems: batchBuildItems + prj: prj, + configurationName: configurationName, + optionIds: optionIds }; - var args = new ProjectManager_SetBatchBuildItems_args(params); + var args = new ProjectManager_GetOptionsForConfiguration_args(params); try { - output.writeMessageBegin('SetBatchBuildItems', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetOptionsForConfiguration', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11596,7 +13408,7 @@ ProjectManagerClient.prototype.send_SetBatchBuildItems = function(batchBuildItem } }; -ProjectManagerClient.prototype.recv_SetBatchBuildItems = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetOptionsForConfiguration = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11605,17 +13417,20 @@ ProjectManagerClient.prototype.recv_SetBatchBuildItems = function(input,mtype,rs input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_SetBatchBuildItems_result(); + var result = new ProjectManager_GetOptionsForConfiguration_result(); result.read(input); input.readMessageEnd(); if (null !== result.e) { return callback(result.e); } - callback(null); + if (null !== result.success) { + return callback(null, result.success); + } + return callback('GetOptionsForConfiguration failed: unknown result'); }; -ProjectManagerClient.prototype.BuildProject = function(prj, configurationName, callback) { +ProjectManagerClient.prototype.ApplyOptionsForNode = function(prj, node, configurationName, optionsToSet, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11626,23 +13441,25 @@ ProjectManagerClient.prototype.BuildProject = function(prj, configurationName, c _defer.resolve(result); } }; - this.send_BuildProject(prj, configurationName); + this.send_ApplyOptionsForNode(prj, node, configurationName, optionsToSet); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_BuildProject(prj, configurationName); + this.send_ApplyOptionsForNode(prj, node, configurationName, optionsToSet); } }; -ProjectManagerClient.prototype.send_BuildProject = function(prj, configurationName) { +ProjectManagerClient.prototype.send_ApplyOptionsForNode = function(prj, node, configurationName, optionsToSet) { var output = new this.pClass(this.output); var params = { prj: prj, - configurationName: configurationName + node: node, + configurationName: configurationName, + optionsToSet: optionsToSet }; - var args = new ProjectManager_BuildProject_args(params); + var args = new ProjectManager_ApplyOptionsForNode_args(params); try { - output.writeMessageBegin('BuildProject', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('ApplyOptionsForNode', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11656,7 +13473,7 @@ ProjectManagerClient.prototype.send_BuildProject = function(prj, configurationNa } }; -ProjectManagerClient.prototype.recv_BuildProject = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_ApplyOptionsForNode = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11665,7 +13482,7 @@ ProjectManagerClient.prototype.recv_BuildProject = function(input,mtype,rseqid) input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_BuildProject_result(); + var result = new ProjectManager_ApplyOptionsForNode_result(); result.read(input); input.readMessageEnd(); @@ -11675,10 +13492,10 @@ ProjectManagerClient.prototype.recv_BuildProject = function(input,mtype,rseqid) if (null !== result.success) { return callback(null, result.success); } - return callback('BuildProject failed: unknown result'); + return callback('ApplyOptionsForNode failed: unknown result'); }; -ProjectManagerClient.prototype.RebuildAllAsync = function(buildItems, stopAtError, callback) { +ProjectManagerClient.prototype.VerifyOptionsForNode = function(prj, node, configurationName, optionsToSet, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11689,23 +13506,25 @@ ProjectManagerClient.prototype.RebuildAllAsync = function(buildItems, stopAtErro _defer.resolve(result); } }; - this.send_RebuildAllAsync(buildItems, stopAtError); + this.send_VerifyOptionsForNode(prj, node, configurationName, optionsToSet); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_RebuildAllAsync(buildItems, stopAtError); + this.send_VerifyOptionsForNode(prj, node, configurationName, optionsToSet); } }; -ProjectManagerClient.prototype.send_RebuildAllAsync = function(buildItems, stopAtError) { +ProjectManagerClient.prototype.send_VerifyOptionsForNode = function(prj, node, configurationName, optionsToSet) { var output = new this.pClass(this.output); var params = { - buildItems: buildItems, - stopAtError: stopAtError + prj: prj, + node: node, + configurationName: configurationName, + optionsToSet: optionsToSet }; - var args = new ProjectManager_RebuildAllAsync_args(params); + var args = new ProjectManager_VerifyOptionsForNode_args(params); try { - output.writeMessageBegin('RebuildAllAsync', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('VerifyOptionsForNode', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11719,7 +13538,7 @@ ProjectManagerClient.prototype.send_RebuildAllAsync = function(buildItems, stopA } }; -ProjectManagerClient.prototype.recv_RebuildAllAsync = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_VerifyOptionsForNode = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11728,17 +13547,20 @@ ProjectManagerClient.prototype.recv_RebuildAllAsync = function(input,mtype,rseqi input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_RebuildAllAsync_result(); + var result = new ProjectManager_VerifyOptionsForNode_result(); result.read(input); input.readMessageEnd(); if (null !== result.e) { return callback(result.e); } - callback(null); + if (null !== result.success) { + return callback(null, result.success); + } + return callback('VerifyOptionsForNode failed: unknown result'); }; -ProjectManagerClient.prototype.CanCompile = function(buildItem, callback) { +ProjectManagerClient.prototype.ApplyOptionsForConfiguration = function(prj, configurationName, optionsToSet, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11749,22 +13571,24 @@ ProjectManagerClient.prototype.CanCompile = function(buildItem, callback) { _defer.resolve(result); } }; - this.send_CanCompile(buildItem); + this.send_ApplyOptionsForConfiguration(prj, configurationName, optionsToSet); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_CanCompile(buildItem); + this.send_ApplyOptionsForConfiguration(prj, configurationName, optionsToSet); } }; -ProjectManagerClient.prototype.send_CanCompile = function(buildItem) { +ProjectManagerClient.prototype.send_ApplyOptionsForConfiguration = function(prj, configurationName, optionsToSet) { var output = new this.pClass(this.output); var params = { - buildItem: buildItem + prj: prj, + configurationName: configurationName, + optionsToSet: optionsToSet }; - var args = new ProjectManager_CanCompile_args(params); + var args = new ProjectManager_ApplyOptionsForConfiguration_args(params); try { - output.writeMessageBegin('CanCompile', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('ApplyOptionsForConfiguration', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11778,7 +13602,7 @@ ProjectManagerClient.prototype.send_CanCompile = function(buildItem) { } }; -ProjectManagerClient.prototype.recv_CanCompile = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_ApplyOptionsForConfiguration = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11787,7 +13611,7 @@ ProjectManagerClient.prototype.recv_CanCompile = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_CanCompile_result(); + var result = new ProjectManager_ApplyOptionsForConfiguration_result(); result.read(input); input.readMessageEnd(); @@ -11797,10 +13621,10 @@ ProjectManagerClient.prototype.recv_CanCompile = function(input,mtype,rseqid) { if (null !== result.success) { return callback(null, result.success); } - return callback('CanCompile failed: unknown result'); + return callback('ApplyOptionsForConfiguration failed: unknown result'); }; -ProjectManagerClient.prototype.CompileAsync = function(buildItem, callback) { +ProjectManagerClient.prototype.VerifyOptionsForConfiguration = function(prj, configurationName, optionsToSet, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11811,22 +13635,24 @@ ProjectManagerClient.prototype.CompileAsync = function(buildItem, callback) { _defer.resolve(result); } }; - this.send_CompileAsync(buildItem); + this.send_VerifyOptionsForConfiguration(prj, configurationName, optionsToSet); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_CompileAsync(buildItem); + this.send_VerifyOptionsForConfiguration(prj, configurationName, optionsToSet); } }; -ProjectManagerClient.prototype.send_CompileAsync = function(buildItem) { +ProjectManagerClient.prototype.send_VerifyOptionsForConfiguration = function(prj, configurationName, optionsToSet) { var output = new this.pClass(this.output); var params = { - buildItem: buildItem + prj: prj, + configurationName: configurationName, + optionsToSet: optionsToSet }; - var args = new ProjectManager_CompileAsync_args(params); + var args = new ProjectManager_VerifyOptionsForConfiguration_args(params); try { - output.writeMessageBegin('CompileAsync', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('VerifyOptionsForConfiguration', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11840,7 +13666,7 @@ ProjectManagerClient.prototype.send_CompileAsync = function(buildItem) { } }; -ProjectManagerClient.prototype.recv_CompileAsync = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_VerifyOptionsForConfiguration = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11849,17 +13675,20 @@ ProjectManagerClient.prototype.recv_CompileAsync = function(input,mtype,rseqid) input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_CompileAsync_result(); + var result = new ProjectManager_VerifyOptionsForConfiguration_result(); result.read(input); input.readMessageEnd(); if (null !== result.e) { return callback(result.e); } - callback(null); + if (null !== result.success) { + return callback(null, result.success); + } + return callback('VerifyOptionsForConfiguration failed: unknown result'); }; -ProjectManagerClient.prototype.BuildAsync = function(buildItems, stopAtError, callback) { +ProjectManagerClient.prototype.GetOptionCategories = function(prj, configurationName, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11870,23 +13699,23 @@ ProjectManagerClient.prototype.BuildAsync = function(buildItems, stopAtError, ca _defer.resolve(result); } }; - this.send_BuildAsync(buildItems, stopAtError); + this.send_GetOptionCategories(prj, configurationName); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_BuildAsync(buildItems, stopAtError); + this.send_GetOptionCategories(prj, configurationName); } }; -ProjectManagerClient.prototype.send_BuildAsync = function(buildItems, stopAtError) { +ProjectManagerClient.prototype.send_GetOptionCategories = function(prj, configurationName) { var output = new this.pClass(this.output); var params = { - buildItems: buildItems, - stopAtError: stopAtError + prj: prj, + configurationName: configurationName }; - var args = new ProjectManager_BuildAsync_args(params); + var args = new ProjectManager_GetOptionCategories_args(params); try { - output.writeMessageBegin('BuildAsync', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetOptionCategories', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11900,7 +13729,7 @@ ProjectManagerClient.prototype.send_BuildAsync = function(buildItems, stopAtErro } }; -ProjectManagerClient.prototype.recv_BuildAsync = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetOptionCategories = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11909,17 +13738,17 @@ ProjectManagerClient.prototype.recv_BuildAsync = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_BuildAsync_result(); + var result = new ProjectManager_GetOptionCategories_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); + if (null !== result.success) { + return callback(null, result.success); } - callback(null); + return callback('GetOptionCategories failed: unknown result'); }; -ProjectManagerClient.prototype.CleanAsync = function(buildItems, callback) { +ProjectManagerClient.prototype.EnableMultiFileCompilation = function(prj, configurationName, node, enabled, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11930,22 +13759,25 @@ ProjectManagerClient.prototype.CleanAsync = function(buildItems, callback) { _defer.resolve(result); } }; - this.send_CleanAsync(buildItems); + this.send_EnableMultiFileCompilation(prj, configurationName, node, enabled); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_CleanAsync(buildItems); + this.send_EnableMultiFileCompilation(prj, configurationName, node, enabled); } }; -ProjectManagerClient.prototype.send_CleanAsync = function(buildItems) { +ProjectManagerClient.prototype.send_EnableMultiFileCompilation = function(prj, configurationName, node, enabled) { var output = new this.pClass(this.output); var params = { - buildItems: buildItems + prj: prj, + configurationName: configurationName, + node: node, + enabled: enabled }; - var args = new ProjectManager_CleanAsync_args(params); + var args = new ProjectManager_EnableMultiFileCompilation_args(params); try { - output.writeMessageBegin('CleanAsync', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('EnableMultiFileCompilation', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -11959,7 +13791,7 @@ ProjectManagerClient.prototype.send_CleanAsync = function(buildItems) { } }; -ProjectManagerClient.prototype.recv_CleanAsync = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_EnableMultiFileCompilation = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -11968,17 +13800,14 @@ ProjectManagerClient.prototype.recv_CleanAsync = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_CleanAsync_result(); + var result = new ProjectManager_EnableMultiFileCompilation_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); - } callback(null); }; -ProjectManagerClient.prototype.CancelBuild = function(callback) { +ProjectManagerClient.prototype.EnableMultiFileDiscardPublicSymbols = function(prj, configurationName, node, enabled, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -11989,19 +13818,25 @@ ProjectManagerClient.prototype.CancelBuild = function(callback) { _defer.resolve(result); } }; - this.send_CancelBuild(); + this.send_EnableMultiFileDiscardPublicSymbols(prj, configurationName, node, enabled); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_CancelBuild(); + this.send_EnableMultiFileDiscardPublicSymbols(prj, configurationName, node, enabled); } }; -ProjectManagerClient.prototype.send_CancelBuild = function() { +ProjectManagerClient.prototype.send_EnableMultiFileDiscardPublicSymbols = function(prj, configurationName, node, enabled) { var output = new this.pClass(this.output); - var args = new ProjectManager_CancelBuild_args(); + var params = { + prj: prj, + configurationName: configurationName, + node: node, + enabled: enabled + }; + var args = new ProjectManager_EnableMultiFileDiscardPublicSymbols_args(params); try { - output.writeMessageBegin('CancelBuild', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('EnableMultiFileDiscardPublicSymbols', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12015,7 +13850,7 @@ ProjectManagerClient.prototype.send_CancelBuild = function() { } }; -ProjectManagerClient.prototype.recv_CancelBuild = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_EnableMultiFileDiscardPublicSymbols = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12024,14 +13859,14 @@ ProjectManagerClient.prototype.recv_CancelBuild = function(input,mtype,rseqid) { input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_CancelBuild_result(); + var result = new ProjectManager_EnableMultiFileDiscardPublicSymbols_result(); result.read(input); input.readMessageEnd(); callback(null); }; -ProjectManagerClient.prototype.TerminateAnalysis = function(callback) { +ProjectManagerClient.prototype.IsMultiFileCompilationEnabled = function(prj, configurationName, node, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -12042,19 +13877,24 @@ ProjectManagerClient.prototype.TerminateAnalysis = function(callback) { _defer.resolve(result); } }; - this.send_TerminateAnalysis(); + this.send_IsMultiFileCompilationEnabled(prj, configurationName, node); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_TerminateAnalysis(); + this.send_IsMultiFileCompilationEnabled(prj, configurationName, node); } }; -ProjectManagerClient.prototype.send_TerminateAnalysis = function() { +ProjectManagerClient.prototype.send_IsMultiFileCompilationEnabled = function(prj, configurationName, node) { var output = new this.pClass(this.output); - var args = new ProjectManager_TerminateAnalysis_args(); + var params = { + prj: prj, + configurationName: configurationName, + node: node + }; + var args = new ProjectManager_IsMultiFileCompilationEnabled_args(params); try { - output.writeMessageBegin('TerminateAnalysis', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('IsMultiFileCompilationEnabled', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12068,7 +13908,7 @@ ProjectManagerClient.prototype.send_TerminateAnalysis = function() { } }; -ProjectManagerClient.prototype.recv_TerminateAnalysis = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_IsMultiFileCompilationEnabled = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12077,14 +13917,17 @@ ProjectManagerClient.prototype.recv_TerminateAnalysis = function(input,mtype,rse input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_TerminateAnalysis_result(); + var result = new ProjectManager_IsMultiFileCompilationEnabled_result(); result.read(input); input.readMessageEnd(); - callback(null); + if (null !== result.success) { + return callback(null, result.success); + } + return callback('IsMultiFileCompilationEnabled failed: unknown result'); }; -ProjectManagerClient.prototype.GetOptionsForNode = function(prj, node, configurationName, callback) { +ProjectManagerClient.prototype.IsMultiFileDiscardPublicSymbolsEnabled = function(prj, configurationName, node, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -12095,24 +13938,24 @@ ProjectManagerClient.prototype.GetOptionsForNode = function(prj, node, configura _defer.resolve(result); } }; - this.send_GetOptionsForNode(prj, node, configurationName); + this.send_IsMultiFileDiscardPublicSymbolsEnabled(prj, configurationName, node); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetOptionsForNode(prj, node, configurationName); + this.send_IsMultiFileDiscardPublicSymbolsEnabled(prj, configurationName, node); } }; -ProjectManagerClient.prototype.send_GetOptionsForNode = function(prj, node, configurationName) { +ProjectManagerClient.prototype.send_IsMultiFileDiscardPublicSymbolsEnabled = function(prj, configurationName, node) { var output = new this.pClass(this.output); var params = { prj: prj, - node: node, - configurationName: configurationName + configurationName: configurationName, + node: node }; - var args = new ProjectManager_GetOptionsForNode_args(params); + var args = new ProjectManager_IsMultiFileDiscardPublicSymbolsEnabled_args(params); try { - output.writeMessageBegin('GetOptionsForNode', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('IsMultiFileDiscardPublicSymbolsEnabled', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12126,7 +13969,7 @@ ProjectManagerClient.prototype.send_GetOptionsForNode = function(prj, node, conf } }; -ProjectManagerClient.prototype.recv_GetOptionsForNode = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_IsMultiFileDiscardPublicSymbolsEnabled = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12135,20 +13978,17 @@ ProjectManagerClient.prototype.recv_GetOptionsForNode = function(input,mtype,rse input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetOptionsForNode_result(); + var result = new ProjectManager_IsMultiFileDiscardPublicSymbolsEnabled_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); - } if (null !== result.success) { return callback(null, result.success); } - return callback('GetOptionsForNode failed: unknown result'); + return callback('IsMultiFileDiscardPublicSymbolsEnabled failed: unknown result'); }; -ProjectManagerClient.prototype.GetOptionsForConfiguration = function(prj, configurationName, callback) { +ProjectManagerClient.prototype.GetToolArgumentsForConfiguration = function(prj, toolId, configurationName, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -12159,23 +13999,24 @@ ProjectManagerClient.prototype.GetOptionsForConfiguration = function(prj, config _defer.resolve(result); } }; - this.send_GetOptionsForConfiguration(prj, configurationName); + this.send_GetToolArgumentsForConfiguration(prj, toolId, configurationName); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetOptionsForConfiguration(prj, configurationName); + this.send_GetToolArgumentsForConfiguration(prj, toolId, configurationName); } }; -ProjectManagerClient.prototype.send_GetOptionsForConfiguration = function(prj, configurationName) { +ProjectManagerClient.prototype.send_GetToolArgumentsForConfiguration = function(prj, toolId, configurationName) { var output = new this.pClass(this.output); var params = { prj: prj, + toolId: toolId, configurationName: configurationName }; - var args = new ProjectManager_GetOptionsForConfiguration_args(params); + var args = new ProjectManager_GetToolArgumentsForConfiguration_args(params); try { - output.writeMessageBegin('GetOptionsForConfiguration', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetToolArgumentsForConfiguration', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12189,7 +14030,7 @@ ProjectManagerClient.prototype.send_GetOptionsForConfiguration = function(prj, c } }; -ProjectManagerClient.prototype.recv_GetOptionsForConfiguration = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetToolArgumentsForConfiguration = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12198,20 +14039,17 @@ ProjectManagerClient.prototype.recv_GetOptionsForConfiguration = function(input, input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetOptionsForConfiguration_result(); + var result = new ProjectManager_GetToolArgumentsForConfiguration_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); - } if (null !== result.success) { return callback(null, result.success); } - return callback('GetOptionsForConfiguration failed: unknown result'); + return callback('GetToolArgumentsForConfiguration failed: unknown result'); }; -ProjectManagerClient.prototype.ApplyOptionsForNode = function(prj, node, configurationName, optionsToSet, callback) { +ProjectManagerClient.prototype.ExpandArgVars = function(input, project, configurationName, throwOnFailure, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -12222,25 +14060,25 @@ ProjectManagerClient.prototype.ApplyOptionsForNode = function(prj, node, configu _defer.resolve(result); } }; - this.send_ApplyOptionsForNode(prj, node, configurationName, optionsToSet); + this.send_ExpandArgVars(input, project, configurationName, throwOnFailure); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_ApplyOptionsForNode(prj, node, configurationName, optionsToSet); + this.send_ExpandArgVars(input, project, configurationName, throwOnFailure); } }; -ProjectManagerClient.prototype.send_ApplyOptionsForNode = function(prj, node, configurationName, optionsToSet) { +ProjectManagerClient.prototype.send_ExpandArgVars = function(input, project, configurationName, throwOnFailure) { var output = new this.pClass(this.output); var params = { - prj: prj, - node: node, + input: input, + project: project, configurationName: configurationName, - optionsToSet: optionsToSet + throwOnFailure: throwOnFailure }; - var args = new ProjectManager_ApplyOptionsForNode_args(params); + var args = new ProjectManager_ExpandArgVars_args(params); try { - output.writeMessageBegin('ApplyOptionsForNode', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('ExpandArgVars', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12254,7 +14092,7 @@ ProjectManagerClient.prototype.send_ApplyOptionsForNode = function(prj, node, co } }; -ProjectManagerClient.prototype.recv_ApplyOptionsForNode = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_ExpandArgVars = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12263,20 +14101,17 @@ ProjectManagerClient.prototype.recv_ApplyOptionsForNode = function(input,mtype,r input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_ApplyOptionsForNode_result(); + var result = new ProjectManager_ExpandArgVars_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); - } if (null !== result.success) { return callback(null, result.success); } - return callback('ApplyOptionsForNode failed: unknown result'); + return callback('ExpandArgVars failed: unknown result'); }; -ProjectManagerClient.prototype.VerifyOptionsForNode = function(prj, node, configurationName, optionsToSet, callback) { +ProjectManagerClient.prototype.GetPresentationForOptionsAsJson = function(locale, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -12287,25 +14122,22 @@ ProjectManagerClient.prototype.VerifyOptionsForNode = function(prj, node, config _defer.resolve(result); } }; - this.send_VerifyOptionsForNode(prj, node, configurationName, optionsToSet); + this.send_GetPresentationForOptionsAsJson(locale); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_VerifyOptionsForNode(prj, node, configurationName, optionsToSet); + this.send_GetPresentationForOptionsAsJson(locale); } }; -ProjectManagerClient.prototype.send_VerifyOptionsForNode = function(prj, node, configurationName, optionsToSet) { +ProjectManagerClient.prototype.send_GetPresentationForOptionsAsJson = function(locale) { var output = new this.pClass(this.output); var params = { - prj: prj, - node: node, - configurationName: configurationName, - optionsToSet: optionsToSet + locale: locale }; - var args = new ProjectManager_VerifyOptionsForNode_args(params); + var args = new ProjectManager_GetPresentationForOptionsAsJson_args(params); try { - output.writeMessageBegin('VerifyOptionsForNode', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetPresentationForOptionsAsJson', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12319,7 +14151,7 @@ ProjectManagerClient.prototype.send_VerifyOptionsForNode = function(prj, node, c } }; -ProjectManagerClient.prototype.recv_VerifyOptionsForNode = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetPresentationForOptionsAsJson = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12328,7 +14160,7 @@ ProjectManagerClient.prototype.recv_VerifyOptionsForNode = function(input,mtype, input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_VerifyOptionsForNode_result(); + var result = new ProjectManager_GetPresentationForOptionsAsJson_result(); result.read(input); input.readMessageEnd(); @@ -12338,10 +14170,10 @@ ProjectManagerClient.prototype.recv_VerifyOptionsForNode = function(input,mtype, if (null !== result.success) { return callback(null, result.success); } - return callback('VerifyOptionsForNode failed: unknown result'); + return callback('GetPresentationForOptionsAsJson failed: unknown result'); }; -ProjectManagerClient.prototype.ApplyOptionsForConfiguration = function(prj, configurationName, optionsToSet, callback) { +ProjectManagerClient.prototype.UpdateProjectConnections = function(prj, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -12352,24 +14184,22 @@ ProjectManagerClient.prototype.ApplyOptionsForConfiguration = function(prj, conf _defer.resolve(result); } }; - this.send_ApplyOptionsForConfiguration(prj, configurationName, optionsToSet); + this.send_UpdateProjectConnections(prj); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_ApplyOptionsForConfiguration(prj, configurationName, optionsToSet); + this.send_UpdateProjectConnections(prj); } }; -ProjectManagerClient.prototype.send_ApplyOptionsForConfiguration = function(prj, configurationName, optionsToSet) { +ProjectManagerClient.prototype.send_UpdateProjectConnections = function(prj) { var output = new this.pClass(this.output); var params = { - prj: prj, - configurationName: configurationName, - optionsToSet: optionsToSet + prj: prj }; - var args = new ProjectManager_ApplyOptionsForConfiguration_args(params); + var args = new ProjectManager_UpdateProjectConnections_args(params); try { - output.writeMessageBegin('ApplyOptionsForConfiguration', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('UpdateProjectConnections', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12383,7 +14213,7 @@ ProjectManagerClient.prototype.send_ApplyOptionsForConfiguration = function(prj, } }; -ProjectManagerClient.prototype.recv_ApplyOptionsForConfiguration = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_UpdateProjectConnections = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12392,20 +14222,14 @@ ProjectManagerClient.prototype.recv_ApplyOptionsForConfiguration = function(inpu input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_ApplyOptionsForConfiguration_result(); + var result = new ProjectManager_UpdateProjectConnections_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); - } - if (null !== result.success) { - return callback(null, result.success); - } - return callback('ApplyOptionsForConfiguration failed: unknown result'); + callback(null); }; -ProjectManagerClient.prototype.VerifyOptionsForConfiguration = function(prj, configurationName, optionsToSet, callback) { +ProjectManagerClient.prototype.UpdateProjectConnection = function(prj, file, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -12416,24 +14240,23 @@ ProjectManagerClient.prototype.VerifyOptionsForConfiguration = function(prj, con _defer.resolve(result); } }; - this.send_VerifyOptionsForConfiguration(prj, configurationName, optionsToSet); + this.send_UpdateProjectConnection(prj, file); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_VerifyOptionsForConfiguration(prj, configurationName, optionsToSet); + this.send_UpdateProjectConnection(prj, file); } }; -ProjectManagerClient.prototype.send_VerifyOptionsForConfiguration = function(prj, configurationName, optionsToSet) { +ProjectManagerClient.prototype.send_UpdateProjectConnection = function(prj, file) { var output = new this.pClass(this.output); var params = { prj: prj, - configurationName: configurationName, - optionsToSet: optionsToSet + file: file }; - var args = new ProjectManager_VerifyOptionsForConfiguration_args(params); + var args = new ProjectManager_UpdateProjectConnection_args(params); try { - output.writeMessageBegin('VerifyOptionsForConfiguration', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('UpdateProjectConnection', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12447,7 +14270,7 @@ ProjectManagerClient.prototype.send_VerifyOptionsForConfiguration = function(prj } }; -ProjectManagerClient.prototype.recv_VerifyOptionsForConfiguration = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_UpdateProjectConnection = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12456,20 +14279,17 @@ ProjectManagerClient.prototype.recv_VerifyOptionsForConfiguration = function(inp input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_VerifyOptionsForConfiguration_result(); + var result = new ProjectManager_UpdateProjectConnection_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); - } if (null !== result.success) { return callback(null, result.success); } - return callback('VerifyOptionsForConfiguration failed: unknown result'); + return callback('UpdateProjectConnection failed: unknown result'); }; -ProjectManagerClient.prototype.GetOptionCategories = function(prj, configurationName, callback) { +ProjectManagerClient.prototype.RemoveMonitors = function(prj, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -12480,23 +14300,22 @@ ProjectManagerClient.prototype.GetOptionCategories = function(prj, configuration _defer.resolve(result); } }; - this.send_GetOptionCategories(prj, configurationName); + this.send_RemoveMonitors(prj); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetOptionCategories(prj, configurationName); + this.send_RemoveMonitors(prj); } }; -ProjectManagerClient.prototype.send_GetOptionCategories = function(prj, configurationName) { +ProjectManagerClient.prototype.send_RemoveMonitors = function(prj) { var output = new this.pClass(this.output); var params = { - prj: prj, - configurationName: configurationName + prj: prj }; - var args = new ProjectManager_GetOptionCategories_args(params); + var args = new ProjectManager_RemoveMonitors_args(params); try { - output.writeMessageBegin('GetOptionCategories', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('RemoveMonitors', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12510,7 +14329,7 @@ ProjectManagerClient.prototype.send_GetOptionCategories = function(prj, configur } }; -ProjectManagerClient.prototype.recv_GetOptionCategories = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_RemoveMonitors = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12519,17 +14338,14 @@ ProjectManagerClient.prototype.recv_GetOptionCategories = function(input,mtype,r input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetOptionCategories_result(); + var result = new ProjectManager_RemoveMonitors_result(); result.read(input); input.readMessageEnd(); - if (null !== result.success) { - return callback(null, result.success); - } - return callback('GetOptionCategories failed: unknown result'); + callback(null); }; -ProjectManagerClient.prototype.EnableMultiFileCompilation = function(prj, configurationName, node, enabled, callback) { +ProjectManagerClient.prototype.EnableProjectConnections = function(enable, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -12540,25 +14356,22 @@ ProjectManagerClient.prototype.EnableMultiFileCompilation = function(prj, config _defer.resolve(result); } }; - this.send_EnableMultiFileCompilation(prj, configurationName, node, enabled); + this.send_EnableProjectConnections(enable); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_EnableMultiFileCompilation(prj, configurationName, node, enabled); + this.send_EnableProjectConnections(enable); } }; -ProjectManagerClient.prototype.send_EnableMultiFileCompilation = function(prj, configurationName, node, enabled) { +ProjectManagerClient.prototype.send_EnableProjectConnections = function(enable) { var output = new this.pClass(this.output); var params = { - prj: prj, - configurationName: configurationName, - node: node, - enabled: enabled + enable: enable }; - var args = new ProjectManager_EnableMultiFileCompilation_args(params); + var args = new ProjectManager_EnableProjectConnections_args(params); try { - output.writeMessageBegin('EnableMultiFileCompilation', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('EnableProjectConnections', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12572,7 +14385,7 @@ ProjectManagerClient.prototype.send_EnableMultiFileCompilation = function(prj, c } }; -ProjectManagerClient.prototype.recv_EnableMultiFileCompilation = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_EnableProjectConnections = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12581,14 +14394,14 @@ ProjectManagerClient.prototype.recv_EnableMultiFileCompilation = function(input, input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_EnableMultiFileCompilation_result(); + var result = new ProjectManager_EnableProjectConnections_result(); result.read(input); input.readMessageEnd(); callback(null); }; -ProjectManagerClient.prototype.EnableMultiFileDiscardPublicSymbols = function(prj, configurationName, node, enabled, callback) { +ProjectManagerClient.prototype.AddControlFile = function(prj, file, pluginId, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -12599,25 +14412,24 @@ ProjectManagerClient.prototype.EnableMultiFileDiscardPublicSymbols = function(pr _defer.resolve(result); } }; - this.send_EnableMultiFileDiscardPublicSymbols(prj, configurationName, node, enabled); + this.send_AddControlFile(prj, file, pluginId); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_EnableMultiFileDiscardPublicSymbols(prj, configurationName, node, enabled); + this.send_AddControlFile(prj, file, pluginId); } }; -ProjectManagerClient.prototype.send_EnableMultiFileDiscardPublicSymbols = function(prj, configurationName, node, enabled) { +ProjectManagerClient.prototype.send_AddControlFile = function(prj, file, pluginId) { var output = new this.pClass(this.output); var params = { prj: prj, - configurationName: configurationName, - node: node, - enabled: enabled + file: file, + pluginId: pluginId }; - var args = new ProjectManager_EnableMultiFileDiscardPublicSymbols_args(params); + var args = new ProjectManager_AddControlFile_args(params); try { - output.writeMessageBegin('EnableMultiFileDiscardPublicSymbols', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('AddControlFile', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12631,7 +14443,7 @@ ProjectManagerClient.prototype.send_EnableMultiFileDiscardPublicSymbols = functi } }; -ProjectManagerClient.prototype.recv_EnableMultiFileDiscardPublicSymbols = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_AddControlFile = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12640,14 +14452,14 @@ ProjectManagerClient.prototype.recv_EnableMultiFileDiscardPublicSymbols = functi input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_EnableMultiFileDiscardPublicSymbols_result(); + var result = new ProjectManager_AddControlFile_result(); result.read(input); input.readMessageEnd(); callback(null); }; -ProjectManagerClient.prototype.IsMultiFileCompilationEnabled = function(prj, configurationName, node, callback) { +ProjectManagerClient.prototype.HasControlFileFor = function(prj, pluginId, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -12658,24 +14470,23 @@ ProjectManagerClient.prototype.IsMultiFileCompilationEnabled = function(prj, con _defer.resolve(result); } }; - this.send_IsMultiFileCompilationEnabled(prj, configurationName, node); + this.send_HasControlFileFor(prj, pluginId); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_IsMultiFileCompilationEnabled(prj, configurationName, node); + this.send_HasControlFileFor(prj, pluginId); } }; -ProjectManagerClient.prototype.send_IsMultiFileCompilationEnabled = function(prj, configurationName, node) { +ProjectManagerClient.prototype.send_HasControlFileFor = function(prj, pluginId) { var output = new this.pClass(this.output); var params = { prj: prj, - configurationName: configurationName, - node: node + pluginId: pluginId }; - var args = new ProjectManager_IsMultiFileCompilationEnabled_args(params); + var args = new ProjectManager_HasControlFileFor_args(params); try { - output.writeMessageBegin('IsMultiFileCompilationEnabled', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('HasControlFileFor', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12689,7 +14500,7 @@ ProjectManagerClient.prototype.send_IsMultiFileCompilationEnabled = function(prj } }; -ProjectManagerClient.prototype.recv_IsMultiFileCompilationEnabled = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_HasControlFileFor = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12698,17 +14509,17 @@ ProjectManagerClient.prototype.recv_IsMultiFileCompilationEnabled = function(inp input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_IsMultiFileCompilationEnabled_result(); + var result = new ProjectManager_HasControlFileFor_result(); result.read(input); input.readMessageEnd(); if (null !== result.success) { return callback(null, result.success); } - return callback('IsMultiFileCompilationEnabled failed: unknown result'); + return callback('HasControlFileFor failed: unknown result'); }; -ProjectManagerClient.prototype.IsMultiFileDiscardPublicSymbolsEnabled = function(prj, configurationName, node, callback) { +ProjectManagerClient.prototype.IsProjectConnectionsEnabled = function(callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -12719,24 +14530,19 @@ ProjectManagerClient.prototype.IsMultiFileDiscardPublicSymbolsEnabled = function _defer.resolve(result); } }; - this.send_IsMultiFileDiscardPublicSymbolsEnabled(prj, configurationName, node); + this.send_IsProjectConnectionsEnabled(); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_IsMultiFileDiscardPublicSymbolsEnabled(prj, configurationName, node); + this.send_IsProjectConnectionsEnabled(); } }; -ProjectManagerClient.prototype.send_IsMultiFileDiscardPublicSymbolsEnabled = function(prj, configurationName, node) { +ProjectManagerClient.prototype.send_IsProjectConnectionsEnabled = function() { var output = new this.pClass(this.output); - var params = { - prj: prj, - configurationName: configurationName, - node: node - }; - var args = new ProjectManager_IsMultiFileDiscardPublicSymbolsEnabled_args(params); + var args = new ProjectManager_IsProjectConnectionsEnabled_args(); try { - output.writeMessageBegin('IsMultiFileDiscardPublicSymbolsEnabled', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('IsProjectConnectionsEnabled', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12750,7 +14556,7 @@ ProjectManagerClient.prototype.send_IsMultiFileDiscardPublicSymbolsEnabled = fun } }; -ProjectManagerClient.prototype.recv_IsMultiFileDiscardPublicSymbolsEnabled = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_IsProjectConnectionsEnabled = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12759,17 +14565,17 @@ ProjectManagerClient.prototype.recv_IsMultiFileDiscardPublicSymbolsEnabled = fun input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_IsMultiFileDiscardPublicSymbolsEnabled_result(); + var result = new ProjectManager_IsProjectConnectionsEnabled_result(); result.read(input); input.readMessageEnd(); if (null !== result.success) { return callback(null, result.success); } - return callback('IsMultiFileDiscardPublicSymbolsEnabled failed: unknown result'); + return callback('IsProjectConnectionsEnabled failed: unknown result'); }; -ProjectManagerClient.prototype.GetToolArgumentsForConfiguration = function(prj, toolId, configurationName, callback) { +ProjectManagerClient.prototype.GetControlFilePlugins = function(callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -12780,24 +14586,19 @@ ProjectManagerClient.prototype.GetToolArgumentsForConfiguration = function(prj, _defer.resolve(result); } }; - this.send_GetToolArgumentsForConfiguration(prj, toolId, configurationName); + this.send_GetControlFilePlugins(); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetToolArgumentsForConfiguration(prj, toolId, configurationName); + this.send_GetControlFilePlugins(); } }; -ProjectManagerClient.prototype.send_GetToolArgumentsForConfiguration = function(prj, toolId, configurationName) { +ProjectManagerClient.prototype.send_GetControlFilePlugins = function() { var output = new this.pClass(this.output); - var params = { - prj: prj, - toolId: toolId, - configurationName: configurationName - }; - var args = new ProjectManager_GetToolArgumentsForConfiguration_args(params); + var args = new ProjectManager_GetControlFilePlugins_args(); try { - output.writeMessageBegin('GetToolArgumentsForConfiguration', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetControlFilePlugins', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12811,7 +14612,7 @@ ProjectManagerClient.prototype.send_GetToolArgumentsForConfiguration = function( } }; -ProjectManagerClient.prototype.recv_GetToolArgumentsForConfiguration = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetControlFilePlugins = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12820,17 +14621,17 @@ ProjectManagerClient.prototype.recv_GetToolArgumentsForConfiguration = function( input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetToolArgumentsForConfiguration_result(); + var result = new ProjectManager_GetControlFilePlugins_result(); result.read(input); input.readMessageEnd(); if (null !== result.success) { return callback(null, result.success); } - return callback('GetToolArgumentsForConfiguration failed: unknown result'); + return callback('GetControlFilePlugins failed: unknown result'); }; -ProjectManagerClient.prototype.ExpandArgVars = function(input, project, configurationName, throwOnFailure, callback) { +ProjectManagerClient.prototype.GetOptionsForProject = function(prj, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -12841,25 +14642,22 @@ ProjectManagerClient.prototype.ExpandArgVars = function(input, project, configur _defer.resolve(result); } }; - this.send_ExpandArgVars(input, project, configurationName, throwOnFailure); + this.send_GetOptionsForProject(prj); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_ExpandArgVars(input, project, configurationName, throwOnFailure); + this.send_GetOptionsForProject(prj); } }; -ProjectManagerClient.prototype.send_ExpandArgVars = function(input, project, configurationName, throwOnFailure) { +ProjectManagerClient.prototype.send_GetOptionsForProject = function(prj) { var output = new this.pClass(this.output); var params = { - input: input, - project: project, - configurationName: configurationName, - throwOnFailure: throwOnFailure + prj: prj }; - var args = new ProjectManager_ExpandArgVars_args(params); + var args = new ProjectManager_GetOptionsForProject_args(params); try { - output.writeMessageBegin('ExpandArgVars', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('GetOptionsForProject', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12873,7 +14671,7 @@ ProjectManagerClient.prototype.send_ExpandArgVars = function(input, project, con } }; -ProjectManagerClient.prototype.recv_ExpandArgVars = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_GetOptionsForProject = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12882,17 +14680,17 @@ ProjectManagerClient.prototype.recv_ExpandArgVars = function(input,mtype,rseqid) input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_ExpandArgVars_result(); + var result = new ProjectManager_GetOptionsForProject_result(); result.read(input); input.readMessageEnd(); if (null !== result.success) { return callback(null, result.success); } - return callback('ExpandArgVars failed: unknown result'); + return callback('GetOptionsForProject failed: unknown result'); }; -ProjectManagerClient.prototype.GetPresentationForOptionsAsJson = function(locale, callback) { +ProjectManagerClient.prototype.ApplyOptionsForProject = function(prj, options, callback) { this._seqid = this.new_seqid(); if (callback === undefined) { var _defer = Q.defer(); @@ -12903,22 +14701,23 @@ ProjectManagerClient.prototype.GetPresentationForOptionsAsJson = function(locale _defer.resolve(result); } }; - this.send_GetPresentationForOptionsAsJson(locale); + this.send_ApplyOptionsForProject(prj, options); return _defer.promise; } else { this._reqs[this.seqid()] = callback; - this.send_GetPresentationForOptionsAsJson(locale); + this.send_ApplyOptionsForProject(prj, options); } }; -ProjectManagerClient.prototype.send_GetPresentationForOptionsAsJson = function(locale) { +ProjectManagerClient.prototype.send_ApplyOptionsForProject = function(prj, options) { var output = new this.pClass(this.output); var params = { - locale: locale + prj: prj, + options: options }; - var args = new ProjectManager_GetPresentationForOptionsAsJson_args(params); + var args = new ProjectManager_ApplyOptionsForProject_args(params); try { - output.writeMessageBegin('GetPresentationForOptionsAsJson', Thrift.MessageType.CALL, this.seqid()); + output.writeMessageBegin('ApplyOptionsForProject', Thrift.MessageType.CALL, this.seqid()); args.write(output); output.writeMessageEnd(); return this.output.flush(); @@ -12932,7 +14731,7 @@ ProjectManagerClient.prototype.send_GetPresentationForOptionsAsJson = function(l } }; -ProjectManagerClient.prototype.recv_GetPresentationForOptionsAsJson = function(input,mtype,rseqid) { +ProjectManagerClient.prototype.recv_ApplyOptionsForProject = function(input,mtype,rseqid) { var callback = this._reqs[rseqid] || function() {}; delete this._reqs[rseqid]; if (mtype == Thrift.MessageType.EXCEPTION) { @@ -12941,17 +14740,14 @@ ProjectManagerClient.prototype.recv_GetPresentationForOptionsAsJson = function(i input.readMessageEnd(); return callback(x); } - var result = new ProjectManager_GetPresentationForOptionsAsJson_result(); + var result = new ProjectManager_ApplyOptionsForProject_result(); result.read(input); input.readMessageEnd(); - if (null !== result.e) { - return callback(result.e); - } if (null !== result.success) { return callback(null, result.success); } - return callback('GetPresentationForOptionsAsJson failed: unknown result'); + return callback('ApplyOptionsForProject failed: unknown result'); }; var ProjectManagerProcessor = exports.Processor = function(handler) { this._handler = handler; @@ -13618,6 +15414,48 @@ ProjectManagerProcessor.prototype.process_SaveEwpFile = function(seqid, input, o }); } }; +ProjectManagerProcessor.prototype.process_ReloadProject = function(seqid, input, output) { + var args = new ProjectManager_ReloadProject_args(); + args.read(input); + input.readMessageEnd(); + if (this._handler.ReloadProject.length === 1) { + Q.fcall(this._handler.ReloadProject.bind(this._handler), + args.project + ).then(function(result) { + var result_obj = new ProjectManager_ReloadProject_result({success: result}); + output.writeMessageBegin("ReloadProject", Thrift.MessageType.REPLY, seqid); + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }).catch(function (err) { + var result; + if (err instanceof ttypes.ProjectManagerError) { + result = new ProjectManager_ReloadProject_result(err); + output.writeMessageBegin("ReloadProject", Thrift.MessageType.REPLY, seqid); + } else { + result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("ReloadProject", Thrift.MessageType.EXCEPTION, seqid); + } + result.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } else { + this._handler.ReloadProject(args.project, function (err, result) { + var result_obj; + if ((err === null || typeof err === 'undefined') || err instanceof ttypes.ProjectManagerError) { + result_obj = new ProjectManager_ReloadProject_result((err !== null || typeof err === 'undefined') ? err : {success: result}); + output.writeMessageBegin("ReloadProject", Thrift.MessageType.REPLY, seqid); + } else { + result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("ReloadProject", Thrift.MessageType.EXCEPTION, seqid); + } + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } +}; ProjectManagerProcessor.prototype.process_SaveEwpFileAs = function(seqid, input, output) { var args = new ProjectManager_SaveEwpFileAs_args(); args.read(input); @@ -15323,11 +17161,12 @@ ProjectManagerProcessor.prototype.process_GetOptionsForNode = function(seqid, in var args = new ProjectManager_GetOptionsForNode_args(); args.read(input); input.readMessageEnd(); - if (this._handler.GetOptionsForNode.length === 3) { + if (this._handler.GetOptionsForNode.length === 4) { Q.fcall(this._handler.GetOptionsForNode.bind(this._handler), args.prj, args.node, - args.configurationName + args.configurationName, + args.optionIds ).then(function(result) { var result_obj = new ProjectManager_GetOptionsForNode_result({success: result}); output.writeMessageBegin("GetOptionsForNode", Thrift.MessageType.REPLY, seqid); @@ -15348,7 +17187,7 @@ ProjectManagerProcessor.prototype.process_GetOptionsForNode = function(seqid, in output.flush(); }); } else { - this._handler.GetOptionsForNode(args.prj, args.node, args.configurationName, function (err, result) { + this._handler.GetOptionsForNode(args.prj, args.node, args.configurationName, args.optionIds, function (err, result) { var result_obj; if ((err === null || typeof err === 'undefined') || err instanceof ttypes.ProjectManagerError) { result_obj = new ProjectManager_GetOptionsForNode_result((err !== null || typeof err === 'undefined') ? err : {success: result}); @@ -15367,10 +17206,11 @@ ProjectManagerProcessor.prototype.process_GetOptionsForConfiguration = function( var args = new ProjectManager_GetOptionsForConfiguration_args(); args.read(input); input.readMessageEnd(); - if (this._handler.GetOptionsForConfiguration.length === 2) { + if (this._handler.GetOptionsForConfiguration.length === 3) { Q.fcall(this._handler.GetOptionsForConfiguration.bind(this._handler), args.prj, - args.configurationName + args.configurationName, + args.optionIds ).then(function(result) { var result_obj = new ProjectManager_GetOptionsForConfiguration_result({success: result}); output.writeMessageBegin("GetOptionsForConfiguration", Thrift.MessageType.REPLY, seqid); @@ -15391,7 +17231,7 @@ ProjectManagerProcessor.prototype.process_GetOptionsForConfiguration = function( output.flush(); }); } else { - this._handler.GetOptionsForConfiguration(args.prj, args.configurationName, function (err, result) { + this._handler.GetOptionsForConfiguration(args.prj, args.configurationName, args.optionIds, function (err, result) { var result_obj; if ((err === null || typeof err === 'undefined') || err instanceof ttypes.ProjectManagerError) { result_obj = new ProjectManager_GetOptionsForConfiguration_result((err !== null || typeof err === 'undefined') ? err : {success: result}); @@ -15901,3 +17741,376 @@ ProjectManagerProcessor.prototype.process_GetPresentationForOptionsAsJson = func }); } }; +ProjectManagerProcessor.prototype.process_UpdateProjectConnections = function(seqid, input, output) { + var args = new ProjectManager_UpdateProjectConnections_args(); + args.read(input); + input.readMessageEnd(); + if (this._handler.UpdateProjectConnections.length === 1) { + Q.fcall(this._handler.UpdateProjectConnections.bind(this._handler), + args.prj + ).then(function(result) { + var result_obj = new ProjectManager_UpdateProjectConnections_result({success: result}); + output.writeMessageBegin("UpdateProjectConnections", Thrift.MessageType.REPLY, seqid); + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }).catch(function (err) { + var result; + result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("UpdateProjectConnections", Thrift.MessageType.EXCEPTION, seqid); + result.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } else { + this._handler.UpdateProjectConnections(args.prj, function (err, result) { + var result_obj; + if ((err === null || typeof err === 'undefined')) { + result_obj = new ProjectManager_UpdateProjectConnections_result((err !== null || typeof err === 'undefined') ? err : {success: result}); + output.writeMessageBegin("UpdateProjectConnections", Thrift.MessageType.REPLY, seqid); + } else { + result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("UpdateProjectConnections", Thrift.MessageType.EXCEPTION, seqid); + } + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } +}; +ProjectManagerProcessor.prototype.process_UpdateProjectConnection = function(seqid, input, output) { + var args = new ProjectManager_UpdateProjectConnection_args(); + args.read(input); + input.readMessageEnd(); + if (this._handler.UpdateProjectConnection.length === 2) { + Q.fcall(this._handler.UpdateProjectConnection.bind(this._handler), + args.prj, + args.file + ).then(function(result) { + var result_obj = new ProjectManager_UpdateProjectConnection_result({success: result}); + output.writeMessageBegin("UpdateProjectConnection", Thrift.MessageType.REPLY, seqid); + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }).catch(function (err) { + var result; + result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("UpdateProjectConnection", Thrift.MessageType.EXCEPTION, seqid); + result.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } else { + this._handler.UpdateProjectConnection(args.prj, args.file, function (err, result) { + var result_obj; + if ((err === null || typeof err === 'undefined')) { + result_obj = new ProjectManager_UpdateProjectConnection_result((err !== null || typeof err === 'undefined') ? err : {success: result}); + output.writeMessageBegin("UpdateProjectConnection", Thrift.MessageType.REPLY, seqid); + } else { + result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("UpdateProjectConnection", Thrift.MessageType.EXCEPTION, seqid); + } + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } +}; +ProjectManagerProcessor.prototype.process_RemoveMonitors = function(seqid, input, output) { + var args = new ProjectManager_RemoveMonitors_args(); + args.read(input); + input.readMessageEnd(); + if (this._handler.RemoveMonitors.length === 1) { + Q.fcall(this._handler.RemoveMonitors.bind(this._handler), + args.prj + ).then(function(result) { + var result_obj = new ProjectManager_RemoveMonitors_result({success: result}); + output.writeMessageBegin("RemoveMonitors", Thrift.MessageType.REPLY, seqid); + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }).catch(function (err) { + var result; + result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("RemoveMonitors", Thrift.MessageType.EXCEPTION, seqid); + result.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } else { + this._handler.RemoveMonitors(args.prj, function (err, result) { + var result_obj; + if ((err === null || typeof err === 'undefined')) { + result_obj = new ProjectManager_RemoveMonitors_result((err !== null || typeof err === 'undefined') ? err : {success: result}); + output.writeMessageBegin("RemoveMonitors", Thrift.MessageType.REPLY, seqid); + } else { + result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("RemoveMonitors", Thrift.MessageType.EXCEPTION, seqid); + } + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } +}; +ProjectManagerProcessor.prototype.process_EnableProjectConnections = function(seqid, input, output) { + var args = new ProjectManager_EnableProjectConnections_args(); + args.read(input); + input.readMessageEnd(); + if (this._handler.EnableProjectConnections.length === 1) { + Q.fcall(this._handler.EnableProjectConnections.bind(this._handler), + args.enable + ).then(function(result) { + var result_obj = new ProjectManager_EnableProjectConnections_result({success: result}); + output.writeMessageBegin("EnableProjectConnections", Thrift.MessageType.REPLY, seqid); + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }).catch(function (err) { + var result; + result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("EnableProjectConnections", Thrift.MessageType.EXCEPTION, seqid); + result.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } else { + this._handler.EnableProjectConnections(args.enable, function (err, result) { + var result_obj; + if ((err === null || typeof err === 'undefined')) { + result_obj = new ProjectManager_EnableProjectConnections_result((err !== null || typeof err === 'undefined') ? err : {success: result}); + output.writeMessageBegin("EnableProjectConnections", Thrift.MessageType.REPLY, seqid); + } else { + result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("EnableProjectConnections", Thrift.MessageType.EXCEPTION, seqid); + } + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } +}; +ProjectManagerProcessor.prototype.process_AddControlFile = function(seqid, input, output) { + var args = new ProjectManager_AddControlFile_args(); + args.read(input); + input.readMessageEnd(); + if (this._handler.AddControlFile.length === 3) { + Q.fcall(this._handler.AddControlFile.bind(this._handler), + args.prj, + args.file, + args.pluginId + ).then(function(result) { + var result_obj = new ProjectManager_AddControlFile_result({success: result}); + output.writeMessageBegin("AddControlFile", Thrift.MessageType.REPLY, seqid); + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }).catch(function (err) { + var result; + result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("AddControlFile", Thrift.MessageType.EXCEPTION, seqid); + result.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } else { + this._handler.AddControlFile(args.prj, args.file, args.pluginId, function (err, result) { + var result_obj; + if ((err === null || typeof err === 'undefined')) { + result_obj = new ProjectManager_AddControlFile_result((err !== null || typeof err === 'undefined') ? err : {success: result}); + output.writeMessageBegin("AddControlFile", Thrift.MessageType.REPLY, seqid); + } else { + result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("AddControlFile", Thrift.MessageType.EXCEPTION, seqid); + } + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } +}; +ProjectManagerProcessor.prototype.process_HasControlFileFor = function(seqid, input, output) { + var args = new ProjectManager_HasControlFileFor_args(); + args.read(input); + input.readMessageEnd(); + if (this._handler.HasControlFileFor.length === 2) { + Q.fcall(this._handler.HasControlFileFor.bind(this._handler), + args.prj, + args.pluginId + ).then(function(result) { + var result_obj = new ProjectManager_HasControlFileFor_result({success: result}); + output.writeMessageBegin("HasControlFileFor", Thrift.MessageType.REPLY, seqid); + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }).catch(function (err) { + var result; + result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("HasControlFileFor", Thrift.MessageType.EXCEPTION, seqid); + result.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } else { + this._handler.HasControlFileFor(args.prj, args.pluginId, function (err, result) { + var result_obj; + if ((err === null || typeof err === 'undefined')) { + result_obj = new ProjectManager_HasControlFileFor_result((err !== null || typeof err === 'undefined') ? err : {success: result}); + output.writeMessageBegin("HasControlFileFor", Thrift.MessageType.REPLY, seqid); + } else { + result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("HasControlFileFor", Thrift.MessageType.EXCEPTION, seqid); + } + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } +}; +ProjectManagerProcessor.prototype.process_IsProjectConnectionsEnabled = function(seqid, input, output) { + var args = new ProjectManager_IsProjectConnectionsEnabled_args(); + args.read(input); + input.readMessageEnd(); + if (this._handler.IsProjectConnectionsEnabled.length === 0) { + Q.fcall(this._handler.IsProjectConnectionsEnabled.bind(this._handler) + ).then(function(result) { + var result_obj = new ProjectManager_IsProjectConnectionsEnabled_result({success: result}); + output.writeMessageBegin("IsProjectConnectionsEnabled", Thrift.MessageType.REPLY, seqid); + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }).catch(function (err) { + var result; + result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("IsProjectConnectionsEnabled", Thrift.MessageType.EXCEPTION, seqid); + result.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } else { + this._handler.IsProjectConnectionsEnabled(function (err, result) { + var result_obj; + if ((err === null || typeof err === 'undefined')) { + result_obj = new ProjectManager_IsProjectConnectionsEnabled_result((err !== null || typeof err === 'undefined') ? err : {success: result}); + output.writeMessageBegin("IsProjectConnectionsEnabled", Thrift.MessageType.REPLY, seqid); + } else { + result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("IsProjectConnectionsEnabled", Thrift.MessageType.EXCEPTION, seqid); + } + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } +}; +ProjectManagerProcessor.prototype.process_GetControlFilePlugins = function(seqid, input, output) { + var args = new ProjectManager_GetControlFilePlugins_args(); + args.read(input); + input.readMessageEnd(); + if (this._handler.GetControlFilePlugins.length === 0) { + Q.fcall(this._handler.GetControlFilePlugins.bind(this._handler) + ).then(function(result) { + var result_obj = new ProjectManager_GetControlFilePlugins_result({success: result}); + output.writeMessageBegin("GetControlFilePlugins", Thrift.MessageType.REPLY, seqid); + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }).catch(function (err) { + var result; + result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("GetControlFilePlugins", Thrift.MessageType.EXCEPTION, seqid); + result.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } else { + this._handler.GetControlFilePlugins(function (err, result) { + var result_obj; + if ((err === null || typeof err === 'undefined')) { + result_obj = new ProjectManager_GetControlFilePlugins_result((err !== null || typeof err === 'undefined') ? err : {success: result}); + output.writeMessageBegin("GetControlFilePlugins", Thrift.MessageType.REPLY, seqid); + } else { + result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("GetControlFilePlugins", Thrift.MessageType.EXCEPTION, seqid); + } + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } +}; +ProjectManagerProcessor.prototype.process_GetOptionsForProject = function(seqid, input, output) { + var args = new ProjectManager_GetOptionsForProject_args(); + args.read(input); + input.readMessageEnd(); + if (this._handler.GetOptionsForProject.length === 1) { + Q.fcall(this._handler.GetOptionsForProject.bind(this._handler), + args.prj + ).then(function(result) { + var result_obj = new ProjectManager_GetOptionsForProject_result({success: result}); + output.writeMessageBegin("GetOptionsForProject", Thrift.MessageType.REPLY, seqid); + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }).catch(function (err) { + var result; + result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("GetOptionsForProject", Thrift.MessageType.EXCEPTION, seqid); + result.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } else { + this._handler.GetOptionsForProject(args.prj, function (err, result) { + var result_obj; + if ((err === null || typeof err === 'undefined')) { + result_obj = new ProjectManager_GetOptionsForProject_result((err !== null || typeof err === 'undefined') ? err : {success: result}); + output.writeMessageBegin("GetOptionsForProject", Thrift.MessageType.REPLY, seqid); + } else { + result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("GetOptionsForProject", Thrift.MessageType.EXCEPTION, seqid); + } + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } +}; +ProjectManagerProcessor.prototype.process_ApplyOptionsForProject = function(seqid, input, output) { + var args = new ProjectManager_ApplyOptionsForProject_args(); + args.read(input); + input.readMessageEnd(); + if (this._handler.ApplyOptionsForProject.length === 2) { + Q.fcall(this._handler.ApplyOptionsForProject.bind(this._handler), + args.prj, + args.options + ).then(function(result) { + var result_obj = new ProjectManager_ApplyOptionsForProject_result({success: result}); + output.writeMessageBegin("ApplyOptionsForProject", Thrift.MessageType.REPLY, seqid); + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }).catch(function (err) { + var result; + result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("ApplyOptionsForProject", Thrift.MessageType.EXCEPTION, seqid); + result.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } else { + this._handler.ApplyOptionsForProject(args.prj, args.options, function (err, result) { + var result_obj; + if ((err === null || typeof err === 'undefined')) { + result_obj = new ProjectManager_ApplyOptionsForProject_result((err !== null || typeof err === 'undefined') ? err : {success: result}); + output.writeMessageBegin("ApplyOptionsForProject", Thrift.MessageType.REPLY, seqid); + } else { + result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("ApplyOptionsForProject", Thrift.MessageType.EXCEPTION, seqid); + } + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } +}; diff --git a/src/thrift/bindings/ProjectManagerEventListener.d.ts b/src/thrift/bindings/ProjectManagerEventListener.d.ts new file mode 100644 index 0000000..a21d8af --- /dev/null +++ b/src/thrift/bindings/ProjectManagerEventListener.d.ts @@ -0,0 +1,39 @@ +/// +// +// Autogenerated by Thrift Compiler (0.14.0) +// +// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +// + +import thrift = require('thrift'); +import Thrift = thrift.Thrift; +import Q = thrift.Q; +import Int64 = require('node-int64'); +import shared_ttypes = require('./shared_types'); + + +import ttypes = require('./event_types'); +import EventId = ttypes.EventId +import EVENTMANAGER_ID = ttypes.EVENTMANAGER_ID +import ProjectManagerEvent = ttypes.ProjectManagerEvent +import HeartbeatService = require('./HeartbeatService'); + +declare class Client extends HeartbeatService.Client { + #output: thrift.TTransport; + #pClass: thrift.TProtocol; + #_seqid: number; + + constructor(output: thrift.TTransport, pClass: { new(trans: thrift.TTransport): thrift.TProtocol }); + + postEvent(event: ProjectManagerEvent): Q.Promise; + + postEvent(event: ProjectManagerEvent, callback?: (error: void, response: void)=>void): void; +} + +declare class Processor extends HeartbeatService.Processor { + #_handler: object; + + constructor(handler: object); + process(input: thrift.TProtocol, output: thrift.TProtocol): void; + process_postEvent(seqid: number, input: thrift.TProtocol, output: thrift.TProtocol): void; +} diff --git a/src/thrift/bindings/ProjectManagerEventListener.js b/src/thrift/bindings/ProjectManagerEventListener.js new file mode 100644 index 0000000..41a6536 --- /dev/null +++ b/src/thrift/bindings/ProjectManagerEventListener.js @@ -0,0 +1,217 @@ +// +// Autogenerated by Thrift Compiler (0.14.0) +// +// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +// +"use strict"; + +var thrift = require('thrift'); +var Thrift = thrift.Thrift; +var Q = thrift.Q; +var Int64 = require('node-int64'); + +var shared_ttypes = require('./shared_types'); + + +var HeartbeatService = require('./HeartbeatService'); +var HeartbeatServiceClient = HeartbeatService.Client; +var HeartbeatServiceProcessor = HeartbeatService.Processor; +var ttypes = require('./event_types'); +//HELPER FUNCTIONS AND STRUCTURES + +var ProjectManagerEventListener_postEvent_args = function(args) { + this.event = null; + if (args) { + if (args.event !== undefined && args.event !== null) { + this.event = new ttypes.ProjectManagerEvent(args.event); + } + } +}; +ProjectManagerEventListener_postEvent_args.prototype = {}; +ProjectManagerEventListener_postEvent_args.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == Thrift.Type.STRUCT) { + this.event = new ttypes.ProjectManagerEvent(); + this.event.read(input); + } else { + input.skip(ftype); + } + break; + case 0: + input.skip(ftype); + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManagerEventListener_postEvent_args.prototype.write = function(output) { + output.writeStructBegin('ProjectManagerEventListener_postEvent_args'); + if (this.event !== null && this.event !== undefined) { + output.writeFieldBegin('event', Thrift.Type.STRUCT, 1); + this.event.write(output); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManagerEventListener_postEvent_result = function(args) { +}; +ProjectManagerEventListener_postEvent_result.prototype = {}; +ProjectManagerEventListener_postEvent_result.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + if (ftype == Thrift.Type.STOP) { + break; + } + input.skip(ftype); + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManagerEventListener_postEvent_result.prototype.write = function(output) { + output.writeStructBegin('ProjectManagerEventListener_postEvent_result'); + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +var ProjectManagerEventListenerClient = exports.Client = function(output, pClass) { + this.output = output; + this.pClass = pClass; + this._seqid = 0; + this._reqs = {}; +}; +Thrift.inherits(ProjectManagerEventListenerClient, HeartbeatServiceClient); +ProjectManagerEventListenerClient.prototype.seqid = function() { return this._seqid; }; +ProjectManagerEventListenerClient.prototype.new_seqid = function() { return this._seqid += 1; }; + +ProjectManagerEventListenerClient.prototype.postEvent = function(event, callback) { + this._seqid = this.new_seqid(); + if (callback === undefined) { + var _defer = Q.defer(); + this._reqs[this.seqid()] = function(error, result) { + if (error) { + _defer.reject(error); + } else { + _defer.resolve(result); + } + }; + this.send_postEvent(event); + return _defer.promise; + } else { + this._reqs[this.seqid()] = callback; + this.send_postEvent(event); + } +}; + +ProjectManagerEventListenerClient.prototype.send_postEvent = function(event) { + var output = new this.pClass(this.output); + var params = { + event: event + }; + var args = new ProjectManagerEventListener_postEvent_args(params); + try { + output.writeMessageBegin('postEvent', Thrift.MessageType.CALL, this.seqid()); + args.write(output); + output.writeMessageEnd(); + return this.output.flush(); + } + catch (e) { + delete this._reqs[this.seqid()]; + if (typeof output.reset === 'function') { + output.reset(); + } + throw e; + } +}; + +ProjectManagerEventListenerClient.prototype.recv_postEvent = function(input,mtype,rseqid) { + var callback = this._reqs[rseqid] || function() {}; + delete this._reqs[rseqid]; + if (mtype == Thrift.MessageType.EXCEPTION) { + var x = new Thrift.TApplicationException(); + x.read(input); + input.readMessageEnd(); + return callback(x); + } + var result = new ProjectManagerEventListener_postEvent_result(); + result.read(input); + input.readMessageEnd(); + + callback(null); +}; +var ProjectManagerEventListenerProcessor = exports.Processor = function(handler) { + this._handler = handler; +}; +Thrift.inherits(ProjectManagerEventListenerProcessor, HeartbeatServiceProcessor); +ProjectManagerEventListenerProcessor.prototype.process = function(input, output) { + var r = input.readMessageBegin(); + if (this['process_' + r.fname]) { + return this['process_' + r.fname].call(this, r.rseqid, input, output); + } else { + input.skip(Thrift.Type.STRUCT); + input.readMessageEnd(); + var x = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN_METHOD, 'Unknown function ' + r.fname); + output.writeMessageBegin(r.fname, Thrift.MessageType.EXCEPTION, r.rseqid); + x.write(output); + output.writeMessageEnd(); + output.flush(); + } +}; +ProjectManagerEventListenerProcessor.prototype.process_postEvent = function(seqid, input, output) { + var args = new ProjectManagerEventListener_postEvent_args(); + args.read(input); + input.readMessageEnd(); + if (this._handler.postEvent.length === 1) { + Q.fcall(this._handler.postEvent.bind(this._handler), + args.event + ).then(function(result) { + var result_obj = new ProjectManagerEventListener_postEvent_result({success: result}); + output.writeMessageBegin("postEvent", Thrift.MessageType.REPLY, seqid); + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }).catch(function (err) { + var result; + result = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("postEvent", Thrift.MessageType.EXCEPTION, seqid); + result.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } else { + this._handler.postEvent(args.event, function (err, result) { + var result_obj; + if ((err === null || typeof err === 'undefined')) { + result_obj = new ProjectManagerEventListener_postEvent_result((err !== null || typeof err === 'undefined') ? err : {success: result}); + output.writeMessageBegin("postEvent", Thrift.MessageType.REPLY, seqid); + } else { + result_obj = new Thrift.TApplicationException(Thrift.TApplicationExceptionType.UNKNOWN, err.message); + output.writeMessageBegin("postEvent", Thrift.MessageType.EXCEPTION, seqid); + } + result_obj.write(output); + output.writeMessageEnd(); + output.flush(); + }); + } +}; diff --git a/src/thrift/bindings/SessionSynchronizer.d.ts b/src/thrift/bindings/SessionSynchronizer.d.ts index 97bafb0..89bfd69 100644 --- a/src/thrift/bindings/SessionSynchronizer.d.ts +++ b/src/thrift/bindings/SessionSynchronizer.d.ts @@ -21,6 +21,7 @@ import CoreLowLevelResult = ttypes.CoreLowLevelResult import WhatNext = ttypes.WhatNext import CoreStatus = ttypes.CoreStatus import Tools = ttypes.Tools +import AMP_VERSION = ttypes.AMP_VERSION import CORES_REGISTRY_SERVICE = ttypes.CORES_REGISTRY_SERVICE import PARTNER_REGISTRY_SERVICE = ttypes.PARTNER_REGISTRY_SERVICE import EVENT_BUS_SERVICE = ttypes.EVENT_BUS_SERVICE diff --git a/src/thrift/bindings/SoftCTI.d.ts b/src/thrift/bindings/SoftCTI.d.ts index fec6752..fc6aea6 100644 --- a/src/thrift/bindings/SoftCTI.d.ts +++ b/src/thrift/bindings/SoftCTI.d.ts @@ -20,6 +20,7 @@ import CoreLowLevelResult = ttypes.CoreLowLevelResult import WhatNext = ttypes.WhatNext import CoreStatus = ttypes.CoreStatus import Tools = ttypes.Tools +import AMP_VERSION = ttypes.AMP_VERSION import CORES_REGISTRY_SERVICE = ttypes.CORES_REGISTRY_SERVICE import PARTNER_REGISTRY_SERVICE = ttypes.PARTNER_REGISTRY_SERVICE import EVENT_BUS_SERVICE = ttypes.EVENT_BUS_SERVICE diff --git a/src/thrift/bindings/ampsync_types.d.ts b/src/thrift/bindings/ampsync_types.d.ts index 490bef8..724fed0 100644 --- a/src/thrift/bindings/ampsync_types.d.ts +++ b/src/thrift/bindings/ampsync_types.d.ts @@ -150,6 +150,8 @@ declare class FailedToStartPartner extends Thrift.TException { write(input: Object): void; } +declare var AMP_VERSION: number; + declare var CORES_REGISTRY_SERVICE: string; declare var PARTNER_REGISTRY_SERVICE: string; diff --git a/src/thrift/bindings/ampsync_types.js b/src/thrift/bindings/ampsync_types.js index c9a4ece..f68c570 100644 --- a/src/thrift/bindings/ampsync_types.js +++ b/src/thrift/bindings/ampsync_types.js @@ -815,6 +815,7 @@ FailedToStartPartner.prototype.write = function(output) { return; }; +ttypes.AMP_VERSION = 1; ttypes.CORES_REGISTRY_SERVICE = 'com.iar.cspy.ampsync.cores_registry'; ttypes.PARTNER_REGISTRY_SERVICE = 'com.iar.cspy.ampsync.partner_registry'; ttypes.EVENT_BUS_SERVICE = 'com.iar.cspy.ampsync.eventbus'; diff --git a/src/thrift/bindings/event_types.d.ts b/src/thrift/bindings/event_types.d.ts new file mode 100644 index 0000000..3edad85 --- /dev/null +++ b/src/thrift/bindings/event_types.d.ts @@ -0,0 +1,35 @@ +// +// Autogenerated by Thrift Compiler (0.14.0) +// +// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +// +import thrift = require('thrift'); +import Thrift = thrift.Thrift; +import Q = thrift.Q; +import Int64 = require('node-int64'); +import shared_ttypes = require('./shared_types'); + + + +declare enum EventId { + kReloadWorkspace = 0, + kReloadProject = 1, + kReloadConfiguration = 2, + kProjectAdded = 3, + kConfigurationAdded = 4, + kProjectRemoved = 5, + kConfigurationRemoved = 6, + kReloadTree = 7, +} + +declare class ProjectManagerEvent { + public eventId: EventId; + public project: string; + public configurations: string[]; + + constructor(args?: { eventId: EventId; project: string; configurations: string[]; }); + read(input: Object): void; + write(input: Object): void; +} + +declare var EVENTMANAGER_ID: string; diff --git a/src/thrift/bindings/event_types.js b/src/thrift/bindings/event_types.js new file mode 100644 index 0000000..baac0b4 --- /dev/null +++ b/src/thrift/bindings/event_types.js @@ -0,0 +1,129 @@ +// +// Autogenerated by Thrift Compiler (0.14.0) +// +// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +// +"use strict"; + +var thrift = require('thrift'); +var Thrift = thrift.Thrift; +var Q = thrift.Q; +var Int64 = require('node-int64'); + +var shared_ttypes = require('./shared_types'); + + +var ttypes = module.exports = {}; +ttypes.EventId = { + '0' : 'kReloadWorkspace', + 'kReloadWorkspace' : 0, + '1' : 'kReloadProject', + 'kReloadProject' : 1, + '2' : 'kReloadConfiguration', + 'kReloadConfiguration' : 2, + '3' : 'kProjectAdded', + 'kProjectAdded' : 3, + '4' : 'kConfigurationAdded', + 'kConfigurationAdded' : 4, + '5' : 'kProjectRemoved', + 'kProjectRemoved' : 5, + '6' : 'kConfigurationRemoved', + 'kConfigurationRemoved' : 6, + '7' : 'kReloadTree', + 'kReloadTree' : 7 +}; +var ProjectManagerEvent = module.exports.ProjectManagerEvent = function(args) { + this.eventId = null; + this.project = null; + this.configurations = null; + if (args) { + if (args.eventId !== undefined && args.eventId !== null) { + this.eventId = args.eventId; + } + if (args.project !== undefined && args.project !== null) { + this.project = args.project; + } + if (args.configurations !== undefined && args.configurations !== null) { + this.configurations = Thrift.copyList(args.configurations, [null]); + } + } +}; +ProjectManagerEvent.prototype = {}; +ProjectManagerEvent.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == Thrift.Type.I32) { + this.eventId = input.readI32(); + } else { + input.skip(ftype); + } + break; + case 2: + if (ftype == Thrift.Type.STRING) { + this.project = input.readString(); + } else { + input.skip(ftype); + } + break; + case 3: + if (ftype == Thrift.Type.LIST) { + this.configurations = []; + var _rtmp31 = input.readListBegin(); + var _size0 = _rtmp31.size || 0; + for (var _i2 = 0; _i2 < _size0; ++_i2) { + var elem3 = null; + elem3 = input.readString(); + this.configurations.push(elem3); + } + input.readListEnd(); + } else { + input.skip(ftype); + } + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ProjectManagerEvent.prototype.write = function(output) { + output.writeStructBegin('ProjectManagerEvent'); + if (this.eventId !== null && this.eventId !== undefined) { + output.writeFieldBegin('eventId', Thrift.Type.I32, 1); + output.writeI32(this.eventId); + output.writeFieldEnd(); + } + if (this.project !== null && this.project !== undefined) { + output.writeFieldBegin('project', Thrift.Type.STRING, 2); + output.writeString(this.project); + output.writeFieldEnd(); + } + if (this.configurations !== null && this.configurations !== undefined) { + output.writeFieldBegin('configurations', Thrift.Type.LIST, 3); + output.writeListBegin(Thrift.Type.STRING, this.configurations.length); + for (var iter4 in this.configurations) { + if (this.configurations.hasOwnProperty(iter4)) { + iter4 = this.configurations[iter4]; + output.writeString(iter4); + } + } + output.writeListEnd(); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + +ttypes.EVENTMANAGER_ID = 'com.iar.thrift.service.eventmgr'; diff --git a/src/thrift/bindings/frontend_types.d.ts b/src/thrift/bindings/frontend_types.d.ts index d646e6a..c6ef4b2 100644 --- a/src/thrift/bindings/frontend_types.d.ts +++ b/src/thrift/bindings/frontend_types.d.ts @@ -8,6 +8,7 @@ import Thrift = thrift.Thrift; import Q = thrift.Q; import Int64 = require('node-int64'); import shared_ttypes = require('./shared_types'); +import themes_ttypes = require('./themes_types'); diff --git a/src/thrift/bindings/frontend_types.js b/src/thrift/bindings/frontend_types.js index d861b2c..685b654 100644 --- a/src/thrift/bindings/frontend_types.js +++ b/src/thrift/bindings/frontend_types.js @@ -11,6 +11,7 @@ var Q = thrift.Q; var Int64 = require('node-int64'); var shared_ttypes = require('./shared_types'); +var themes_ttypes = require('./themes_types'); var ttypes = module.exports = {}; diff --git a/src/thrift/bindings/projectmanager_types.d.ts b/src/thrift/bindings/projectmanager_types.d.ts index 0b701fa..e455f19 100644 --- a/src/thrift/bindings/projectmanager_types.d.ts +++ b/src/thrift/bindings/projectmanager_types.d.ts @@ -37,6 +37,7 @@ declare enum NodeType { Invalid = 0, Group = 1, File = 2, + ControlFile = 3, } /** @@ -54,6 +55,7 @@ declare enum OptionType { List = 3, Radio = 4, CheckList = 5, + BuildActions = 6, } /** @@ -119,8 +121,11 @@ declare class Toolchain { public id: string; public name: string; public tools: ToolDefinition[]; + public toolkitDir: string; + public templatesDir: string; + public modifiable: boolean; - constructor(args?: { id: string; name: string; tools: ToolDefinition[]; }); + constructor(args?: { id: string; name: string; tools: ToolDefinition[]; toolkitDir: string; templatesDir: string; modifiable: boolean; }); read(input: Object): void; write(input: Object): void; } @@ -133,8 +138,9 @@ declare class Configuration { public name: string; public toolchainId: string; public isDebug: boolean; + public isControlFileManaged: boolean; - constructor(args?: { name: string; toolchainId: string; isDebug: boolean; }); + constructor(args?: { name: string; toolchainId: string; isDebug: boolean; isControlFileManaged: boolean; }); read(input: Object): void; write(input: Object): void; } @@ -263,4 +269,17 @@ declare class BuildResult { write(input: Object): void; } +/** + * A simple representation of the control file plugins to use in GUI:s + */ +declare class ControlFilePlugin { + public name: string; + public filefilter: string; + public isInternal: boolean; + + constructor(args?: { name: string; filefilter: string; isInternal: boolean; }); + read(input: Object): void; + write(input: Object): void; +} + declare var PROJECTMANAGER_ID: string; diff --git a/src/thrift/bindings/projectmanager_types.js b/src/thrift/bindings/projectmanager_types.js index 4b2eb0a..a0615bb 100644 --- a/src/thrift/bindings/projectmanager_types.js +++ b/src/thrift/bindings/projectmanager_types.js @@ -38,7 +38,9 @@ ttypes.NodeType = { '1' : 'Group', 'Group' : 1, '2' : 'File', - 'File' : 2 + 'File' : 2, + '3' : 'ControlFile', + 'ControlFile' : 3 }; ttypes.OptionType = { '0' : 'Check', @@ -52,7 +54,9 @@ ttypes.OptionType = { '4' : 'Radio', 'Radio' : 4, '5' : 'CheckList', - 'CheckList' : 5 + 'CheckList' : 5, + '6' : 'BuildActions', + 'BuildActions' : 6 }; ttypes.FileCollectionType = { '0' : 'ProjFiles', @@ -341,6 +345,9 @@ var Toolchain = module.exports.Toolchain = function(args) { this.id = null; this.name = null; this.tools = null; + this.toolkitDir = null; + this.templatesDir = null; + this.modifiable = null; if (args) { if (args.id !== undefined && args.id !== null) { this.id = args.id; @@ -351,6 +358,15 @@ var Toolchain = module.exports.Toolchain = function(args) { if (args.tools !== undefined && args.tools !== null) { this.tools = Thrift.copyList(args.tools, [ttypes.ToolDefinition]); } + if (args.toolkitDir !== undefined && args.toolkitDir !== null) { + this.toolkitDir = args.toolkitDir; + } + if (args.templatesDir !== undefined && args.templatesDir !== null) { + this.templatesDir = args.templatesDir; + } + if (args.modifiable !== undefined && args.modifiable !== null) { + this.modifiable = args.modifiable; + } } }; Toolchain.prototype = {}; @@ -394,6 +410,27 @@ Toolchain.prototype.read = function(input) { input.skip(ftype); } break; + case 4: + if (ftype == Thrift.Type.STRING) { + this.toolkitDir = input.readString(); + } else { + input.skip(ftype); + } + break; + case 5: + if (ftype == Thrift.Type.STRING) { + this.templatesDir = input.readString(); + } else { + input.skip(ftype); + } + break; + case 6: + if (ftype == Thrift.Type.BOOL) { + this.modifiable = input.readBool(); + } else { + input.skip(ftype); + } + break; default: input.skip(ftype); } @@ -427,6 +464,21 @@ Toolchain.prototype.write = function(output) { output.writeListEnd(); output.writeFieldEnd(); } + if (this.toolkitDir !== null && this.toolkitDir !== undefined) { + output.writeFieldBegin('toolkitDir', Thrift.Type.STRING, 4); + output.writeString(this.toolkitDir); + output.writeFieldEnd(); + } + if (this.templatesDir !== null && this.templatesDir !== undefined) { + output.writeFieldBegin('templatesDir', Thrift.Type.STRING, 5); + output.writeString(this.templatesDir); + output.writeFieldEnd(); + } + if (this.modifiable !== null && this.modifiable !== undefined) { + output.writeFieldBegin('modifiable', Thrift.Type.BOOL, 6); + output.writeBool(this.modifiable); + output.writeFieldEnd(); + } output.writeFieldStop(); output.writeStructEnd(); return; @@ -436,6 +488,7 @@ var Configuration = module.exports.Configuration = function(args) { this.name = null; this.toolchainId = null; this.isDebug = null; + this.isControlFileManaged = null; if (args) { if (args.name !== undefined && args.name !== null) { this.name = args.name; @@ -446,6 +499,9 @@ var Configuration = module.exports.Configuration = function(args) { if (args.isDebug !== undefined && args.isDebug !== null) { this.isDebug = args.isDebug; } + if (args.isControlFileManaged !== undefined && args.isControlFileManaged !== null) { + this.isControlFileManaged = args.isControlFileManaged; + } } }; Configuration.prototype = {}; @@ -480,6 +536,13 @@ Configuration.prototype.read = function(input) { input.skip(ftype); } break; + case 4: + if (ftype == Thrift.Type.BOOL) { + this.isControlFileManaged = input.readBool(); + } else { + input.skip(ftype); + } + break; default: input.skip(ftype); } @@ -506,6 +569,11 @@ Configuration.prototype.write = function(output) { output.writeBool(this.isDebug); output.writeFieldEnd(); } + if (this.isControlFileManaged !== null && this.isControlFileManaged !== undefined) { + output.writeFieldBegin('isControlFileManaged', Thrift.Type.BOOL, 4); + output.writeBool(this.isControlFileManaged); + output.writeFieldEnd(); + } output.writeFieldStop(); output.writeStructEnd(); return; @@ -1419,4 +1487,83 @@ BuildResult.prototype.write = function(output) { return; }; +var ControlFilePlugin = module.exports.ControlFilePlugin = function(args) { + this.name = null; + this.filefilter = null; + this.isInternal = null; + if (args) { + if (args.name !== undefined && args.name !== null) { + this.name = args.name; + } + if (args.filefilter !== undefined && args.filefilter !== null) { + this.filefilter = args.filefilter; + } + if (args.isInternal !== undefined && args.isInternal !== null) { + this.isInternal = args.isInternal; + } + } +}; +ControlFilePlugin.prototype = {}; +ControlFilePlugin.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == Thrift.Type.STRING) { + this.name = input.readString(); + } else { + input.skip(ftype); + } + break; + case 2: + if (ftype == Thrift.Type.STRING) { + this.filefilter = input.readString(); + } else { + input.skip(ftype); + } + break; + case 3: + if (ftype == Thrift.Type.BOOL) { + this.isInternal = input.readBool(); + } else { + input.skip(ftype); + } + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ControlFilePlugin.prototype.write = function(output) { + output.writeStructBegin('ControlFilePlugin'); + if (this.name !== null && this.name !== undefined) { + output.writeFieldBegin('name', Thrift.Type.STRING, 1); + output.writeString(this.name); + output.writeFieldEnd(); + } + if (this.filefilter !== null && this.filefilter !== undefined) { + output.writeFieldBegin('filefilter', Thrift.Type.STRING, 2); + output.writeString(this.filefilter); + output.writeFieldEnd(); + } + if (this.isInternal !== null && this.isInternal !== undefined) { + output.writeFieldBegin('isInternal', Thrift.Type.BOOL, 3); + output.writeBool(this.isInternal); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; + ttypes.PROJECTMANAGER_ID = 'com.iar.thrift.service.projectmanager'; diff --git a/src/thrift/bindings/themes_types.d.ts b/src/thrift/bindings/themes_types.d.ts new file mode 100644 index 0000000..68136b4 --- /dev/null +++ b/src/thrift/bindings/themes_types.d.ts @@ -0,0 +1,86 @@ +// +// Autogenerated by Thrift Compiler (0.14.0) +// +// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +// +import thrift = require('thrift'); +import Thrift = thrift.Thrift; +import Q = thrift.Q; +import Int64 = require('node-int64'); + + +declare enum ThriftDisplayElement { + kWindowBg = 0, + kText = 1, + kDistinctText = 2, + kSelectedText = 3, + kSelectedBackground = 4, + kInactiveSelectionText = 5, + kInactiveSelectionBackground = 6, + kValueChangedText = 7, + kDisabledText = 8, + kCurrentPc = 9, + kCurrentPcStatementOnly = 10, + kAlternativePc = 11, + kBreakpoint = 12, + kSignalGreen = 13, + kSignalYellow = 14, + kSignalRed = 15, + kSideMargin = 16, + kHighlightedBackground = 17, + kHighlightedText = 18, + kBtnFace = 19, + kBtnShadow = 20, + k3DDkShadow = 21, + kTabBg = 22, + kBtnText = 23, + kBtnHighlight = 24, + kGrayText = 25, + kCaptionText = 26, + kActiveCaptionBackground = 27, + kInactiveCaptionBackground = 28, + kActiveCaptionBackgroundGradient = 29, + kInactiveCaptionBackgroundGradient = 30, + kInactiveCaptionText = 31, + kHotLinkNormalText = 32, + kBarFace = 33, + kBarShadow = 34, + kBarHighlight = 35, + kToolbarGradientDark = 36, + kToolbarGradientLight = 37, + kHighlightGradientLight = 38, + kHighlightGradientDark = 39, + kPressedToolbarBtnBg = 40, + kTooltipText = 41, + kTooltipBg = 42, + kScrollbarBg = 43, + kScrollbarFg = 44, + kScrollbarHighlight = 45, + kScrollbarDrag = 46, + kMdiClientBg = 47, + kWatchFamilyBg = 48, + kStackFamilyBg = 49, + kDisasmFamilyBg = 50, + kMemoryFamilyBg = 51, + kBreakpointFamilyBg = 52, + kTraceFamilyBg = 53, + kProfilerFamilyBg = 54, + kInterruptFamilyBg = 55, + kStateFamilyBg = 56, + kDataLogFamilyBg = 57, + kPowerLogFamilyBg = 58, + kEventLogFamilyBg = 59, + kRegisterFamilyBg = 60, + kGrid = 61, + kNumDisplayElements = 62, +} + +declare class ColorSchema { + public R: number; + public G: number; + public B: number; + + constructor(args?: { R: number; G: number; B: number; }); + read(input: Object): void; + write(input: Object): void; +} diff --git a/src/thrift/bindings/themes_types.js b/src/thrift/bindings/themes_types.js new file mode 100644 index 0000000..371e3c1 --- /dev/null +++ b/src/thrift/bindings/themes_types.js @@ -0,0 +1,221 @@ +// +// Autogenerated by Thrift Compiler (0.14.0) +// +// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING +// +"use strict"; + +var thrift = require('thrift'); +var Thrift = thrift.Thrift; +var Q = thrift.Q; +var Int64 = require('node-int64'); + + +var ttypes = module.exports = {}; +ttypes.ThriftDisplayElement = { + '0' : 'kWindowBg', + 'kWindowBg' : 0, + '1' : 'kText', + 'kText' : 1, + '2' : 'kDistinctText', + 'kDistinctText' : 2, + '3' : 'kSelectedText', + 'kSelectedText' : 3, + '4' : 'kSelectedBackground', + 'kSelectedBackground' : 4, + '5' : 'kInactiveSelectionText', + 'kInactiveSelectionText' : 5, + '6' : 'kInactiveSelectionBackground', + 'kInactiveSelectionBackground' : 6, + '7' : 'kValueChangedText', + 'kValueChangedText' : 7, + '8' : 'kDisabledText', + 'kDisabledText' : 8, + '9' : 'kCurrentPc', + 'kCurrentPc' : 9, + '10' : 'kCurrentPcStatementOnly', + 'kCurrentPcStatementOnly' : 10, + '11' : 'kAlternativePc', + 'kAlternativePc' : 11, + '12' : 'kBreakpoint', + 'kBreakpoint' : 12, + '13' : 'kSignalGreen', + 'kSignalGreen' : 13, + '14' : 'kSignalYellow', + 'kSignalYellow' : 14, + '15' : 'kSignalRed', + 'kSignalRed' : 15, + '16' : 'kSideMargin', + 'kSideMargin' : 16, + '17' : 'kHighlightedBackground', + 'kHighlightedBackground' : 17, + '18' : 'kHighlightedText', + 'kHighlightedText' : 18, + '19' : 'kBtnFace', + 'kBtnFace' : 19, + '20' : 'kBtnShadow', + 'kBtnShadow' : 20, + '21' : 'k3DDkShadow', + 'k3DDkShadow' : 21, + '22' : 'kTabBg', + 'kTabBg' : 22, + '23' : 'kBtnText', + 'kBtnText' : 23, + '24' : 'kBtnHighlight', + 'kBtnHighlight' : 24, + '25' : 'kGrayText', + 'kGrayText' : 25, + '26' : 'kCaptionText', + 'kCaptionText' : 26, + '27' : 'kActiveCaptionBackground', + 'kActiveCaptionBackground' : 27, + '28' : 'kInactiveCaptionBackground', + 'kInactiveCaptionBackground' : 28, + '29' : 'kActiveCaptionBackgroundGradient', + 'kActiveCaptionBackgroundGradient' : 29, + '30' : 'kInactiveCaptionBackgroundGradient', + 'kInactiveCaptionBackgroundGradient' : 30, + '31' : 'kInactiveCaptionText', + 'kInactiveCaptionText' : 31, + '32' : 'kHotLinkNormalText', + 'kHotLinkNormalText' : 32, + '33' : 'kBarFace', + 'kBarFace' : 33, + '34' : 'kBarShadow', + 'kBarShadow' : 34, + '35' : 'kBarHighlight', + 'kBarHighlight' : 35, + '36' : 'kToolbarGradientDark', + 'kToolbarGradientDark' : 36, + '37' : 'kToolbarGradientLight', + 'kToolbarGradientLight' : 37, + '38' : 'kHighlightGradientLight', + 'kHighlightGradientLight' : 38, + '39' : 'kHighlightGradientDark', + 'kHighlightGradientDark' : 39, + '40' : 'kPressedToolbarBtnBg', + 'kPressedToolbarBtnBg' : 40, + '41' : 'kTooltipText', + 'kTooltipText' : 41, + '42' : 'kTooltipBg', + 'kTooltipBg' : 42, + '43' : 'kScrollbarBg', + 'kScrollbarBg' : 43, + '44' : 'kScrollbarFg', + 'kScrollbarFg' : 44, + '45' : 'kScrollbarHighlight', + 'kScrollbarHighlight' : 45, + '46' : 'kScrollbarDrag', + 'kScrollbarDrag' : 46, + '47' : 'kMdiClientBg', + 'kMdiClientBg' : 47, + '48' : 'kWatchFamilyBg', + 'kWatchFamilyBg' : 48, + '49' : 'kStackFamilyBg', + 'kStackFamilyBg' : 49, + '50' : 'kDisasmFamilyBg', + 'kDisasmFamilyBg' : 50, + '51' : 'kMemoryFamilyBg', + 'kMemoryFamilyBg' : 51, + '52' : 'kBreakpointFamilyBg', + 'kBreakpointFamilyBg' : 52, + '53' : 'kTraceFamilyBg', + 'kTraceFamilyBg' : 53, + '54' : 'kProfilerFamilyBg', + 'kProfilerFamilyBg' : 54, + '55' : 'kInterruptFamilyBg', + 'kInterruptFamilyBg' : 55, + '56' : 'kStateFamilyBg', + 'kStateFamilyBg' : 56, + '57' : 'kDataLogFamilyBg', + 'kDataLogFamilyBg' : 57, + '58' : 'kPowerLogFamilyBg', + 'kPowerLogFamilyBg' : 58, + '59' : 'kEventLogFamilyBg', + 'kEventLogFamilyBg' : 59, + '60' : 'kRegisterFamilyBg', + 'kRegisterFamilyBg' : 60, + '61' : 'kGrid', + 'kGrid' : 61, + '62' : 'kNumDisplayElements', + 'kNumDisplayElements' : 62 +}; +var ColorSchema = module.exports.ColorSchema = function(args) { + this.R = null; + this.G = null; + this.B = null; + if (args) { + if (args.R !== undefined && args.R !== null) { + this.R = args.R; + } + if (args.G !== undefined && args.G !== null) { + this.G = args.G; + } + if (args.B !== undefined && args.B !== null) { + this.B = args.B; + } + } +}; +ColorSchema.prototype = {}; +ColorSchema.prototype.read = function(input) { + input.readStructBegin(); + while (true) { + var ret = input.readFieldBegin(); + var ftype = ret.ftype; + var fid = ret.fid; + if (ftype == Thrift.Type.STOP) { + break; + } + switch (fid) { + case 1: + if (ftype == Thrift.Type.I32) { + this.R = input.readI32(); + } else { + input.skip(ftype); + } + break; + case 2: + if (ftype == Thrift.Type.I32) { + this.G = input.readI32(); + } else { + input.skip(ftype); + } + break; + case 3: + if (ftype == Thrift.Type.I32) { + this.B = input.readI32(); + } else { + input.skip(ftype); + } + break; + default: + input.skip(ftype); + } + input.readFieldEnd(); + } + input.readStructEnd(); + return; +}; + +ColorSchema.prototype.write = function(output) { + output.writeStructBegin('ColorSchema'); + if (this.R !== null && this.R !== undefined) { + output.writeFieldBegin('R', Thrift.Type.I32, 1); + output.writeI32(this.R); + output.writeFieldEnd(); + } + if (this.G !== null && this.G !== undefined) { + output.writeFieldBegin('G', Thrift.Type.I32, 2); + output.writeI32(this.G); + output.writeFieldEnd(); + } + if (this.B !== null && this.B !== undefined) { + output.writeFieldBegin('B', Thrift.Type.I32, 3); + output.writeI32(this.B); + output.writeFieldEnd(); + } + output.writeFieldStop(); + output.writeStructEnd(); + return; +}; +