201 NotifyFrameworksL(KSenEventWsfReady); |
201 NotifyFrameworksL(KSenEventWsfReady); |
202 } |
202 } |
203 |
203 |
204 CSenCoreServiceManager::~CSenCoreServiceManager() |
204 CSenCoreServiceManager::~CSenCoreServiceManager() |
205 { |
205 { |
206 |
206 TLSLOG_L(KSenCoreServiceManagerLogChannelBase , KMinLogLevel,"CSenCoreServiceManager::~CSenCoreServiceManager()"); |
207 // Delete member variables |
207 // Delete member variables |
208 CSenCoreServiceManager::SetShowPasswordDialog(EFalse); |
208 CSenCoreServiceManager::SetShowPasswordDialog(EFalse); |
209 delete ipServerContext; |
209 delete ipServerContext; |
210 delete iDAO; |
210 delete iDAO; |
211 delete iCredentialManager; |
211 delete iCredentialManager; |
224 // ipActiveHostletEndpoints->ResetAndDestroy(); |
224 // ipActiveHostletEndpoints->ResetAndDestroy(); |
225 // delete ipActiveHostletEndpoints; |
225 // delete ipActiveHostletEndpoints; |
226 // } |
226 // } |
227 |
227 |
228 #ifdef _SENDEBUG |
228 #ifdef _SENDEBUG |
|
229 TLSLOG_L(KSenCoreServiceManagerLogChannelBase , KMinLogLevel,"CSenCoreServiceManager::~CSenCoreServiceManager() Completed"); |
229 TLSLOG_CLOSE(KSenFaultsLogChannel); |
230 TLSLOG_CLOSE(KSenFaultsLogChannel); |
230 TLSLOG_CLOSE(KSenUtilsLogChannel); |
231 TLSLOG_CLOSE(KSenUtilsLogChannel); |
231 TLSLOG_L(KSenCoreServiceManagerLogChannelBase , KMinLogLevel,"Log file closed."); |
232 TLSLOG_L(KSenCoreServiceManagerLogChannelBase , KMinLogLevel,"Log file closed."); |
232 |
233 |
233 TLSLOG_CLOSE(KSenCoreServiceManagerLogChannelBase); |
234 TLSLOG_CLOSE(KSenCoreServiceManagerLogChannelBase); |
578 { |
579 { |
579 iShutdownTimer->Deque(); // will prevent the active scheduler (of this server) from being stopped |
580 iShutdownTimer->Deque(); // will prevent the active scheduler (of this server) from being stopped |
580 TLSLOG_L(KSenCoreServiceManagerLogChannelBase , KMinLogLevel,"- Shutdown timer cancelled, serving emerged new client."); |
581 TLSLOG_L(KSenCoreServiceManagerLogChannelBase , KMinLogLevel,"- Shutdown timer cancelled, serving emerged new client."); |
581 } |
582 } |
582 iConnectionCount++; |
583 iConnectionCount++; |
583 TLSLOG_FORMAT((KSenCoreServiceManagerLogChannelBase , KNormalLogLevel, _L8("- Client count increased to: %d"),iConnectionCount)); |
584 TLSLOG_FORMAT((KSenCoreServiceManagerLogChannelBase , KMinLogLevel, _L8("- Client count increased to: %d"),iConnectionCount)); |
584 } |
585 } |
585 |
586 |
586 void CSenCoreServiceManager::DecrementConnections() |
587 void CSenCoreServiceManager::DecrementConnections() |
587 { |
588 { |
588 TLSLOG_L(KSenCoreServiceManagerLogChannelBase , KNormalLogLevel,"CSenCoreServiceManager::DecrementConnections"); |
589 TLSLOG_L(KSenCoreServiceManagerLogChannelBase , KMinLogLevel,"CSenCoreServiceManager::DecrementConnections"); |
589 iConnectionCount--; |
590 iConnectionCount--; |
590 TLSLOG_FORMAT((KSenCoreServiceManagerLogChannelBase , KNormalLogLevel, _L8("- Client count decreased to: %d"),iConnectionCount)); |
591 TLSLOG_FORMAT((KSenCoreServiceManagerLogChannelBase , KMinLogLevel, _L8("- Client count decreased to: %d"),iConnectionCount)); |
591 if (iConnectionCount <= 0) |
592 if (iConnectionCount <= 0) |
592 { |
593 { |
593 if( iShutdownTimer ) |
594 if( iShutdownTimer ) |
594 { |
595 { |
595 TLSLOG_L(KSenCoreServiceManagerLogChannelBase , KMinLogLevel,"- Shutdown timer activated."); |
596 TLSLOG_L(KSenCoreServiceManagerLogChannelBase , KMinLogLevel,"- Shutdown timer activated."); |
1199 else |
1200 else |
1200 { |
1201 { |
1201 TLSLOG_L(KSenCoreServiceManagerLogChannelBase , KMinLogLevel,"- About to instantiate new transport (arg: ctx)"); |
1202 TLSLOG_L(KSenCoreServiceManagerLogChannelBase , KMinLogLevel,"- About to instantiate new transport (arg: ctx)"); |
1202 // default to HTTP Channel transport plug-in: |
1203 // default to HTTP Channel transport plug-in: |
1203 TRAP( leaveCode, pTransport = CSenTransport::NewL(pCtx); ) |
1204 TRAP( leaveCode, pTransport = CSenTransport::NewL(pCtx); ) |
|
1205 TLSLOG_L(KSenCoreServiceManagerLogChannelBase , KMinLogLevel,"- About to instantiate new transport (arg: ctx) 1"); |
1204 if( leaveCode ) |
1206 if( leaveCode ) |
1205 { |
1207 { |
1206 TLSLOG_FORMAT((KSenCoreServiceManagerLogChannelBase , KMinLogLevel, _L8("- Could not load new transport plugin, leave: %d"),leaveCode)); |
1208 TLSLOG_FORMAT((KSenCoreServiceManagerLogChannelBase , KMinLogLevel, _L8("- Could not load new transport plugin, leave: %d"),leaveCode)); |
1207 CleanupStack::Pop(pCtx); |
1209 CleanupStack::Pop(pCtx); |
1208 User::Leave( leaveCode ); // throw forward |
1210 User::Leave( leaveCode ); // throw forward |