CRsfwMountEntry Class Reference

#include <mw/rsfwmountentry.h>

Link against: mountstore.dll

class CRsfwMountEntry : public CBase

Inherits from

  • CRsfwMountEntry

    Detailed Description

    Remote drive (configuration) entry

    Drive configuration entry consists of the following values:
    • Index of the entry. Optional.

    • Friendly name. Mandatory.

    • Drive letter. Optional.

    • Drive URL. Mandatory.

    • User name. Optional.

    • Password. Optional

    • Internet Access point. Optional.

    Maximum lengths for the strings:
    • Friendly name 20 characters

    • Drive URL 200 characters

    • User name 50 characters

    • Password 50 characters Setter functions leave with KErrArgument, if longer values are attempted

    Drive Letter must be between J: and Y: (see also RFs::DriveList() documentation)

    Drive Url must begin with a valid scheme (e.g. https:// or upnp://)

    Since
    Series 60 3.1

    Constructor & Destructor Documentation

    ~CRsfwMountEntry ( )

    IMPORT_C~CRsfwMountEntry()[virtual]

    Destructor.

    Member Function Documentation

    Clear ( )

    IMPORT_C voidClear()

    Clear the entry - the items are set to NULL

    CloneL ( )

    IMPORT_C CRsfwMountEntry *CloneL()const

    Clone the entry - the items are are copied to the newly created entry

    Returns: cloned entry

    Item ( TInt )

    IMPORT_C const HBufC *Item(TIntaIndex)const

    Returns an item value An empty value may be an empty string or NULL

    NewL ( )

    IMPORT_C CRsfwMountEntry *NewL()[static]

    Two-phased constructor.

    NewLC ( )

    IMPORT_C CRsfwMountEntry *NewLC()[static]

    Two-phased constructor

    SetEntryL ( TInt, const TDesC &, TChar, const TDesC &, const TDesC &, const TDesC &, const TDesC & )

    IMPORT_C voidSetEntryL(TIntaIndex,
    const TDesC &aName,
    TCharaDriveLetter,
    const TDesC &aUrl,
    const TDesC &aUserName,
    const TDesC &aPassword,
    const TDesC &aIap
    )
    Sets all item values
    leave
    KErrArgument, one or more parameters incorrect
    ParameterDescription
    aIndexindex (only used for positioning the entry - not stored)
    aNamename
    aDriveLetterdrive letter
    aUserNameuser name
    aPasswordpassword
    aIapIAP name

    SetItemL ( TInt, const TDesC8 & )

    IMPORT_C voidSetItemL(TIntaIndex,
    const TDesC8 &aValue
    )
    Sets an item value
    leave
    KErrArgument, incorrect index or value
    ParameterDescription
    aIndexitem index
    aValuestring value

    SetItemL ( TInt, const TDesC & )

    IMPORT_C voidSetItemL(TIntaIndex,
    const TDesC &aValue
    )
    Sets an item value
    leave
    KErrArgument, incorrect index or value
    ParameterDescription
    aIndexitem index
    aValuestring value