Class tcustomapplication

Unit

Declaration

type tcustomapplication = class(tmsecomponent)

Description

No description available, ancestor tmsecomponent description follows

Hierarchy

Overview

Fields

Protected flockcount: integer;
Protected foptions: applicationoptionsty;
Protected fthread: threadty;
Protected fstate: applicationstatesty;
Protected fwaitcount: integer;
Protected fserial: card32;
Protected fnoignorewaitevents: integer;
Protected fonterminatedlist: tnotifylist;
Protected fonterminatequerylist: tonterminatequerylist;
Protected fonidlelist: tonidlelist;
Protected fonapplicationeventlist: tonapplicationeventlist;
Protected ftimertriggercount: integer;

Methods

Protected procedure receiveevent(const event: tobjectevent); override;
Protected procedure flusheventbuffer;
Protected procedure doidle;
Protected procedure sethighrestimer(const avalue: boolean); virtual; abstract;
Protected procedure dopostevent(const aevent: tmseevent); virtual; abstract;
Protected function getevents: integer; virtual; abstract;
Protected procedure doeventloop(const once: boolean); virtual; abstract;
Protected procedure incidlecount;
Protected procedure dobeforerun; virtual;
Protected procedure doafterrun; virtual;
Protected procedure dowakeup(sender: tobject);
Protected procedure internalinitialize; virtual;
Protected procedure internaldeinitialize; virtual;
Protected procedure objecteventdestroyed(const sender: tobjectevent); virtual;
Protected procedure resettimertrigger;
Public constructor create(aowner: tcomponent); override;
Public destructor destroy; override;
Public procedure beforedestruction() override;
Public procedure initialize;
Public procedure deinitialize;
Public procedure beginhighrestimer;
Public procedure endhighrestimer;
Public function procid: procidty;
Public function getserial(): card32;
Public function createdatamodule(instanceclass: msecomponentclassty; var reference): tmsecomponent;
Public procedure run;
Public function running: boolean;
Public procedure processmessages; virtual;
Public function idle: boolean; virtual;
Public function modallevel: integer; virtual; abstract;
Public procedure postevent(event: tmseevent; const aoptions: posteventoptionsty = []);
Public function checkoverload(const asleepus: integer = 100000): boolean;
Public procedure handleexception(sender: tobject = nil; const leadingtext: msestring = '');
Public procedure showexception(e: exception; const leadingtext: msestring = ''); virtual; abstract;
Public procedure errormessage(const amessage: msestring); virtual; abstract;
Public procedure registeronterminated(const method: notifyeventty);
Public procedure unregisteronterminated(const method: notifyeventty);
Public procedure registeronterminate(const method: terminatequeryeventty);
Public procedure unregisteronterminate(const method: terminatequeryeventty);
Public procedure registeronidle(const method: idleeventty);
Public procedure unregisteronidle(const method: idleeventty);
Public procedure registerapplicationeventhandler( const method: applicationeventhandlereventty);
Public procedure unregisterapplicationeventhandler( const method: applicationeventhandlereventty);
Public procedure settimer(const us: integer); virtual;
Public function islockedthread: boolean;
Public function islockedmainthread: boolean;
Public function trylock: boolean;
Public function lock: boolean;
Public function unlock: boolean;
Public function unlockall: integer virtual;
Public procedure relockall(count: integer) virtual;
Public procedure lockifnotmainthread;
Public procedure unlockifnotmainthread;
Public function synchronize(const proc: proceventty; const quiet: boolean = false; const aoptions: posteventoptionsty = []): boolean;
Public function synchronize(const proc: synchronizeeventty; const data: pointer; const quiet: boolean = false; const aoptions: posteventoptionsty = []): boolean;
Public function synchronize(const proc: synchronizeprocty; const data: pointer; const quiet: boolean = false; const aoptions: posteventoptionsty = []): boolean;
Public procedure queueasynccall(const proc: proceventty; const aoptions: posteventoptionsty = []);
Public procedure queueasynccall(const proc: synchronizeeventty; const data: pointer; const aoptions: posteventoptionsty = []);
Public procedure queueasynccall(const proc: synchronizeprocty; const data: pointer; const aoptions: posteventoptionsty = []);
Public procedure releaseobject(const aobject: tobject);
Public function ismainthread: boolean;
Public function islockthread: boolean;
Public procedure waitforthread(athread: tmsethread);
Public function semwait(var sem: semty; timeoutusec: integer): syserrorty;
Public procedure wakeupmainthread;
Public procedure langchanged; virtual;
Public procedure beginwait(const aprocessmessages: boolean = false); virtual;
Public procedure endwait; virtual;
Public function waitescaped: boolean; virtual;
Public procedure idlesleep(const asleepus: integer);
Public function candefocus(const caller: tobject=nil): boolean; virtual;

Properties

Protected property eventlist: teventlist read feventlist;
Public property highrestimer: boolean read gethighrestimer;
Public property applicationname: msestring read fapplicationname write fapplicationname;
Public property terminated: boolean read getterminated write setterminated;
Public property mainthread: threadty read fthread;
Public property lockthread: threadty read flockthread;
Public property lockcount: integer read flockcount;
Public property exceptioncount: integer read fexceptioncount;
Public property options: applicationoptionsty read foptions write foptions;
Public property onexception: exceptioneventty read fonexception write fonexception;

Description

Fields

Protected flockcount: integer;
 
Protected foptions: applicationoptionsty;
 
Protected fthread: threadty;
 
Protected fstate: applicationstatesty;
 
