📄 am_app_configuration_server.h
字号:
#ifndef AM_APP_CONFIGURATION_SERVER_CLASS /* To prevent inadvertently including a header twice */#define AM_APP_CONFIGURATION_SERVER_CLASS/* (c) Copyright Motorola 1997, 1998, All rights reserved. Motorola Confidential Proprietary Contains confidential proprietary information of Motorola, Inc. Reverse engineering is prohibited. The copyright notice does not imply publication. DESCRIPTION: This file defines the AM_App_Configuration_Server class. ************** REVISION HISTORY ********************************************** Date Author Reference ======== ======== ================ 00-08-09 mtaraba CR - CSGce55882 Eliminate file gsm.h from audio manager 00-03-15 mkloza PR - CSGce51641 Blue Tooth modifications for P2K platform - removed parameters from update_mode() function 98-11-04 blamers CR - CSGce23508 Whitecap VR Event Handler Changes - Update file to latest version and standard. 97-09-09 ldanby PR - CSGce12966 - Fix TI compiler warning. Remove sz from return of new operator. Move new and delete operators to private. 97-07-07 gswanson PR - CSGce06712 Rae DHFA, ignore the cradle state when an exernal handset is connected - Removed determine_mode function and replaced it with update_mode function to indicate more of what it is used for. Changed the parameters of the function to have all of the info passed in rather than read from the peripheral server.*//************** HEADER FILE INCLUDES ******************************************/#include <SUAPI/suapi.h>#ifndef STDDEF_INCLUDE#include <stddef.h>#endif#ifndef AM_UTIL_BITS_INCLUDE#include <ENGINE_AUDIO/am_util_bits.h>#endif#ifndef AM_APP_CONFIGURATION_SERVER_INCLUDE#include "am_app_configuration_server.h"#endif/************** CONSTANTS *****************************************************//************** STRUCTURES, ENUMS, AND TYPEDEFS *******************************//************** FUNCTION PROTOTYPES *******************************************//************** MACROS ********************************************************//************** CLASS DEFINITIONS *********************************************/class AM_App_Configuration_Server {public: /* * class constructor. */ AM_App_Configuration_Server ( /* pointer point to the configuration mask */ AM_APP_CONFIGURATION_MASK *mask_ptr ); /* * class destructor, do nothing, but prevents allocation of __Ptbl in * every file that includes this .H file. */ ~AM_App_Configuration_Server (void) {}; /* * change the value of a configuration field. */ static void set ( /* The field to be modified */ AM_APP_CONFIGURATION_MASK_ID field, /* true or false */ BOOL state ); /* * read the current state of one of AM_configuration fields. */ inline static UINT8 read (AM_APP_CONFIGURATION_MASK_ID field) { return read_bit (*am_app_configuration_mask_ptr, field);};private: /* * Overload the new and delete operators to prevent calls to the system's new and * delete functions. */ inline void * operator new(size_t) { return(NULL); } inline void operator delete(void *, size_t) {} /* pointer point the mask used to store all configuration related flags */ static AM_APP_CONFIGURATION_MASK *am_app_configuration_mask_ptr;};#endif //end definition of AM_APP_CONFIGURATION_SERVER_CLASS_INCLUDE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -