#include <e32std.h>
class RDevice : public RHandleBase |
Public Member Functions | |
---|---|
IMPORT_C void | GetCaps(TDes8 &) |
IMPORT_C TBool | IsAvailable(TInt, const TDesC *, const TDesC8 *) |
TInt | Open(const TFindLogicalDevice &, TOwnerType) |
IMPORT_C TInt | Open(const TDesC &, TOwnerType) |
IMPORT_C TBool | QueryVersionSupported(const TVersion &) |
Inherited Attributes | |
---|---|
RHandleBase::iHandle |
Inherited Enumerations | |
---|---|
RHandleBase:TAttributes |
User side handle to an LDD factory object, an instance of a DLogicalDevice derived class.
The LDD factory object is a Kernel side object which is constructed on the Kernel heap when the logical device is opened using User::LoadLogicalDevice(). The handle allows the User side to get information about the logical device.
To use the device, a thread must create and use an instance of an RBusLogicalChannel derived class.
IMPORT_C void | GetCaps | ( | TDes8 & | aDes | ) | const |
Gets the device capabilities.
Parameter | Description |
---|---|
aDes | A descriptor into which capability's information is to be written. |
Checks if a specified unit number, additional info and a specific PDD is supported.
Parameter | Description |
---|---|
aUnit | The requested unit number. |
aPhysicalDevice | The requested PDD name. |
anInfo | The additional information. |
Returns: ETrue if supported, EFalse if not.
TInt | Open | ( | const TFindLogicalDevice & | aFind, |
TOwnerType | aType = EOwnerProcess | |||
) | [inline] |
Opens a handle to an LDD factory object found using a TFindLogicalDevice object.
A TFindLogicalDevice object is used to find all LDD factory objects whose full names match a specified pattern.
Parameter | Description |
---|---|
aFind | A reference to the object which is used to find the LDD factory object. |
aType | An enumeration whose enumerators define the ownership of this LDD factory object handle. If not explicitly specified, EOwnerProcess is taken as default. |
Returns: KErrNone if successful, otherwise one of the other system wide error codes.
IMPORT_C TInt | Open | ( | const TDesC & | aName, |
TOwnerType | aType = EOwnerProcess | |||
) |
Opens a handle to an LDD factory object by name.
Parameter | Description |
---|---|
aName | The name of the LDD factory object to be opened. |
aType | An enumeration whose enumerators define the ownership of this LDD factory object handle. |
Returns: KErrNone, if successful; otherwise one of the other system wide error codes.