Hi All,

I want to get the whether the data session state is connected or disconnected.

For that I register my application as follows:

PhnLibRegsiter(PhoneLibRefNum, CREATOR_ID, phnServiceAll);

after registering my application, I tried to access following in PilotMain:

// Phone Library Events are handled through this event.
                case(0x7000):   // For Treo 300
                case(phnLibLaunchCmdEvent):
        {
                pEvent = (EventType*) cmdPBP;
                
                int i = 0;
                
                //get all the event from phone lib
                switch(pEvent->eType)
                {
                        case phnEvtRegistration:
                        {
                                i = 1;
                                break;
                        }
                        
                        case phnEvtIndication:
                        {
                                i = 2;
                                break;
                        }
                        
                        case phnEvtGPRSRegistration:
                        {
                                i = 3;
                                break;
                        }
                        
                        case phnEvtOneXStatus:
                        {
                                i = 3;
                                break;
                        }
                        
                        case phnEvtDataChannel:
                        {
                                i = 3;
                                break;
                        }
                        
                        case phnEvtOneXDataFail:
                        {
                                i = 4;
                                break;
                        }
                        
                        case phnEvtDataSessionStatus:
                        {
                                i = 5;
                                break;
                        }
                        
                        case phnEvtDataSessionDisconnected:
                        {
                                i = 6;
                                break;
                        }
                                                
                        default:
                                        i = 7;
                                break;
                }
                break;
        }

I havn't unregister when I am exiting the application to get the notification 
even though I am outside of the application.

Now I went to Network Preference Panel and manually do connect and than 
disconnect, but my PilotMain never get called.

Is there something wrong with the code?
Is there any other way to register for connect/disconnect event of data call?

Looking for help

Thanks
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to