Concept Framework 2.2 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
BeginNonCritical This function is used to minimize the network traffic
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
EndNonCritical This function is used to minimize the network traffic
GetCookie Gets the data set by [SetCookie] asociated with the current user and current host
GlobalFlag TODO: Document this
Init Initializes the application on the remote client
Input TODO: Document this
Iterate TODO: Document this
Login TODO: Document this
Message TODO: Document this
MessageBox Tells the client to show a message box
MessagePending TODO: Document this
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
RegisterDebugWebChild TODO: Document this
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
SetApplicationForm TODO: Document this
SetCookie Set a cookie on the client side containing the given data
SetGlobalFlag 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;
}
}
}



Documented by Eduard Suica, generation time: Sun Jan 27 18:15:11 2013 GMT(c)2013 Devronium Applications