FileDocCategorySizeDatePackage
BluetoothMasRequestSetPath.javaAPI DocAndroid 5.1 API1921Thu Mar 12 22:22:50 GMT 2015android.bluetooth.client.map

BluetoothMasRequestSetPath

public class BluetoothMasRequestSetPath extends BluetoothMasRequest

Fields Summary
SetPathDir
mDir
String
mName
Constructors Summary
public BluetoothMasRequestSetPath(String name)

        mDir = SetPathDir.DOWN;
        mName = name;

        mHeaderSet.setHeader(HeaderSet.NAME, name);
    
public BluetoothMasRequestSetPath(boolean goRoot)

        mHeaderSet.setEmptyNameHeader();
        if (goRoot) {
            mDir = SetPathDir.ROOT;
        } else {
            mDir = SetPathDir.UP;
        }
    
Methods Summary
public voidexecute(javax.obex.ClientSession session)

        HeaderSet hs = null;

        try {
            switch (mDir) {
                case ROOT:
                case DOWN:
                    hs = session.setPath(mHeaderSet, false, false);
                    break;
                case UP:
                    hs = session.setPath(mHeaderSet, true, false);
                    break;
            }

            mResponseCode = hs.getResponseCode();
        } catch (IOException e) {
            mResponseCode = ResponseCodes.OBEX_HTTP_INTERNAL_ERROR;
        }