FileDocCategorySizeDatePackage
BluetoothPbapRequestPullVcardListingSize.javaAPI DocAndroid 5.1 API1680Thu Mar 12 22:22:50 GMT 2015android.bluetooth.client.pbap

BluetoothPbapRequestPullVcardListingSize

public class BluetoothPbapRequestPullVcardListingSize extends BluetoothPbapRequest

Fields Summary
private static final String
TAG
private static final String
TYPE
private int
mSize
Constructors Summary
public BluetoothPbapRequestPullVcardListingSize(String folder)


       
        mHeaderSet.setHeader(HeaderSet.NAME, folder);

        mHeaderSet.setHeader(HeaderSet.TYPE, TYPE);

        ObexAppParameters oap = new ObexAppParameters();
        oap.add(OAP_TAGID_MAX_LIST_COUNT, (short) 0);
        oap.addToHeaderSet(mHeaderSet);
    
Methods Summary
public intgetSize()

        return mSize;
    
protected voidreadResponseHeaders(javax.obex.HeaderSet headerset)

        Log.v(TAG, "readResponseHeaders");

        ObexAppParameters oap = ObexAppParameters.fromHeaderSet(headerset);

        mSize = oap.getShort(OAP_TAGID_PHONEBOOK_SIZE);