syncmlfw/dm/syncagent/src/nsmldmagent.cpp
changeset 27 2c8580950a26
parent 22 19fb38abab1d
child 55 1c556dee8eb1
equal deleted inserted replaced
24:bf47f3b79154 27:2c8580950a26
  1875 CNSmlAgentNotifierObserver::~CNSmlAgentNotifierObserver()
  1875 CNSmlAgentNotifierObserver::~CNSmlAgentNotifierObserver()
  1876 	{
  1876 	{
  1877 	// StartNotifier called to avoid Notifier server panic, if 
  1877 	// StartNotifier called to avoid Notifier server panic, if 
  1878 	// notifier does not exist anymore.
  1878 	// notifier does not exist anymore.
  1879 	TBuf8<1> dummy;	
  1879 	TBuf8<1> dummy;	
  1880 	iNotifier.StartNotifier(KNullUid, dummy, dummy); // KNullUid should do also..
  1880 //	iNotifier.StartNotifier(KNullUid, dummy, dummy); // KNullUid should do also..
  1881 	iNotifier.CancelNotifier( KUidNotifier );
  1881 //	iNotifier.CancelNotifier( KUidNotifier );
  1882 	iNotifier.Close();
  1882 //	iNotifier.Close();
  1883 	iNotifierTimeOut.Cancel();
  1883 	iNotifierTimeOut.Cancel();
  1884 	Cancel();
  1884 	Cancel();
  1885 	}
  1885 	}
  1886 
  1886 
  1887 // --------------------------------------------------------------------------
  1887 // --------------------------------------------------------------------------
  1908 	User::LeaveIfError( rep->Get( KSyncMLSessionParamsKey, data)); 
  1908 	User::LeaveIfError( rep->Get( KSyncMLSessionParamsKey, data)); 
  1909 
  1909 
  1910 	CleanupStack::PopAndDestroy( rep);
  1910 	CleanupStack::PopAndDestroy( rep);
  1911 
  1911 
  1912     iNotifierTimeOut.LaunchNotifierTimer( this );
  1912     iNotifierTimeOut.LaunchNotifierTimer( this );
  1913     User::LeaveIfError( iNotifier.Connect() );
  1913 //    User::LeaveIfError( iNotifier.Connect() );
  1914     iNotifier.StartNotifierAndGetResponse( iStatus, KUidNotifier, data, iResBuf );
  1914 //   iNotifier.StartNotifierAndGetResponse( iStatus, KUidNotifier, data, iResBuf );
  1915 	}
  1915 	}
  1916 
  1916 
  1917 // --------------------------------------------------------------------------
  1917 // --------------------------------------------------------------------------
  1918 // CNSmlNotifierObserver::NotifierTimeOut()
  1918 // CNSmlNotifierObserver::NotifierTimeOut()
  1919 // Starts notifier time out timer
  1919 // Starts notifier time out timer
  1923 	{
  1923 	{
  1924 	iTimeOut = ETrue;
  1924 	iTimeOut = ETrue;
  1925 	// StartNotifier called to avoid Notifier server panic, if 
  1925 	// StartNotifier called to avoid Notifier server panic, if 
  1926 	// notifier does not exist anymore.
  1926 	// notifier does not exist anymore.
  1927 	TBuf8<1> dummy;	
  1927 	TBuf8<1> dummy;	
  1928 	iNotifier.StartNotifier(KNullUid, dummy, dummy); // KNullUid should do also..
  1928 //	iNotifier.StartNotifier(KNullUid, dummy, dummy); // KNullUid should do also..
  1929 	
  1929 	
  1930 	iNotifier.CancelNotifier( KUidNotifier );
  1930 //	iNotifier.CancelNotifier( KUidNotifier );
  1931 	}
  1931 	}
  1932 
  1932 
  1933 // --------------------------------------------------------------------------
  1933 // --------------------------------------------------------------------------
  1934 // CNSmlNotifierObserver::DoCancel()
  1934 // CNSmlNotifierObserver::DoCancel()
  1935 // From base class
  1935 // From base class