i m developing an application for series 60 devices to get Cell ID.I took reference of following thread and specifically code snippet given by yucca.The post no 6.
But i am getting Undefined Identifier for RBasicGsmPhone and MBasicGsmPhoneNetwork. I tried on google,forum,newLC for the header files and lib files.All i got is header file required is etelbgsm.h.
But i was unable to find this header file in all above 3 sites.Pls give me this header file and corresponding lib file.
Thanks in Advance.
Rohanwaugh.
Re: Undefined Identifier-RBasicGsmPhone and MBasicGsmPhoneNetwork.
2009-02-21, 07:46#2
You propably should have checked the date when it was written, it is really old thread, and those APIs are for Symbian OS 6.x, i.e. 1st edition.. With 3rd edition you should use CTelephony API instead.
Re: Undefined Identifier-RBasicGsmPhone and MBasicGsmPhoneNetwork.
2009-02-21, 08:36#3
u are right.But i also use the code which uses CTelephony API's.i got that code from some link.It has been implemented using Active object.i build my application for Navigator.But i didn't get Cell ID.I am giving the .cpp and .h files for your reference.
NetworkApp.h
#ifndef NETWORKAPP_H_
#define NETWORKAPP_H_
#include <e32base.h>
#include <Etel3rdParty.h>
class CNetworkApp : public CActive
{
private:
void ConstructL();
CTelephony* iTelephony;
CTelephony::TNetworkInfoV1 iNetworkInfoV1;
public:
CNetworkApp(TUint& CellId,TDes& NetworkId,TDes& CountryId,TDes& LongName);
static void GetNetworkParameters(TUint& CellId,TDes& NetworkId,TDes& CountryId,TDes& LongName);
TUint& iCellID;
TDes& iNetworkID;
TDes& iCountryCODE;
TDes& iLongNAME;
private:
/*
These are the pure virtual methods from CActive that
MUST be implemented by all active objects
*/
void RunL();
void DoCancel();
};
I would look for the version that does not use the ActiveScheduler::Startm, it might work better, also what capabilities you have given to your process, and if it does not work, then you should debug it and see what does get executed, and what does not.