IHost is a .NET interface that contains properties and methods to obtain information about the host environment (Quantacula Studio or Quantacula.com) and communicate information back to the host. This document is mainly useful for developers building Quantacula Extensions. Extensions are typically passed an instance of IHost in their Initialize method, and this instance is also available via their Host property.
Returns the folder where Quantacula Studio was installed.
Returns the folder where Quantacula Studio application data is stored. Extensions can create sub-folders under DataFolder for their local storage needs.
Returns the name that the Quantacula Studio user entered when first running the software.
Returns true if the host environment is Quantacula.com and not Quantacula Studio.
Returns the Quantacula Studio "Q-Number" (version number), or 0 if the environment is Quantacula.com.
void DataUpdateCompleted(bool completedOK)
Historical Data Sources should call this method when a bulk data update operation is completed. If the update was canceled or experienced an error, pass false in the completedOK parameter.
void DataUpdateMessage(string msg)
Historical Data Sources should call this method during a bulk data update to communicate the state of the update operation to Quantacula Studio. The message is displayed in the bulk update log output.
public void DisplayErrorMessage(string msg)
In Quantacula Studio, surfaces the message in the msg parameter as a message box presented to the user.
void UpdateStreamingStatus(string msg, Color color)
Streaming Data Sources should call this method to indicate a change in the status of the streaming data service.