Protected fwaitcount: integer;
 
Protected fserial: card32;
 
Protected fnoignorewaitevents: integer;
 
Protected fonterminatedlist: tnotifylist;
 
Protected fonterminatequerylist: tonterminatequerylist;
 
Protected fonidlelist: tonidlelist;
 
Protected fonapplicationeventlist: tonapplicationeventlist;
 
Protected ftimertriggercount: integer;
 

Methods

Protected procedure receiveevent(const event: tobjectevent); override;
 
Protected procedure flusheventbuffer;
 
Protected procedure doidle;
 
Protected procedure sethighrestimer(const avalue: boolean); virtual; abstract;
 
Protected procedure dopostevent(const aevent: tmseevent); virtual; abstract;
 
Protected function getevents: integer; virtual; abstract;
 
Protected procedure doeventloop(const once: boolean); virtual; abstract;
 
Protected procedure incidlecount;
 
Protected procedure dobeforerun; virtual;
 
Protected procedure doafterrun; virtual;
 
Protected procedure dowakeup(sender: tobject);
 
Protected procedure internalinitialize; virtual;
 
Protected procedure internaldeinitialize; virtual;
 
Protected procedure objecteventdestroyed(const sender: tobjectevent); virtual;
 
Protected procedure resettimertrigger;
 
Public constructor create(aowner: tcomponent); override;
 
Public destructor destroy; override;
 
Public procedure beforedestruction() override;
 
Public procedure initialize;
 
Public procedure deinitialize;
 
Public procedure beginhighrestimer;
 
Public procedure endhighrestimer;
 
Public function procid: procidty;
 
Public function getserial(): card32;
 
Public function createdatamodule(instanceclass: msecomponentclassty; var reference): tmsecomponent;
 
Public procedure run;
 
Public function running: boolean;
 
Public procedure processmessages; virtual;
 
Public function idle: boolean; virtual;
 
Public function modallevel: integer; virtual; abstract;
 
Public procedure postevent(event: tmseevent; const aoptions: posteventoptionsty = []);
 
Public function checkoverload(const asleepus: integer = 100000): boolean;
 
Public procedure handleexception(sender: tobject = nil; const leadingtext: msestring = '');
 
Public procedure showexception(e: exception; const leadingtext: msestring = ''); virtual; abstract;
 
Public procedure errormessage(const amessage: msestring); virtual; abstract;
 
Public procedure registeronterminated(const method: notifyeventty);
 
Public procedure unregisteronterminated(const method: notifyeventty);
 
Public procedure registeronterminate(const method: terminatequeryeventty);
 
Public procedure unregisteronterminate(const method: terminatequeryeventty);
 
Public procedure registeronidle(const method: idleeventty);
 
Public procedure unregisteronidle(const method: idleeventty);
 
Public procedure registerapplicationeventhandler( const method: applicationeventhandlereventty);
 
Public procedure unregisterapplicationeventhandler( const method: applicationeventhandlereventty);
 
Public procedure settimer(const us: integer); virtual;
 
Public function islockedthread: boolean;
 
Public function islockedmainthread: boolean;
 
Public function trylock: boolean;
 
Public function lock: boolean;
 
Public function unlock: boolean;
 
Public function unlockall: integer virtual;
 
Public procedure relockall(count: integer) virtual;
 
Public procedure lockifnotmainthread;
 
Public procedure unlockifnotmainthread;
 
Public function synchronize(const proc: proceventty; const quiet: boolean = false; const aoptions: posteventoptionsty = []): boolean;
 
Public function synchronize(const proc: synchronizeeventty; const data: pointer; const quiet: boolean = false; const aoptions: posteventoptionsty = []): boolean;
 
Public function synchronize(const proc: synchronizeprocty; const data: pointer; const quiet: boolean = false; const aoptions: posteventoptionsty = []): boolean;
 
Public procedure queueasynccall(const proc: proceventty; const aoptions: posteventoptionsty = []);
 
Public procedure queueasynccall(const proc: synchronizeeventty; const data: pointer; const aoptions: posteventoptionsty = []);
 
Public procedure queueasynccall(const proc: synchronizeprocty; const data: pointer; const aoptions: posteventoptionsty = []);
 
Public procedure releaseobject(const aobject: tobject);
 
Public function ismainthread: boolean;
 
Public function islockthread: boolean;
 
Public procedure waitforthread(athread: tmsethread);
 
Public function semwait(var sem: semty; timeoutusec: integer): syserrorty;
 
Public procedure wakeupmainthread;
 
Public procedure langchanged; virtual;
 
Public procedure beginwait(const aprocessmessages: boolean = false); virtual;
 
Public procedure endwait; virtual;
 
Public function waitescaped: boolean; virtual;
 
Public procedure idlesleep(const asleepus: integer);
 
Public function candefocus(const caller: tobject=nil): boolean; virtual;
 

Properties

Protected property eventlist: teventlist read feventlist;
 
Public property highrestimer: boolean read gethighrestimer;
 
Public property applicationname: msestring read fapplicationname write fapplicationname;
 
Public property terminated: boolean read getterminated write setterminated;
 
Public property mainthread: threadty read fthread;
 
Public property lockthread: threadty read flockthread;
 
Public property lockcount: integer read flockcount;
 
Public property exceptioncount: integer read fexceptioncount;
 
Public property options: applicationoptionsty read foptions write foptions;
 
Public property onexception: exceptioneventty read fonexception write fonexception;
 

Generated by PasDoc 0.16.0.