| class RPhone : public RTelSubSessionBase |
Phone sub-session.
Provides access to the functionality associated with a specific phone.
This class is not intended for user derivation.
| Public Member Functions | |
|---|---|
| RPhone() | |
| IMPORT_C void | Close() |
| IMPORT_C TInt | EnumerateLines(TInt &) |
| IMPORT_C TInt | GetCaps(TCaps &) |
| IMPORT_C TInt | GetInfo(TPhoneInfo &) |
| IMPORT_C TInt | GetLineInfo(const TInt, TLineInfo &) |
| IMPORT_C TInt | GetStatus(TStatus &) |
| IMPORT_C TInt | Initialise() |
| IMPORT_C void | Initialise(TRequestStatus &) |
| IMPORT_C void | InitialiseCancel() |
| IMPORT_C void | NotifyCapsChange(TRequestStatus &, TCaps &) |
| IMPORT_C void | NotifyCapsChangeCancel() |
| IMPORT_C void | NotifyModemDetected(TRequestStatus &, TModemDetection &) |
| IMPORT_C void | NotifyModemDetectedCancel() |
| IMPORT_C TInt | Open(RTelServer &, const TDesC &) |
| IMPORT_C TInt | SetEmergencyClient(const TUint32) |
| Protected Member Functions | |
|---|---|
| IMPORT_C void | ConstructL() |
| IMPORT_C void | Destruct() |
| Public Member Enumerations | |
|---|---|
| enum | TCapsFlags { KCapsUnknown = 0x00000001, KCapsData = 0x00000002, KCapsFaxClassOne = 0x0000004, KCapsFaxClassOnePointZero = 0x0000008, KCapsFaxClassTwo = 0x00000010, KCapsFaxClassTwoPointZero = 0x00000020, KCapsFaxClassTwoPointOne = 0x00000040, KCapsVoice = 0x00000080, KCapsEventModemDetection = 0x00010000, KCapsStealCommPort = 0x00020000 } |
| enum | TEmergencyRequest { EEmergencyLCSRequest = 0x00000001, EEmergencyCSVoiceCallRequest = 0x00000002 } |
| enum | TMode { EModeUnknown, EModeIdle, EModeEstablishingLink, EModeOnlineData, EModeOnlineCommand } |
| enum | TModemDetection { EDetectedPresent, EDetectedNotPresent, EDetectedUnknown } |
| Inherited Enumerations | |
|---|---|
| RTelSubSessionBase:TReqPriorityType | |
| Inherited Attributes | |
|---|---|
| RTelSubSessionBase::iPtrHolder | |
| IMPORT_C TInt | GetInfo | ( | TPhoneInfo & | aPhoneInfo | ) | const |
| TPhoneInfo & aPhoneInfo |
| IMPORT_C TInt | GetLineInfo | ( | const TInt | aIndex, |
| TLineInfo & | aLineInfo | |||
| ) | const | |||
| IMPORT_C void | Initialise | ( | TRequestStatus & | aStatus | ) |
| TRequestStatus & aStatus |
| IMPORT_C void | NotifyCapsChange | ( | TRequestStatus & | aStatus, |
| TCaps & | aCaps | |||
| ) | ||||
| TRequestStatus & aStatus | |
| TCaps & aCaps |
| IMPORT_C void | NotifyModemDetected | ( | TRequestStatus & | aStatus, |
| TModemDetection & | aDetection | |||
| ) | ||||
| TRequestStatus & aStatus | |
| TModemDetection & aDetection |
| IMPORT_C TInt | Open | ( | RTelServer & | aSession, |
| const TDesC & | aName | |||
| ) | ||||
| RTelServer & aSession | |
| const TDesC & aName |
| IMPORT_C TInt | SetEmergencyClient | ( | const TUint32 | aEmergencyRequest | ) | const |
| const TUint32 aEmergencyRequest |
Phone capability flags.
| KCapsUnknown = 0x00000001 |
The capabilities of the phone are not known. |
| KCapsData = 0x00000002 |
The phone supports data calls. |
| KCapsFaxClassOne = 0x0000004 |
The phone supports the fax class 1 interface. |
| KCapsFaxClassOnePointZero = 0x0000008 |
The phone supports the fax class 1.0 interface. |
| KCapsFaxClassTwo = 0x00000010 |
The phone supports the fax class 2 interface. |
| KCapsFaxClassTwoPointZero = 0x00000020 |
The phone supports the fax class 2.0 interface. |
| KCapsFaxClassTwoPointOne = 0x00000040 |
The phone supports the fax class 2.1 interface. |
| KCapsVoice = 0x00000080 |
The phone supports voice calls. |
| KCapsEventModemDetection = 0x00010000 |
The phone supports modem detection events, i.e. it can notify clients when the modem can be or can no longer be detected. |
| KCapsStealCommPort = 0x00020000 |
The phone supports the ability to take the communications port from whatever component is currently using it. |
| EEmergencyLCSRequest = 0x00000001 |
Location Based Services Emergency Request |
| EEmergencyCSVoiceCallRequest = 0x00000002 |
Circuit Switch Voice Call Emergency Request |