From 530e4e8173cbbdc299b7244ef5ba839f17b49556 Mon Sep 17 00:00:00 2001 From: patacongo Date: Sun, 29 Apr 2012 14:34:56 +0000 Subject: Fix STM32 USART4/5 vs UART4/5 confusion git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4671 42af7a65-404d-4744-a932-0658087f49c3 --- NxWidgets/nxwm/include/inxapplication.hxx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'NxWidgets/nxwm/include/inxapplication.hxx') 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,9 +54,23 @@ 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 * @@ -67,11 +81,25 @@ 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; }; } -- cgit v1.2.3