00001
00002
00003
00004
00005
00006
00007 #import "NSObject.h"
00008
00009 @class BluetoothAudioJack, NSMutableArray;
00010
00011 @interface BluetoothManager : NSObject
00012 {
00013 struct BTHandsfreeServiceImpl *_handsfreeService;
00014 struct BTLocalDeviceImpl *_localDevice;
00015 struct BTSessionImpl *_session;
00016 BOOL _audioConnected;
00017 BOOL _scanningEnabled;
00018 BOOL _pairingEnabled;
00019 int _powerState;
00020 struct BTDiscoveryAgentImpl *_discoveryAgent;
00021 struct BTPairingAgentImpl *_pairingAgent;
00022 struct BTAccessoryManagerImpl *_accessoryManager;
00023 NSMutableArray *_devices;
00024 BluetoothAudioJack *_audioJack;
00025 }
00026
00027 + (id)sharedInstance;
00028 + (void)initialize;
00029 - (void)cleanup;
00030 - (void)dealloc;
00031 - (void)_postNotificationWithArray:(id)fp8;
00032 - (void)_postNotification:(id)fp8;
00033 - (void)postNotification:(id)fp8;
00034 - (void)postNotificationName:(id)fp8 object:(id)fp12;
00035 - (void)_setupSession;
00036 - (void)_setupLocalDevice;
00037 - (void)_setupHandsfreeService;
00038 - (void)_setupAccessoryManager;
00039 - (void)_setup;
00040 - (void)serverTerminated;
00041 - (id)init;
00042 - (BOOL)connected;
00043 - (BOOL)powered;
00044 - (void)_powerChanged:(BOOL)fp8;
00045 - (BOOL)setPowered:(BOOL)fp8;
00046 - (void)setAirplaneMode:(BOOL)fp8;
00047 - (BOOL)enabled;
00048 - (BOOL)setEnabled:(BOOL)fp8;
00049 - (BOOL)audioConnected;
00050 - (void)setAudioConnected:(BOOL)fp8;
00051 - (id)_existingWrapperForDevice:(struct BTDeviceImpl *)fp8;
00052 - (id)addDeviceIfNeeded:(struct BTDeviceImpl *)fp8;
00053 - (void)setDeviceScanningEnabled:(BOOL)fp8;
00054 - (BOOL)deviceScanningEnabled;
00055 - (void)setDevicePairingEnabled:(BOOL)fp8;
00056 - (BOOL)devicePairingEnabled;
00057 - (void)setPincode:(id)fp8 forDevice:(id)fp12;
00058 - (void)connectDevice:(id)fp8;
00059 - (void)pairDevice:(id)fp8;
00060 - (void)cancelPairing;
00061 - (BOOL)canBeConnected;
00062 - (id)connectableDevices;
00063 - (id)pairedDevices;
00064 - (void)unpairDevice:(id)fp8;
00065 - (BOOL)isDiscoverable;
00066 - (void)setDiscoverable:(BOOL)fp8;
00067 - (BOOL)connectable;
00068 - (void)setConnectable:(BOOL)fp8;
00069 - (id)audioJack;
00070 - (void)enableTestMode;
00071
00072 @end
00073