equal
deleted
inserted
replaced
18 |
18 |
19 |
19 |
20 #include <s32strm.h> |
20 #include <s32strm.h> |
21 #include <f32file.h> |
21 #include <f32file.h> |
22 #include <e32property.h> |
22 #include <e32property.h> |
|
23 #include <bautils.h> |
23 |
24 |
24 #include "senserviceconnectionimpl.h" |
25 #include "senserviceconnectionimpl.h" |
25 |
26 |
26 #include "sendebug.h" // internal Utils\inc - logging MACROs |
27 #include "sendebug.h" // internal Utils\inc - logging MACROs |
27 #include "senlogger.h" |
28 #include "senlogger.h" |
190 return pNew; |
191 return pNew; |
191 } |
192 } |
192 |
193 |
193 void CSenServiceConnectionImpl::ConstructL(MSenServiceDescription& aSD) |
194 void CSenServiceConnectionImpl::ConstructL(MSenServiceDescription& aSD) |
194 { |
195 { |
|
196 #ifdef _SENDEBUG |
|
197 #ifdef _DEBUG |
|
198 |
|
199 RFs fs; |
|
200 fs.Connect(); |
|
201 TBool ret = BaflUtils::FolderExists(fs, _L("c:\\logs\\wslog\\")); |
|
202 if(!ret) |
|
203 { |
|
204 fs.MkDirAll(_L("c:\\logs\\wslog\\")); |
|
205 } |
|
206 fs.Close(); |
|
207 |
|
208 #endif // _DEBUG |
|
209 #endif // _SENDEBUG |
|
210 |
195 TLSLOG_L(KSenServiceConnectionLogChannelBase+iConnectionID, KMinLogLevel ,"CSenServiceConnectionImpl::ConstructL(aSD)"); |
211 TLSLOG_L(KSenServiceConnectionLogChannelBase+iConnectionID, KMinLogLevel ,"CSenServiceConnectionImpl::ConstructL(aSD)"); |
196 CSenElement& sdAsElement = ((CSenXmlServiceDescription&)aSD).AsElement(); |
212 CSenElement& sdAsElement = ((CSenXmlServiceDescription&)aSD).AsElement(); |
197 |
213 |
198 // Check if this is an internal service connection: |
214 // Check if this is an internal service connection: |
199 const TDesC8* pInternal = sdAsElement.AttrValue( KSenAttrInternalSC ); |
215 const TDesC8* pInternal = sdAsElement.AttrValue( KSenAttrInternalSC ); |
3515 return iConnection.SendFileProgress(aTxnId, aIncoming, isSoap,ptr, aProgress); |
3531 return iConnection.SendFileProgress(aTxnId, aIncoming, isSoap,ptr, aProgress); |
3516 } |
3532 } |
3517 |
3533 |
3518 void CSenServiceConnectionImpl::DeliverStatus(TInt aStatus) |
3534 void CSenServiceConnectionImpl::DeliverStatus(TInt aStatus) |
3519 { |
3535 { |
|
3536 TLSLOG(KSenServiceConnectionLogChannelBase+iConnectionID, KMinLogLevel,(_L("CSenServiceConnectionImpl::DeliverStatus()"))); |
3520 TLSLOG_FORMAT((KSenServiceConnectionLogChannelBase+iConnectionID, KMinLogLevel , _L8("Invoking SetStatus(%d) callback."), aStatus )); |
3537 TLSLOG_FORMAT((KSenServiceConnectionLogChannelBase+iConnectionID, KMinLogLevel , _L8("Invoking SetStatus(%d) callback."), aStatus )); |
3521 TLSLOG_FORMAT(( iTlsLogStatusChannel, KSenServiceConnectionStatusLogLevel, _L8("CSenServiceConnectionImpl::DeliverStatus [legacy status update] - Invoking SetStatus(%d)"), aStatus )); |
3538 TLSLOG_FORMAT(( iTlsLogStatusChannel, KSenServiceConnectionStatusLogLevel, _L8("CSenServiceConnectionImpl::DeliverStatus [legacy status update] - Invoking SetStatus(%d)"), aStatus )); |
3522 |
3539 |
3523 TInt leaveCode(KErrNone); |
3540 TInt leaveCode(KErrNone); |
3524 |
3541 |