Re: Folder Browsing on a BT phone
Re: Folder Browsing on a BT phone
- Subject: Re: Folder Browsing on a BT phone
- From: "Dr. Victor Kulesh" <email@hidden>
- Date: Thu, 10 Jul 2003 16:03:40 -0400
Thank you so much Giles.
Indeed that helped.
I managed to get some sort of a "listing" from my phone via File
Transfer:
<?xml version="1.0"?> <!DOCTYPE folder-listing
SYSTEM"obex-folder-listing.dtd"> <folder-listing
version="1.0"></folder-listing>
Does any one have any idea in what direction I have to move now to
actually get the folder and file names?
Nokia forums have absolutely NOTHING!
On Thursday, July 10, 2003, at 03:02 PM, Bubba Giles wrote:
Do this to get the connection ID (as well as something similat to get
the
other headers):
CFDictionaryRef dictionary = OBEXGetHeaders(
yourcommandresponsedataptr,
yourcommandresponsedatalength );
Then get keys/values from that dictionary:
if( dictionary )
{
if( CFDictionaryGetCountOfKey( dictionary,
kOBEXHeaderIDKeyConnectionID ) > 0 )
{
CFDataRef theDataRef;
theDataRef = (CFDataRef) CFDictionaryGetValue(
dictionary,
kOBEXHeaderIDKeyConnectionID );
if( theDataRef )
{
CFDataGetBytes( theDataRef, CFRangeMake( 0, 4 ),
(uint8_t*) &mConnectionID );
}
}
}
So, for a type header, you would do:
if( CFDictionaryGetCountOfKey( dictionaryRef, kOBEXHeaderIDKeyType
) > 0
)
{
CFStringRef theStringRef = (CFStringRef) CFDictionaryGetValue(
dictionaryRef, kOBEXHeaderIDKeyType );
if( theStringRef )
{
// blah
}
}
Hopefully that helps!
Jason
email@hidden
_______________________________________________
bluetooth-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/bluetooth-dev
Do not post admin requests to the list. They will be ignored.