Using RMobilePhone Class

Login to reply to this topic.
Thu, 2004-11-25 06:14
Joined: 2004-05-20
Forum posts: 308
How to initialise the object of Class RMobilePhone

i.e. what is the second parameter of the method
TInt Open(RTelServer& aSession,const TDesC& aName); i.e. TDesC aName ?

Thanks

Amit


Wed, 2004-12-01 12:36
Joined: 2004-10-18
Forum posts: 8
Using RMobilePhone Class
RTelServer's GetPhoneInfo  will return you a TPhoneInfo structure;
Use iName of this structure to pass it to your RMobilePhone.Open's second parameter.

Hope this helps.
Wed, 2004-12-01 13:20
Joined: 2004-05-20
Forum posts: 308
Using RMobilePhone Class
Thnx Sudhir.
Came to know that i cannot use this class as Etelmm.h is a cut down version in Series 60 SDK and not the full version which i have to download from the net.(Its use it depricated)

Thanks

Amit

Wed, 2004-12-01 13:28
Joined: 2004-10-18
Forum posts: 8
Using RMobilePhone Class
Well, I'm afraid if its deprecated as in most of the symbian versions i have used RMobilePhone is predominantly used.

What is it you are trying if i may ask?
Wed, 2004-12-01 13:37
Joined: 2004-05-20
Forum posts: 308
Using RMobilePhone Class
I m just trying to read the Network Strength , Battery Strength etc which is provided by RMobilePhone.
There is no API whihc provides battery strength in % and is public .(Please tell me if u know one)

See Actually this API's access  is "partner only" What people are doing is taking the header from net and then using it as the DLL will be present in the phone.

But what worries me is if they change it in future OS,then it can be an issue .
I dont know the Status of Symbian 8.0 and 8.1 But if it is there in Symbian 8.0 then it is going to stay for a good time in the market.

Thanks

Amit

Thu, 2004-12-02 11:42
Joined: 2004-08-06
Forum posts: 9
Using RMobilePhone Class
Have a look a RSystemAgent which provides a notification mechanism for changess to things like Network Strength , Battery Strength, Call and inbox status.
Thu, 2004-12-02 12:21
Joined: 2004-05-20
Forum posts: 308
Using RMobilePhone Class
1. RSystemAgent is as good as nothing as most of its features are not supported like Network Strength etc.

2. Also for the features it supports , it behaves differently on different phones.

3. No propoer documentation available as u have to check Sacls.h file and also some constants and TUID's are missing from it like TUID for Battery in % and also for Network Bars.

Thanks

Amit

Thu, 2004-12-02 16:16
Joined: 2004-10-18
Forum posts: 8
Using RMobilePhone Class
Look at class RMobilePhone;
Not sure if you have the SDK Help and License to access these information. There must be some APIs which gets these values out; have a look at the snip below.

--- snip--
Enum TMobilePhoneSignalCaps
enum TMobilePhoneSignalCaps
Description
The mobile phone signal strength capabilities.

Notes:
Modes: Common
KCapsGetSignalStrength Phone supports requests to get the current signal strength.

KCapsNotifySignalStrengthChange Phone supports requests for notification of change in signal strength.
--snip--
Fri, 2004-12-03 05:07
Joined: 2004-05-20
Forum posts: 308
Using RMobilePhone Class
Sudhir , I think this is getting Little Confusing .

This is what i know .

I Series 80 and Series 60 SDK , ETELMM.h  is a cut down version and most of the things are missing.

In UIQ , the EtelMM.h which i downloaded from net is the full version and it has TMobilePhoneSignalCaps.

So that clearly means that Symbian(or Nokia for Series 60 and 80) does not want us to these features.

Also if u have implemented it using the full version of the EtelMM.h , can u provide me with the code please..

PS : Are you on Yahoo ?

Thanks

Amit

Fri, 2004-12-03 05:41
Joined: 2004-10-18
Forum posts: 8
Using RMobilePhone Class
Well, Symbian ETel provides standard interfaces;
Its up to the UI Framework if it wants to use it or not.

Series 60,80,UIQ, or any of the UI Framework may use it or may not.
I Presume you are just downloading the SDKs for all these UI Framework's hence the confusion.

If you want to write an application on text shell (no UI Framework) and if your TSY supports underneath then you are all set to use this API.

I'm afraid if i can pass on some code as you may have rightly guessed its licensing issues.
Fri, 2004-12-03 05:48
Joined: 2004-05-20
Forum posts: 308
Using RMobilePhone Class
Eaxctly this is what i m saying .
The Dll in the phone will be having the interfaces.But the API's have Partner only Access.
SO what people do is they download the header from the Net and use it.This is how they make it work on different UI platforms.


But have u written code for Network Strength using RMobilePhone ?

Thanks

Amit

Tue, 2005-10-04 06:22
Joined: 2005-09-02
Forum posts: 6
Using RMobilePhone Class
hi
i want to use clase TMobilePhoneCBInfoEntryV1 (of RMobilePhone Class ) can any body help
i want to check the status & i want to bar calls (incomming or out going). can any body give some sample code how to use that class
Sat, 2005-11-19 11:19
Joined: 2003-10-10
Forum posts: 124
Re: Using RMobilePhone Class
The problem here seems to be that RMobilePhone is used in different ways by different licensees. Nokia and SonyEricsson SDKs implement the functionality differently using different tel TSYs. The RMobilePhone classes are available publicly in a cut down form using etel3rdparty.h but the private etelmm.h headers should never be used.

As for battery strength, UIQ doesnt use the battery strength indicator (it should always return zero), they use iBarsCount instead !
  • Login to reply to this topic.