MHEG5  15.3.0
source/classes/inc/mh5switchbutton.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002  * Copyright © 2014 The DTVKit Open Software Foundation Ltd (www.dtvkit.org)
00003  * Copyright © 2004 Ocean Blue Software Ltd
00004  * Copyright © 2000 Koninklijke Philips Electronics N.V
00005  *
00006  * This file is part of a DTVKit Software Component
00007  * You are permitted to copy, modify or distribute this file subject to the terms
00008  * of the DTVKit 1.0 Licence which can be found in licence.txt or at www.dtvkit.org
00009  * 
00010  * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
00011  * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES
00012  * OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
00013  * 
00014  * If you or your organisation is not a member of DTVKit then you have access
00015  * to this source code outside of the terms of the licence agreement
00016  * and you are expected to delete this and any associated files immediately.
00017  * Further information on DTVKit, membership and terms can be found at www.dtvkit.org
00018  *******************************************************************************/
00030 #ifndef _MH5SWITCHBUTTON_H_
00031 #define _MH5SWITCHBUTTON_H_
00032 
00033 /*---includes for this file--------------------------------------------------*/
00034 #include "mh5pushbutton.h"
00035 
00036 /*---Constant and macro definitions for public use---------------------------*/
00037 
00038 /*---Enumerations for public use---------------------------------------------*/
00039 
00040 /*---Global type defs for public use-----------------------------------------*/
00041 typedef struct
00042 {
00043    /* Base class */
00044    MHEG5Pushbutton pushbutton;
00045 
00046    /* Exchanged attributes */
00047    MHEG5PushbuttonStyle style;
00048 
00049    /* No internal attributes for this class */
00050 } MHEG5Switchbutton;
00051 
00052 /*---Global variable declarations for public use-----------------------------*/
00053 
00054 /*---Global Function prototypes for public use-------------------------------*/
00055 
00066 void MHEG5switchbuttonInit(MHEG5Switchbutton *switchbutton);
00067 
00068 
00076 void MHEG5switchbuttonFree(MHEG5Switchbutton *switchbutton);
00077 
00078 
00079 /*
00080     Internal behaviours
00081  */
00082 void MHEG5switchbuttonPrepare(MHEG5Switchbutton *switchbutton);
00083 void MHEG5switchbuttonActivate(MHEG5Switchbutton *switchbutton);
00084 void MHEG5switchbuttonDeactivate(MHEG5Switchbutton *switchbutton);
00085 void MHEG5switchbuttonDestruct(MHEG5Switchbutton *switchbutton);
00086 
00087 
00088 MHEG5ErrorCode MHEG5toggle(MHEG5Root *target, MHEG5GList *params);
00089 
00096 MHEG5ErrorCode MHEG5getSelectionStatus(MHEG5Root *target, MHEG5GList *params);
00097 
00098 /*
00099    Debug
00100  */
00101 #ifdef MH5PRINTOUT
00102 
00108 void MHEG5switchbuttonPrint(MHEG5Switchbutton *switchbutton, char *out);
00109 #endif
00110 
00111 #endif /*_MH5SWITCHBUTTON_H_*/
 All Data Structures Files Functions Variables Typedefs Defines