summaryrefslogtreecommitdiff
path: root/NxWidgets/nxwm/include
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-07-15 08:41:19 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-07-15 08:41:19 -0600
commitc5b8bd6d3a309d7c075c59df1dbbd03218d679cb (patch)
tree04eddf9fad8c06bb34762385f2eb593296746d39 /NxWidgets/nxwm/include
parentec94d776a6181c7c2f7c901677c65613f78287c3 (diff)
downloadnuttx-c5b8bd6d3a309d7c075c59df1dbbd03218d679cb.tar.gz
nuttx-c5b8bd6d3a309d7c075c59df1dbbd03218d679cb.tar.bz2
nuttx-c5b8bd6d3a309d7c075c59df1dbbd03218d679cb.zip
NxWM::CMediaPlay: Now receives button events
Diffstat (limited to 'NxWidgets/nxwm/include')
-rw-r--r--NxWidgets/nxwm/include/cmediaplayer.hxx24
1 files changed, 20 insertions, 4 deletions
diff --git a/NxWidgets/nxwm/include/cmediaplayer.hxx b/NxWidgets/nxwm/include/cmediaplayer.hxx
index eff13067a..7f909f478 100644
--- a/NxWidgets/nxwm/include/cmediaplayer.hxx
+++ b/NxWidgets/nxwm/include/cmediaplayer.hxx
@@ -80,19 +80,35 @@ namespace NxWM
{
private:
/**
+ * This enumeration identifies the state of the media player
+ */
+
+ enum EMediaPlayerState
+ {
+ MPLAYER_STOPPED = 0, /**< No media file has been selected */
+ MPLAYER_PLAYING, /**< Playing a media file */
+ MPLAYER_PAUSED, /**< Playing a media file but paused */
+ MPLAYER_FFORWARD, /**< Fast forwarding through a media file */
+ MPLAYER_FREWIND, /**< Rewinding a media file */
+ };
+
+ /**
* The structure defines a pending operation.
*/
struct SPendingOperation
{
- int64_t value; /**< Accumulated value */
- uint8_t operation; /**< Identifies the operations */
+ int64_t value; /**< Accumulated value */
+ uint8_t operation; /**< Identifies the operations */
};
/**
* Media player state data.
*/
+ enum EMediaPlayerState m_state; /**< Media player current state */
+ enum EMediaPlayerState m_prevState; /**< Media player previous state */
+
/**
* Cached constructor parameters.
*/
@@ -147,8 +163,8 @@ namespace NxWM
void close(void);
/**
- * Handle a widget action event. For CImage, this is a button pre-
- * release event.
+ * Handle a widget action event. This includes a button pre/release
+ * release events and volume slider change events.
*
* @param e The event data.
*/