Re: Folder Browsing on a BT phone
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 bubba@apple.com _______________________________________________ bluetooth-dev mailing list | bluetooth-dev@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/bluetooth-dev Do not post admin requests to the list. They will be ignored.
participants (1)
-
Dr. Victor Kulesh