Problem in loading phone driver phonetsy.tsy

Login to reply to this topic.
Fri, 2006-03-24 07:29
Joined: 2005-02-22
Forum posts: 39
Hi ,

I am writing an app for the P900i ( UIQ ) . I need a module to notify on incomming call ..

I am able to do this on Series 60 but when i try to load the driver for UIQ P900i .. it gives error .

Can any buddy tell me what is the way out ..

My understanding is that i need to load  the right  device driver of the phone for P900i family .. I don't know the device driver for p900i .... If  i am right just  tell me the .tsy  name for this family

I am giving below the code piece  .. and indicating the place where i get the error


   
   User::LeaveIfError(iServer.Connect());
   

   //Load in the phone device driver
                /**** error :  not able to load device drive  here i am using 'phonetsy.tsy' for KTsyName  ****/

   User::LeaveIfError(iServer.LoadPhoneModule(KTsyName));
   
         
   //Find the number of phones available from the tel server
   TInt numberPhones;
   User::LeaveIfError(iServer.EnumeratePhones(numberPhones));

   

   //Check there are available phones
   if (numberPhones < 1)
   {
      User::Leave(KErrNotFound);
   }

   //Get info about the first available phone
   RTelServer::TPhoneInfo info;
   User::LeaveIfError(iServer.GetPhoneInfo(0, info));

   //Use this info to open a connection to the phone, the phone is identified by its name
   User::LeaveIfError(iPhone.Open(iServer, info.iName));

   //Get info about the first line from the phone
   RPhone::TLineInfo lineInfo;
   User::LeaveIfError(iPhone.GetLineInfo(0, lineInfo));

   User::LeaveIfError(iLine.Open(iPhone, lineInfo.iName));


Please help .. any pointer will be of great help

Regards
Veeraj Thaploo





Sat, 2006-03-25 15:20
Joined: 2004-08-19
Forum posts: 112
Re: Problem in loading phone driver phonetsy.tsy
You can look it up yourself on your phone, it's in /Systems/Libs but the correct way seems to be to obtain the name from the phone, something like:

Code:
TBuf<40> iTsyName;
server.GetTsyName (0, iTsyName);
iTsyName.Append (_L(".tsy"));

Bye,
Gábor

Thu, 2006-06-08 07:19
Joined: 2006-05-29
Forum posts: 3
Re: Problem in loading phone driver phonetsy.tsy
  • Login to reply to this topic.