Concept Framework 1.0 documentation Contents | Index

CApplication

Name Version Deprecated
CApplication version 1.0 no

Defined in : CApplication.con
(this file must be included in your application in order to have access, unless you use a child class of CApplication that includes this file)

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:
ApplicationForm Sets or gets the main form for the application
ShellDebug Sets the debug call back function

Methods:
AddWebChild Set the current Concept Applicaton as a parent for a given web application idetified by key
CApplication This is the standard contructor for this class and should not be used directly
ClientDebugShell 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
ClientShell Tells the client to spawn itself, and execute another application on the current server
Done Tells the client that the current application ended its execution
Init Initializes the application on the remote client
MessageBox Tells the client to show a message box
MessageYesNo Tells the client to show a question message box and waits for a response (Yes, No or Close)
Ping Pings the client machine
Query Queries the client for information
RemoteCommand Executes a system command on the client
RemoveWebChild Remove the child web application idetified by key, previously added by AddWebChild
RequestFile Request a file from the client machine
Run Starts the main loop for the remote application
SendCookie Sends a cookie to the client
SendCookieContent Sends a virtual cookie to the client
SendFile Sends a file to the client


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;
}
}
}



Documented by Eduard Suica, generation time: Thu Jan 03 17:32:20 2008 GMT(c)2007 RadGs Software