00001
00002
00003
00004
00005
00006
00007 #ifndef PLAYBACK_TYPES_H_
00008 # define PLAYBACK_TYPES_H_
00009
00010 #include <libplayback/playback-macros.h>
00011
00012 PB_BEGIN_DECLS
00013
00014
00015
00016
00017 enum pb_state_e {
00019 PB_STATE_NONE,
00022 PB_STATE_STOP,
00024 PB_STATE_PLAY,
00025 PB_STATE_LAST,
00026 };
00027
00028 #define PB_FLAG_AUDIO 0x1
00029 #define PB_FLAG_VIDEO 0x2
00030 #define PB_FLAG_AUDIO_RECORDING 0x4
00031 #define PB_FLAG_VIDEO_RECORDING 0x8
00032
00033 enum pb_class_e {
00034 PB_CLASS_NONE,
00035 PB_CLASS_TEST,
00036 PB_CLASS_EVENT,
00037 PB_CLASS_VOIP,
00038 PB_CLASS_CALL = PB_CLASS_VOIP,
00039 PB_CLASS_MEDIA,
00040 PB_CLASS_BACKGROUND,
00041 PB_CLASS_RINGTONE,
00042 PB_CLASS_VOICEUI,
00043 PB_CLASS_CAMERA,
00044 PB_CLASS_GAME,
00045 PB_CLASS_ALARM,
00046 PB_CLASS_FLASH,
00047 PB_CLASS_SYSTEM,
00048 PB_CLASS_INPUT,
00049 PB_CLASS_LAST,
00050 };
00051
00052 enum pb_bt_override_status_e {
00053 BT_OVERRIDE_DISCONNECTED = -1,
00054 BT_OVERRIDE_OFF = 0,
00055 BT_OVERRIDE_ON = 1
00056 };
00057
00058 enum pb_state_e pb_string_to_state (const char *state);
00059 const char * pb_state_to_string (enum pb_state_e pb_state);
00060
00061 enum pb_class_e pb_string_to_class (const char *aclass);
00062 const char * pb_class_to_string (enum pb_class_e pb_class);
00063
00064 PB_END_DECLS
00065
00066 #endif