Click here to Skip to main content
15,886,110 members
Articles / Mobile Apps

The StateWizard VC++ Add-in and Engine with Source Code

Rate me:
Please Sign up or sign in to vote.
4.73/5 (24 votes)
26 Mar 2009CPOL12 min read 190.2K   2.8K   132  
A cross-platform state-oriented application framework and a ClassWizard-like round-trip UML dynamic modeling/development tool that runs in popular IDEs. Aims at providing concurrent, distributed, and real-time application development tools for Win32/Linux
/*
FILE:Player.h
NOTE: The State Machine Wizard will add mapping macros between /*{{ and /*}}. Do NOT modify manually.
*/

#ifndef PLAYER_H
#define PLAYER_H

#include "stdafx.h"
#include "sme.h"


#ifdef __cplusplus
extern "C" {
#endif

SME_BEGIN_STATE_DECLARE(Player)
	/*{{SME_STATE_DECLARE(Player)*/
	SME_STATE_DECLARE(Player)
	SME_STATE_DECLARE(PowerDown)
	SME_STATE_DECLARE(PowerUp)
	SME_STATE_DECLARE(Playing)
	SME_STATE_DECLARE(Pause)
	SME_MAX_STATE(Player)
	/*}}SME_STATE_DECLARE*/
SME_END_STATE_DECLARE

/*{{SME_BEGIN_EVENT_HANDLER(Player)*/
int PlayerEntry(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int PlayerExit(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int PowerDownEntry(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int PowerDownExit(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int PowerUpEntry(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int PowerUpExit(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int PlayingEntry(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int PlayingExit(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int PauseEntry(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int PauseExit(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int OnPowerDownEXT_EVENT_ID_POWER(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int OnPlayingEXT_EVENT_ID_PAUSE_RESUME(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int OnPauseEXT_EVENT_ID_PAUSE_RESUME(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
int OnPowerUpEXT_EVENT_ID_POWER(struct SME_APP_T *pApp, struct SME_EVENT_T *pEvent);
/*}}SME_END_EVENT_HANDLER*/



#ifdef __cplusplus
}
#endif

#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United States United States
Alex "Question is more important than the answer."

Comments and Discussions