if( k!= KErrNone )
//Close the connection to the tel server and remove it from the cleanup stack
you should wrap the whole thing into a active object and then when the call is established, you just start notifier that will call your RunL back when the call status changes, then you'll just acta ccordingly there.
I think you dont have too much idea of how the active objects work, so I would suggest you to go to www.symbian.com and locate the paper written by Mr. Martin Tasker, it explains the main features and usage of active objects quite nicely.
How to intiate the active class from container
TRAPD(error,call->Dial(iStatus,*iNumber)); //call dial with status
call = NULL;
server = NULL;
first tell me that whether now i m doing right, and secondly i want to know that, i f want to make a call when some event occur on my listbox in container class. So how can i intiate the active class from my container class on some event.
looks a lot better now already, anyway for monitoring the phone call (for example for hang-up) you could use NotifyStatusChange()-fucntion of the RCall after the call have dialed.
for observing events in other components, you should always check the sdk docs & headers for function that is used for setting a observer. For example listbox has SetListBoxObserver()-function. Then check the observer interface definitions and implement the required functions in your container (observer) class.
Intiate the active class from container
I had no problem in trapping the event in listbox , i m trapping the event of listbox and opening different views.
But now my problem is, I m not able to intiate the code written in my active class, that is CActiveDial class which i had given in my previous post .
From my container class, i m not able to call any function of this CActiveDial class.
Please guide me, I know i m troubling u a lot.
I am creating the object of the CActiveDial class in my contructor of container class and then calling the DialNumber() function when i trapped the event of my listbox in OfferKeyEventL() function but at compile time it gives error, no default contructor available ,i dont know where i m doing wrong.
this question is not related to my previous post,
I had installed a sis file on my device , while my app runs on device it creates to file on C drive, which i uses while my app is running. Now i want that when i unistall my app , i want to delete those two file also from my device.
Can u plaese guide me , how to acheive that.