CApplication

Available since framework version 1.0.

Defined in : CApplication.con
(this file must be included in your application in order to have access)

Description:

The base for every remote GUI Application. You've noticed that the application has a "C" instead of the usual "R"(Remote). That is because the application class doesn't have an instance on the client, and has a role only for the server application management. "C" comes from "Concept".

A remote GUI application has three phases Init, Run and Done.

Properties

Sets or gets the main form for the application
Sets the debug call back function

Methods

Set the current Concept Applicaton as a parent for a given web application idetified by key
This function is used to minimize the network traffic
This is the standard contructor for this class and should not be used directly
Tells the client to spawn itself, and execute another application in the debug mode, on the current server; this function is intended to be used by IDEs only
Tells the client to spawn itself, and execute another application on the current server
Tells the client that the current application ended its execution
This function is used to minimize the network traffic
Gets the data set by [SetCookie] asociated with the current user and current host
TODO: Document this
Initializes the application on the remote client
TODO: Document this
TODO: Document this
TODO: Document this
TODO: Document this
Tells the client to show a message box
TODO: Document this
Tells the client to show a question message box and waits for a response (Yes, No or Close)
Pings the client machine
Queries the client for information
TODO: Document this
Executes a system command on the client
Remove the child web application idetified by key, previously added by AddWebChild
Request a file from the client machine
Run
Starts the main loop for the remote application
Sends a cookie to the client
Sends a virtual cookie to the client
Sends a file to the client
TODO: Document this
Set a cookie on the client side containing the given data
TODO: Document this

Example
include RForm.con

class MyFrom extends RForm {
	function MyForm(Owner) {
		super(Owner);
	}
}

class Main {
	function Main() {
			try {
				var Application=new CApplication(new MyForm(null));

				Application.Init();
				Application.Run();
				Application.Done();
			} catch (var Exception) {
				echo Exception;
			}
	}
}