webservices/wshostletconnection/src/senhostletconnectionimpl.cpp
changeset 23 a1df79fa35b4
parent 0 62f9d29f7211
child 38 d9641c85af2b
equal deleted inserted replaced
16:abb636afedf7 23:a1df79fa35b4
   761                            sizeof(TInt));
   761                            sizeof(TInt));
   762                            
   762                            
   763     iTxnIdBuffer.Set(reinterpret_cast<TUint8*>(&iTxnId),
   763     iTxnIdBuffer.Set(reinterpret_cast<TUint8*>(&iTxnId),
   764                      sizeof(TInt),
   764                      sizeof(TInt),
   765                      sizeof(TInt));
   765                      sizeof(TInt));
   766                      
   766     if(!IsActive())
   767     SetActive();
   767     	SetActive();
   768 #ifdef EKA2
   768 #ifdef EKA2
   769     iActive->AsyncOpsArrayL().AppendL(this);
   769     iActive->AsyncOpsArrayL().AppendL(this);
   770 #else
   770 #else
   771     RPointerArray<CSenAsyncOperation>& ops = iActive->AsyncOpsArrayL();
   771     RPointerArray<CSenAsyncOperation>& ops = iActive->AsyncOpsArrayL();
   772     User::LeaveIfError(ops.Append(this));
   772     User::LeaveIfError(ops.Append(this));
   937 	// Use KSenInterfaceUidFilesObserver extended consumer interface UID
   937 	// Use KSenInterfaceUidFilesObserver extended consumer interface UID
   938 	User::LeaveIfError(iFileProgressProperty.Attach(KSenInterfaceUidFilesObserver,  iConnectionID)); // KSenInterfaceUidFilesObserver UID will be category
   938 	User::LeaveIfError(iFileProgressProperty.Attach(KSenInterfaceUidFilesObserver,  iConnectionID)); // KSenInterfaceUidFilesObserver UID will be category
   939     CActiveScheduler::Add(this);
   939     CActiveScheduler::Add(this);
   940     // Initial subscription
   940     // Initial subscription
   941     iFileProgressProperty.Subscribe(iStatus);
   941     iFileProgressProperty.Subscribe(iStatus);
   942     SetActive();
   942     if(!IsActive())
       
   943     	SetActive();
   943     iStatus = KRequestPending;
   944     iStatus = KRequestPending;
   944     }
   945     }
   945 
   946 
   946 CSenFileProgressObserver::~CSenFileProgressObserver()
   947 CSenFileProgressObserver::~CSenFileProgressObserver()
   947     {
   948     {
   959 
   960 
   960 void CSenFileProgressObserver::RunL()
   961 void CSenFileProgressObserver::RunL()
   961     {
   962     {
   962     // Resubscribe before processing new value to prevent missing updates(!):
   963     // Resubscribe before processing new value to prevent missing updates(!):
   963 	iFileProgressProperty.Subscribe( iStatus );
   964 	iFileProgressProperty.Subscribe( iStatus );
   964     SetActive();
   965     if(!IsActive())
       
   966     	SetActive();
   965     iStatus = KRequestPending;
   967     iStatus = KRequestPending;
   966 
   968 
   967     TLSLOG_L( KSenHostletConnectionLogChannelBase + iConnectionID, KSenServiceConnectionStatusLogLevel, "CSenFileProgressObserver::RunL" );
   969     TLSLOG_L( KSenHostletConnectionLogChannelBase + iConnectionID, KSenServiceConnectionStatusLogLevel, "CSenFileProgressObserver::RunL" );
   968        
   970        
   969     TPckgBuf<TFileOutgoingTransferProgressBase> progress;
   971     TPckgBuf<TFileOutgoingTransferProgressBase> progress;