Inheritance diagram for os::Application:
Public Member Functions | |
Application (const char *pzMimeType) | |
virtual | ~Application () |
uint32 | GetQualifiers () |
Returnes the current state of keyboards qualifiers. | |
virtual void | HandleMessage (Message *pcMessage) |
Handle a message targeted at this handler. | |
virtual void | __reserved1__ () |
virtual void | __reserved2__ () |
virtual void | __reserved3__ () |
virtual void | __reserved4__ () |
virtual void | __reserved5__ () |
virtual void | __reserved6__ () |
virtual void | __reserved7__ () |
virtual void | __reserved8__ () |
virtual void | __reserved9__ () |
virtual void | __reserved10__ () |
void | PushCursor (mouse_ptr_mode eMode, void *pImage, int nWidth, int nHeight, const IPoint &cHotSpot=IPoint(0, 0)) |
void | PopCursor () |
bigtime_t | GetIdleTime () |
void | GetKeyboardConfig (String *pcKeymapName, int *pnKeyDelay, int *pnKeyRepeat) |
status_t | SetKeymap (const char *pzName) |
status_t | SetKeyboardTimings (int nDelay, int nRepeat) |
int | GetScreenModeCount () |
int | GetScreenModeInfo (int nIndex, screen_mode *psMode) |
void | SetWindowDecorator (const char *pzPath) |
void | CommitColorConfig () |
thread_id | Run () |
Entry point for the message loop. | |
port_id | GetServerPort () const |
port_id | GetAppPort () const |
Return the appserver message port. | |
const Catalog * | GetCatalog () const |
Get the default string catalog. | |
void | SetCatalog (Catalog *pcCatalog) |
Set the default string catalog. | |
bool | SetCatalog (const String &cCatalogName) |
Set the default string catalog. | |
Locale * | GetApplicationLocale () const |
Get current locale. | |
void | SetApplicationLocale (const Locale &pcLocale) |
Change current locale. | |
void | RegisterKeyEvent (const os::KeyboardEvent &) |
void | UnregisterKeyEvent (const os::String &cEvent) |
int | GetCurrentKeyShortcuts (std::vector< os::KeyboardEvent > *pcTable) |
Static Public Member Functions | |
static Application * | GetInstance () |
Get the (one and only) instance of the Application class. | |
Friends | |
class | Window |
class | Desktop |
class | Bitmap |
class | Sprite |
class | View |
class | Font |
class | AppserverConfig |
Classes | |
class | Private |
Application::Application | ( | const char * | pzMimeType | ) |
Application::~Application | ( | ) | [virtual] |
Application * Application::GetInstance | ( | ) | [static] |
When the Application class is instantiated it will assign a pointer to the instance to a static member that can be obtained through this function. Many other classes expect this function to return a valid pointer, so it is importen that you instantiate the Application class once (and only once) before calling any other functions in the native AtheOS API.
uint32 Application::GetQualifiers | ( | ) |
Sends a requester to the appserver to obtain the current state of keyboard qualifiers.
void Application::HandleMessage | ( | Message * | pcMessage | ) | [virtual] |
pcMessage
is also available through os::Looper::GetCurrentMessage() and os::Looper::DetachCurrentMessage() until this member returns. This is normally not very usefull for HandleMessage() itself but it can be convinient for other members called from HandleMessage() in case they need data from the message that was not passed on from HandleMessage(). pcMessage | The message that should be handled. This message will be deleted by the looper when HandleMessage() returns unless you detach it with os::Looper::DetachCurrentMessage(), |
Reimplemented from os::Handler.
void Application::__reserved1__ | ( | ) | [virtual] |
void Application::__reserved2__ | ( | ) | [virtual] |
void Application::__reserved3__ | ( | ) | [virtual] |
void Application::__reserved4__ | ( | ) | [virtual] |
void Application::__reserved5__ | ( | ) | [virtual] |
void Application::__reserved6__ | ( | ) | [virtual] |
void Application::__reserved7__ | ( | ) | [virtual] |
void Application::__reserved8__ | ( | ) | [virtual] |
void Application::__reserved9__ | ( | ) | [virtual] |
void Application::__reserved10__ | ( | ) | [virtual] |
void Application::PushCursor | ( | mouse_ptr_mode | eMode, | |
void * | pImage, | |||
int | nWidth, | |||
int | nHeight, | |||
const IPoint & | cHotSpot = IPoint(0, 0) | |||
) |
void Application::PopCursor | ( | ) |
bigtime_t Application::GetIdleTime | ( | ) |
void Application::GetKeyboardConfig | ( | String * | pcKeymapName, | |
int * | pnKeyDelay, | |||
int * | pnKeyRepeat | |||
) |
status_t Application::SetKeymap | ( | const char * | pzName | ) |
status_t Application::SetKeyboardTimings | ( | int | nDelay, | |
int | nRepeat | |||
) |
int Application::GetScreenModeCount | ( | ) |
int Application::GetScreenModeInfo | ( | int | nIndex, | |
screen_mode * | psMode | |||
) |
void Application::SetWindowDecorator | ( | const char * | pzPath | ) |
void Application::CommitColorConfig | ( | ) |
thread_id Application::Run | ( | void | ) | [virtual] |
The Application class is different from other loopers in that it does not spawn a new thread when the Run() member is called. Instead the Run() member directly enter the message loop, and does not return until the message loop quits.
Reimplemented from os::Looper.
port_id Application::GetServerPort | ( | ) | const |
port_id Application::GetAppPort | ( | ) | const |
When contructed the Application class will establish a connection to the application server. The appserver will create an message port and spawn a thread that will handle application-level operation on behave of the Application class. This function returnes the message port that connect the Application object with the corresponding thread in the application server
const Catalog * Application::GetCatalog | ( | ) | const |
This function returns the string catalog that was set with SetCatalog().
void Application::SetCatalog | ( | Catalog * | pcCatalog | ) |
This function sets the string catalog that is returned by GetCatalog().
bool Application::SetCatalog | ( | const String & | cCatalogName | ) |
This function sets the string catalog that is returned by GetCatalog().
Locale * Application::GetApplicationLocale | ( | ) | const |
This function returns the default locale that is used by this application. Unless you change it using SetApplicationLocale, the application locale will be the same as the system's default locale (as set by Locale prefs).
void Application::SetApplicationLocale | ( | const Locale & | cLocale | ) |
This function changes the default locale that is used by this application. Normally, you shouldn't use this function, as the locale will be set automatically to the system's default locale (as set by Locale prefs).
void Application::RegisterKeyEvent | ( | const os::KeyboardEvent & | ) |
void Application::UnregisterKeyEvent | ( | const os::String & | cEvent | ) |
int Application::GetCurrentKeyShortcuts | ( | std::vector< os::KeyboardEvent > * | pcTable | ) |
friend class Window [friend] |
Reimplemented from os::Looper.
friend class Desktop [friend] |
friend class Bitmap [friend] |
friend class Sprite [friend] |
friend class View [friend] |
friend class Font [friend] |
friend class AppserverConfig [friend] |