|
|
Log In | Not a Member? |
Contact ADC |
|
ADC Home > Reference Library > Reference > Hardware & Drivers > Bluetooth > Bluetooth User Interface Framework Reference
|
IOBluetoothObjectPushUIController |
| Inherits from: | |
| Declared In: |
An NSWindowController subclass that supports the creation of an IOBluetoothObjectPushUIController object.
beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo: |
Runs the transfer UI as a sheet on the target window.
- (IOReturn) beginSheetModalForWindow: (NSWindow *) sheetWindow modalDelegate: (id) modalDelegate didEndSelector: (SEL) didEndSelector contextInfo: (void *) contextInfo;
sheetWindowmodalDelegatedidEndSelectorcontextInfoReturns kIOReturnSuccess if the sheet modal session was started.
This function works the same way as -[NSApplication beginSheet:modalForWindow:modalDelegate:didEndSelector:contextInfo:].
The didEndSelector has a similar prototype as in NSApplication except that the first argument is the
IOBluetoothDeviceSelectorController object instead of the window:
-(void)sheetDidEnd:(IOBluetoothDeviceSelectorController *)controller returnCode:(int)returnCode contextInfo:(void *)contextInfo.
The returnCode parameter will either be kIOBluetoothUISuccess or kIOBluetoothUIUserCancelledErr as described in
-runModal.
getDevice |
Gets the object representing the remote target device in the transfer.
- (IOBluetoothDevice*) getDevice;
The remote device of the transfer.
getTitle |
Returns the title of the transfer panel (i.e. what was set in -setTitle:).
- (NSString *) getTitle;
Returns the title of the transfer panel.
initObjectPushWithBluetoothDevice: withFiles: andEventDelegate: |
Creates and returns a new IOBluetoothObjectPush object
See Also:
- initObjectPushWithBluetoothDevice:withFiles:delegate:
- (IOBluetoothObjectPushUIController*) initObjectPushWithBluetoothDevice: (IOBluetoothDevice*) inDevice withFiles: (NSArray *) inFiles delegate: (id) inDelegate;
inDeviceinFilesinDelegateAn IOBluetoothObjectPushUIController object on success, nil on fail.
The event delegate should implement a single delegate method:
- (void) objectPushComplete: (IOBluetoothObjectPushUIController*) inPusher
The method will be called when the transaction is complete and
should be used to release the push object by the delegate. If no delegate is set
the object will release itself when the transfer is finished.
initObjectPushWithBluetoothDevice:withFiles:delegate: |
Creates and returns a new IOBluetoothObjectPush object
See Also:
- initObjectPushWithBluetoothDevice:
- (IOBluetoothObjectPushUIController*) initObjectPushWithBluetoothDevice: (IOBluetoothDevice*) inDevice withFiles: (NSArray *) inFiles delegate: (id) inDelegate;
inDeviceinFilesinDelegateThe event delegate should implement a single delegate method:
- (void) objectPushComplete: (IOBluetoothObjectPushUIController*) inPusher
The method will be called when the transaction is complete and
should be used to release the push object by the delegate. If no delegate is set
the object will release itself when the transfer is finished.
isTransferInProgress |
Gets state of the transfer
- (BOOL) isTransferInProgress;
The state of the transfer
runModal |
Runs the transfer UI panel in a modal session
- (void) runModal;
The call will stall in this method until the modal session is complete.
Returns when the modal session has ended. This object will call back over the delegate method (above) when the transfer is complete. Users should release the object then. If no delegate is set the object will release itself.
runPanel |
Runs the transfer UI as a panel with no modal session
- (void) runPanel;
The method will return immediately.
Returns immediately. The object will callback over the delegate method (above) when the transfer is completed. If no delegate is set the object will release itself.
setIconImage: |
Manually sets the icon used in the panel.
- (void) setIconImage:(NSImage*)image;
imageThe panel icon should be set to the icon of the calling application. If not set, the panel will try to load up the correct icon for the target device, and will default to the icon of the running application on fail.
setTitle: |
Sets the title of the panel when not run as a sheet.
- (void) setTitle: (NSString *) windowTitle;
windowTitleThe panel title should be localized for best user experience.
stop |
Stops the transfer UI
- (void) stop;
The method will return immediately.
Returns immediately. The object will callback over the delegate method (above) when the transfer is completed, or will release itself if no delegate is set.
|