void ImCallback::receivePageFailed(const Uri& sender) { CString msg = _T("Can not understand message from "); msg += CString(sender.getAor().c_str()); resip_assert( theApp.m_pMainWnd ); BuddyDlg* buddy = dynamic_cast<BuddyDlg*>( theApp.m_pMainWnd ); resip_assert(buddy); buddy->message( msg ); }
void ImCallback::registrationWorked( const Uri& dest ) { CString msg = _T("Registration to "); msg += CString(dest.getAor().c_str()); msg += _T(" worked"); resip_assert( theApp.m_pMainWnd ); BuddyDlg* buddy = dynamic_cast<BuddyDlg*>( theApp.m_pMainWnd ); resip_assert(buddy); buddy->message( msg ); }
void ImCallback::registrationFailed( const Uri& dest,int num ) { //InfoLog(<< "In TestErrCallback"); //cerr << "Message to " << dest << " failed" << endl; CString cNum; cNum.Format("%d",num); CString msg = _T("Registration to "); msg += CString(dest.getAor().c_str()); msg += _T(" failed ("); msg += cNum; msg += _T(")"); resip_assert( theApp.m_pMainWnd ); BuddyDlg* buddy = dynamic_cast<BuddyDlg*>( theApp.m_pMainWnd ); resip_assert(buddy); buddy->message( msg ); }