CSdpSearchPattern Class Reference

#include <btsdp.h>

Link against: sdpdatabase.lib

class CSdpSearchPattern : public CBase

Inherits from

  • CSdpSearchPattern

    Detailed Description

    A list of Bluetooth service classes, represented as Universal Unique Identifiers (UUIDs), to be matched in SDP Service Search Requests.

    See also: CSdpAgent::SetRecordFilterL() TUUID

    Constructor & Destructor Documentation

    ~CSdpSearchPattern ( )

    IMPORT_C~CSdpSearchPattern()

    Destructor

    Destroys the UUID array.

    Member Function Documentation

    AddL ( const TUUID & )

    IMPORT_C TIntAddL(const TUUID &aUUID)

    Adds a UID to the list.

    ParameterDescription
    aUUIDUUID to add

    Returns: Position in the list that the UUID is inserted at, or KErrAlreadyExists if it's already in the list

    At ( TInt )

    IMPORT_C const TUUIDAt(TIntanIndex)const

    Gets the UUID at the specified position in the list.

    ParameterDescription
    anIndexPosition of the UUID to get

    Returns: UUID at specified position

    ConstructL ( )

    IMPORT_C voidConstructL()

    Allocates a new UUID array.

    Count ( )

    IMPORT_C TIntCount()const

    Gets the number of UUIDs in the list.

    Returns: Number of UUIDs in the list

    Find ( const TUUID &, TInt & )

    IMPORT_C TIntFind(const TUUID &aUUID,
    TInt &aPos
    )const

    Gets the position of the specified UUID in the list.

    ParameterDescription
    aUUIDUUID to find
    aPosPosition of the UUID if it is in the list, otherwise the position where it would be inserted

    Returns: 0 if aUUID is found, otherwise non-zero

    IsEmpty ( )

    IMPORT_C TBoolIsEmpty()

    Tests if the list is empty.

    Returns: True if the list is empty

    NewL ( )

    IMPORT_C CSdpSearchPattern *NewL()[static]

    Allocates and constructs a new CSdpSearchPattern object.

    Returns: New CSdpSearchPattern object

    Remove ( const TUUID & )

    IMPORT_C TIntRemove(const TUUID &aUUID)

    Removes a UUID from the list.

    ParameterDescription
    aUUIDUUID to remove

    Returns: Position in the list of the UUID, or KErrNotFound if it's not in the list

    Reset ( )

    IMPORT_C voidReset()

    Removes all UUIDs from the list.