it.unipmn.di.Meeting.Core.ICore |
it.unipmn.di.Meeting.Core.Core |
ICore is an interface allowing components to get access to Core methods.
ICore è un’interfaccia che permette ai componenti di accedere a metodi della classe Core.
ICore | ICore is an interface allowing components to get access to Core methods. |
Functions | |
removeNetworkComponent | This method is usually called by a component that wants to be removed from the list of network components. |
removeLocalComponent | This method is usually called by a component that wants to be removed from the list of local components (connected through LocalConnection). |
addNetworkComponent | This method is usually called by a component that wants to be added to the list of network components. |
addLocalComponent | This method is usually called by a component that wants to be added to the list of local components (connected through LocalConnection). |
disconnectNetwork | This method fully disconnects all network components and the Connector itself. |
disconnectLocal | This method fully disconnects all local components and the Connector itself. |
openLocal | not fully implemented |
openNetwork | This method opens a network connection. |
connectNetwork | This method fully connects all already added network components and the Connector itself. |
connectLocal | This method fully connects all already added local components and the Connector itself. |
uploadFile | This method uploads a file of type(s) fileTypes to the address specified by URL, after having set the callbacks. |
downloadFile | This method downloads a file of name name from the address specified by URL, after having set the callbacks. |
function removeNetworkComponent ( component: IClientComponent ) :Void
This method is usually called by a component that wants to be removed from the list of network components.
Calling this method causes the connection to close.
Questo metodo viene richiamato solitamente da un componente che vuole essere rimosso dalla lista dei componenti di rete.
La chiamata al metodo comporta la chiusura della connessione.
component | {IClientComponent} the component instance / l’istanza del componente |
function removeLocalComponent ( component: IClientComponent ):Void
This method is usually called by a component that wants to be removed from the list of local components (connected through LocalConnection).
Calling this method causes the connection to close.
Questo metodo viene richiamato solitamente da un componente che vuole essere rimosso dalla lista dei componenti di locali (collegati tramite LocalConnection).
La chiamata al metodo comporta la chiusura della connessione.
component | {IClientComponent} the component instance / l’istanza del componente |
function addNetworkComponent ( component: IClientComponent ):Void
This method is usually called by a component that wants to be added to the list of network components.
Calling this method causes the component to connect if the Connector is already connected.
Questo metodo viene richiamato solitamente da un componente che vuole essere aggiunto alla lista dei componenti di rete.
La chiamata al metodo comporta la connessione del componente se in precendeza era stata effettuata la connessione del Connector.
component | {IClientComponent} the component instance / l’istanza del componente |
function addLocalComponent ( component: IClientComponent ):Void
This method is usually called by a component that wants to be added to the list of local components (connected through LocalConnection).
Calling this method causes the component to connect if the Connector is already connected.
Questo metodo viene richiamato solitamente da un componente che vuole essere aggiunto alla lista dei componenti locali (collegati tramite LocalConnection).
La chiamata al metodo comporta la connessione del componente se in precendeza era stata effettuata la connessione del Connector.
component | {IClientComponent} the component instance / l’istanza del componente |
function openNetwork ( uri: String, params: Object ):IConnector
This method opens a network connection.
Questo metodo apre una connessione di rete.
URI | {String} destination URI / URI di destinazione |
params | {Object} parameters passed to the server on connection phase / paramentri passati al server nella fase di connessione |
{IConnector} the generated Connector instance / l’istanza del Connector che è stato generato
function uploadFile ( fileTypes: Array, url: String, callback: Object ):Void
This method uploads a file of type(s) fileTypes to the address specified by URL, after having set the callbacks.
The callbacks let to know how the transfer task is going on and to get error information.
Questo metodo effettua l’upload di un file di tipo/i fileTypes all’indirizzo URL dopo aver settato le callback.
Le callback permettono di sapere come procede il trasferimento e le informazioni di errore.
fileTypes | {Array} array containing the allowed file types / array contenente i tipi di file accettati |
URL | {String} destination URL of the file URL di destinazione del file |
callback | {Object} contains the methods needed for managing the transfer / contiene i metodi necessari alla gestione del trasferimento |
function downloadFile( url: String, callback: Object, name: String ):Void
This method downloads a file of name name from the address specified by URL, after having set the callbacks.
The callbacks let to know how the transfer task is going on and to get error information.
Questo metodo effettua il download di un file dal nome name dall’indirizzo URL dopo aver settato le callback.
Le callback permettono di sapere come procede il trasferimento e le informazioni di errore.
name | {String} filename |
URL | {String} destination URL of the file / URL di destinazione del file |
callback | {Object} contains the methods needed for managing the transfer / contiene i metodi necessari alla gestione del trasferimento |
This method is usually called by a component that wants to be removed from the list of network components.
function removeNetworkComponent ( component: IClientComponent ) :Void
This method is usually called by a component that wants to be removed from the list of local components (connected through LocalConnection).
function removeLocalComponent ( component: IClientComponent ):Void
This method is usually called by a component that wants to be added to the list of network components.
function addNetworkComponent ( component: IClientComponent ):Void
This method is usually called by a component that wants to be added to the list of local components (connected through LocalConnection).
function addLocalComponent ( component: IClientComponent ):Void
This method fully disconnects all network components and the Connector itself.
function disconnectNetwork ():Void
This method fully disconnects all local components and the Connector itself.
function disconnectLocal ():Void
not fully implemented
function openLocal ( uri: String ):Void
This method opens a network connection.
function openNetwork ( uri: String, params: Object ):IConnector
This method fully connects all already added network components and the Connector itself.
function connectNetwork ():Void
This method fully connects all already added local components and the Connector itself.
function connectLocal ():Void
This method uploads a file of type(s) fileTypes to the address specified by URL, after having set the callbacks.
function uploadFile ( fileTypes: Array, url: String, callback: Object ):Void
This method downloads a file of name name from the address specified by URL, after having set the callbacks.
function downloadFile( url: String, callback: Object, name: String ):Void