class RBusLogicalChannel : public RHandleBase |
The user-side handle to a logical channel.
The class provides functions that are used to open a channel to a device driver, and to make requests. A device driver provides a derived class to give the user-side a tailored interface to the driver.
Public Member Functions | |
---|---|
IMPORT_C TInt | Open(RMessagePtr2, TInt, TOwnerType) |
IMPORT_C TInt | Open(TInt, TOwnerType) |
Protected Member Functions | |
---|---|
IMPORT_C void | DoCancel(TUint) |
IMPORT_C TInt | DoControl(TInt) |
IMPORT_C TInt | DoControl(TInt, TAny *) |
IMPORT_C TInt | DoControl(TInt, TAny *, TAny *) |
TInt | DoCreate(const TDesC &, const TVersion &, TInt, const TDesC *, const TDesC8 *, TOwnerType, TBool) |
IMPORT_C void | DoRequest(TInt, TRequestStatus &) |
IMPORT_C void | DoRequest(TInt, TRequestStatus &, TAny *) |
IMPORT_C void | DoRequest(TInt, TRequestStatus &, TAny *, TAny *) |
TInt | DoSvControl(TInt) |
TInt | DoSvControl(TInt, TAny *) |
TInt | DoSvControl(TInt, TAny *, TAny *) |
Private Member Functions | |
---|---|
IMPORT_C TInt | DoCreate(const TDesC &, const TVersion &, TInt, const TDesC *, const TDesC8 *, TInt) |
Inherited Enumerations | |
---|---|
RHandleBase:TAttributes |
Private Attributes | |
---|---|
TInt | iPadding1 |
TInt | iPadding2 |
Inherited Attributes | |
---|---|
RHandleBase::iHandle |
IMPORT_C TInt | DoControl | ( | TInt | aFunction, |
TAny * | a1, | |||
TAny * | a2 | |||
) | [protected] |
TInt | DoCreate | ( | const TDesC & | aDevice, |
const TVersion & | aVer, | |||
TInt | aUnit, | |||
const TDesC * | aDriver, | |||
const TDesC8 * | anInfo, | |||
TOwnerType | aType = EOwnerProcess, | |||
TBool | aProtected = EFalse | |||
) | [protected, inline] |
Creates the logical channel.
KErrNone, if successful; otherwise one of the other system wide error codes.
const TDesC & aDevice | The name of the logical device for which the channel is to be constructed. This is the name by which the LDD factory object, i.e. the instance of the DLogicalDevice derived class, is known. |
const TVersion & aVer | The required version of the logical device. The driver normally checks this against the version of the logical channel, returning KErrNotSupported if the logical channel is not compatible. |
TInt aUnit | A unit of the device. This argument only has meaning if the flag KDeviceAllowUnit is set in the iParseMask data member of the LDD factory object. |
const TDesC * aDriver | A pointer to a descriptor containing the name of a physical device. This is the name by which the PDD factory object, i.e. the instance of the DPhysicalDevice derived class, is known. This is NULL, if no explicit name is to be supplied, or the logical device does not require an accompanying physical device. |
const TDesC8 * anInfo | A pointer to an explicit 8-bit descriptor containing extra information for the physical device. This argument only has meaning if the KDeviceAllowInfo flag is set in the iParseMask data member of the LDD factory object. |
TOwnerType aType = EOwnerProcess | An enumeration whose enumerators define the ownership of this handle. If not explicitly specified, EOwnerProcess is taken as default. |
TBool aProtected = EFalse | If false, the channel is created as an object which is local/private to the current process. If true, the channel is an object which may be shared with other processes using the IPC mechanisms for handle passing. |
IMPORT_C TInt | DoCreate | ( | const TDesC & | aDevice, |
const TVersion & | aVer, | |||
TInt | aUnit, | |||
const TDesC * | aDriver, | |||
const TDesC8 * | aInfo, | |||
TInt | aType | |||
) | [private] |
IMPORT_C void | DoRequest | ( | TInt | aReqNo, |
TRequestStatus & | aStatus | |||
) | [protected] |
TInt aReqNo | |
TRequestStatus & aStatus |
IMPORT_C void | DoRequest | ( | TInt | aReqNo, |
TRequestStatus & | aStatus, | |||
TAny * | a1 | |||
) | [protected] |
TInt aReqNo | |
TRequestStatus & aStatus | |
TAny * a1 |
IMPORT_C void | DoRequest | ( | TInt | aReqNo, |
TRequestStatus & | aStatus, | |||
TAny * | a1, | |||
TAny * | a2 | |||
) | [protected] |
TInt aReqNo | |
TRequestStatus & aStatus | |
TAny * a1 | |
TAny * a2 |
TInt | DoSvControl | ( | TInt | aFunction, |
TAny * | a1, | |||
TAny * | a2 | |||
) | [protected, inline] |
IMPORT_C TInt | Open | ( | RMessagePtr2 | aMessage, |
TInt | aParam, | |||
TOwnerType | aType = EOwnerProcess | |||
) |
RMessagePtr2 aMessage | |
TInt aParam | |
TOwnerType aType = EOwnerProcess |
IMPORT_C TInt | Open | ( | TInt | aArgumentIndex, |
TOwnerType | aType = EOwnerProcess | |||
) |
TInt aArgumentIndex | |
TOwnerType aType = EOwnerProcess |