diff options
Diffstat (limited to 'NxWidgets/nxwm/include/inxapplication.hxx')
-rw-r--r-- | NxWidgets/nxwm/include/inxapplication.hxx | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/NxWidgets/nxwm/include/inxapplication.hxx b/NxWidgets/nxwm/include/inxapplication.hxx index ef7c52326..70d4ac104 100644 --- a/NxWidgets/nxwm/include/inxapplication.hxx +++ b/NxWidgets/nxwm/include/inxapplication.hxx @@ -54,10 +54,24 @@ namespace NxWM { + class CApplicationWindow; + class NxWidget::CNxString; + + /** + * INxApplication provides the abstract base class for each NxWM application. + */ + class INxApplication { public: /** + * Each implementation of INxApplication must provide a method to recover + * the contained CApplicationWindow instance. + */ + + virtual CApplicationWindow *getWindow(void) const = 0; + + /** * Get the icon associated with the application * * @return An instance if INxBitmap that may be used to rend the @@ -68,10 +82,24 @@ namespace NxWM virtual NXWidgets::INxBitmap *getIcon(void) = 0; /** + * Get the name string associated with the application + * + * @return A copy if CNxString that contains the name of the application. + */ + + virtual NXWidgets::CNxString getName(void) = 0; + + /** * Start the application. */ virtual run(void) = 0; + + /** + * Stop the application. + */ + + virtual stop(void) = 0; }; } |