NXWidgets: NxWM::IApplicationFactory Class Reference

NXWidgets 1.19

Public Member Functions | List of all members
NxWM::IApplicationFactory Class Referenceabstract

`#include <iapplication.hxx>`

Inheritance diagram for NxWM::IApplicationFactory:

## Public Member Functions
virtual | ~IApplicationFactory (void)
virtual IApplication * | create (void)=0
virtual NXWidgets::IBitmap * | getIcon (void)=0

## Detailed Description

IApplicationFactory provides a mechanism for creating multiple instances of an application.

Definition at line 218 of file iapplication.hxx.

## Constructor & Destructor Documentation

## ◆ ~IApplicationFactory()

virtual NxWM::IApplicationFactory::~IApplicationFactory | ( | void |  | ) |
| inlinevirtual

A virtual destructor is required in order to override the IApplicationFactory destructor. We do this because if we delete IApplicationFactory, we want the destructor of the class that inherits from IApplication to run, not this one.

Definition at line 228 of file iapplication.hxx.

## Member Function Documentation

## ◆ create()

virtual IApplication* NxWM::IApplicationFactory::create | ( | void |  | ) |
| pure virtual

Create a new instance of an application.

Implemented in NxWM::CMediaPlayerFactory, NxWM::CCalibrationFactory, NxWM::CHexCalculatorFactory, and NxWM::CNxTermFactory.

## ◆ getIcon()

virtual NXWidgets::IBitmap* NxWM::IApplicationFactory::getIcon | ( | void |  | ) |
| pure virtual

Get the icon associated with the application

Returns
  An instance if IBitmap that may be used to rend the application's icon. This is an new IBitmap instance that must be deleted by the caller when it is no long needed.

Implemented in NxWM::CMediaPlayerFactory, NxWM::CCalibrationFactory, NxWM::CHexCalculatorFactory, and NxWM::CNxTermFactory.

The documentation for this class was generated from the following file:

- iapplication.hxx