Class tcustomapplication

Unit

Declaration

type tcustomapplication = class(tmsecomponent)

Description

This item has no description.

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;

This item has no description.

Protected foptions: applicationoptionsty;

This item has no description.

Protected fthread: threadty;

This item has no description.

Protected fstate: applicationstatesty;

This item has no description.

Protected fwaitcount: integer;

This item has no description.

Protected fserial: card32;

This item has no description.

Protected fnoignorewaitevents: integer;

This item has no description.

Protected fonterminatedlist: tnotifylist;

This item has no description.

Protected fonterminatequerylist: tonterminatequerylist;

This item has no description.

Protected fonidlelist: tonidlelist;

This item has no description.

Protected fonapplicationeventlist: tonapplicationeventlist;

This item has no description.

Protected ftimertriggercount: integer;

This item has no description.

Methods

Protected procedure receiveevent(const event: tobjectevent); override;

This item has no description.

Protected procedure flusheventbuffer;

This item has no description.

Protected procedure doidle;

This item has no description.

Protected procedure sethighrestimer(const avalue: boolean); virtual; abstract;

This item has no description.

Protected procedure dopostevent(const aevent: tmseevent); virtual; abstract;

This item has no description.

Protected function getevents: integer; virtual; abstract;

This item has no description.

Protected procedure doeventloop(const once: boolean); virtual; abstract;

This item has no description.

Protected procedure incidlecount;

This item has no description.

Protected procedure dobeforerun; virtual;

This item has no description.

Protected procedure doafterrun; virtual;

This item has no description.

Protected procedure dowakeup(sender: tobject);

This item has no description.

Protected procedure internalinitialize; virtual;

This item has no description.

Protected procedure internaldeinitialize; virtual;

This item has no description.

Protected procedure objecteventdestroyed(const sender: tobjectevent); virtual;

This item has no description.

Protected procedure resettimertrigger;

This item has no description.

Public constructor create(aowner: tcomponent); override;

This item has no description.

Public destructor destroy; override;

This item has no description.

Public procedure beforedestruction() override;

This item has no description.

Public procedure initialize;

This item has no description.

Public procedure deinitialize;

This item has no description.

Public procedure beginhighrestimer;

This item has no description.

Public procedure endhighrestimer;

This item has no description.

Public function procid: procidty;

This item has no description.

Public function getserial(): card32;

This item has no description.

Public function createdatamodule(instanceclass: msecomponentclassty; var reference): tmsecomponent;

This item has no description.

Public procedure run;

This item has no description.

Public function running: boolean;

This item has no description.

Public procedure processmessages; virtual;

This item has no description.

Public function idle: boolean; virtual;

This item has no description.

Public function modallevel: integer; virtual; abstract;

This item has no description.

Public procedure postevent(event: tmseevent; const aoptions: posteventoptionsty = []);

This item has no description.

Public function checkoverload(const asleepus: integer = 100000): boolean;

This item has no description.

Public procedure handleexception(sender: tobject = nil; const leadingtext: msestring = '');

This item has no description.

Public procedure showexception(e: exception; const leadingtext: msestring = ''); virtual; abstract;

This item has no description.

Public procedure errormessage(const amessage: msestring); virtual; abstract;

This item has no description.

Public procedure registeronterminated(const method: notifyeventty);

This item has no description.

Public procedure unregisteronterminated(const method: notifyeventty);

This item has no description.

Public procedure registeronterminate(const method: terminatequeryeventty);

This item has no description.

Public procedure unregisteronterminate(const method: terminatequeryeventty);

This item has no description.

Public procedure registeronidle(const method: idleeventty);

This item has no description.

Public procedure unregisteronidle(const method: idleeventty);

This item has no description.

Public procedure registerapplicationeventhandler( const method: applicationeventhandlereventty);

This item has no description.

Public procedure unregisterapplicationeventhandler( const method: applicationeventhandlereventty);

This item has no description.

Public procedure settimer(const us: integer); virtual;

This item has no description.

Public function islockedthread: boolean;

This item has no description.

Public function islockedmainthread: boolean;

This item has no description.

Public function trylock: boolean;

This item has no description.

Public function lock: boolean;

This item has no description.

Public function unlock: boolean;

This item has no description.

Public function unlockall: integer virtual;

This item has no description.

Public procedure relockall(count: integer) virtual;

This item has no description.

Public procedure lockifnotmainthread;

This item has no description.

Public procedure unlockifnotmainthread;

This item has no description.

Public function synchronize(const proc: proceventty; const quiet: boolean = false; const aoptions: posteventoptionsty = []): boolean;

This item has no description.

Public function synchronize(const proc: synchronizeeventty; const data: pointer; const quiet: boolean = false; const aoptions: posteventoptionsty = []): boolean;

This item has no description.

Public function synchronize(const proc: synchronizeprocty; const data: pointer; const quiet: boolean = false; const aoptions: posteventoptionsty = []): boolean;

This item has no description.

Public procedure queueasynccall(const proc: proceventty; const aoptions: posteventoptionsty = []);

This item has no description.

Public procedure queueasynccall(const proc: synchronizeeventty; const data: pointer; const aoptions: posteventoptionsty = []);

This item has no description.

Public procedure queueasynccall(const proc: synchronizeprocty; const data: pointer; const aoptions: posteventoptionsty = []);

This item has no description.

Public procedure releaseobject(const aobject: tobject);

This item has no description.

Public function ismainthread: boolean;

This item has no description.

Public function islockthread: boolean;

This item has no description.

Public procedure waitforthread(athread: tmsethread);

This item has no description.

Public function semwait(var sem: semty; timeoutusec: integer): syserrorty;

This item has no description.

Public procedure wakeupmainthread;

This item has no description.

Public procedure langchanged; virtual;

This item has no description.

Public procedure beginwait(const aprocessmessages: boolean = false); virtual;

This item has no description.

Public procedure endwait; virtual;

This item has no description.

Public function waitescaped: boolean; virtual;

This item has no description.

Public procedure idlesleep(const asleepus: integer);

This item has no description.

Public function candefocus(const caller: tobject=nil): boolean; virtual;

This item has no description.

Properties

Protected property eventlist: teventlist read feventlist;

This item has no description.

Public property highrestimer: boolean read gethighrestimer;

This item has no description.

Public property applicationname: msestring read fapplicationname write fapplicationname;

This item has no description.

Public property terminated: boolean read getterminated write setterminated;

This item has no description.

Public property mainthread: threadty read fthread;

This item has no description.

Public property lockthread: threadty read flockthread;

This item has no description.

Public property lockcount: integer read flockcount;

This item has no description.

Public property exceptioncount: integer read fexceptioncount;

This item has no description.

Public property options: applicationoptionsty read foptions write foptions;

This item has no description.

Public property onexception: exceptioneventty read fonexception write fonexception;

This item has no description.


Generated by PasDoc 0.17.0.snapshot.