xdmprotocols/XcapProtocol/src/XcapDocument.cpp
changeset 12 e6a66db4e9d0
parent 0 c8caa15ef882
equal deleted inserted replaced
0:c8caa15ef882 12:e6a66db4e9d0
   216     #ifdef _DEBUG
   216     #ifdef _DEBUG
   217         iXcapProtocol.WriteToLog( _L8( "CXcapDocument::InstallAppUsageL()" ) );
   217         iXcapProtocol.WriteToLog( _L8( "CXcapDocument::InstallAppUsageL()" ) );
   218     #endif  
   218     #endif  
   219     HBufC8* docName = NULL;
   219     HBufC8* docName = NULL;
   220     iAppUsage = CXcapAppUsage::NewL( iXdmEngine, iDocumentType );
   220     iAppUsage = CXcapAppUsage::NewL( iXdmEngine, iDocumentType );
   221     #ifdef _DEBUG
       
   222         iXcapProtocol.WriteToLog( _L8( "CXcapDocument::InstallAppUsageL() type = %d" ), iDocumentType );
       
   223     #endif  
       
   224     TPtrC8 auid = iAppUsage->AUID();
   221     TPtrC8 auid = iAppUsage->AUID();
   225     if( IsGlobalTree( auid ) )
   222     if( IsGlobalTree( auid ) )
   226         {
   223         {
   227         docName = HBufC8::NewLC( auid.Length() + KGlobalDirName().Length() + 
   224         docName = HBufC8::NewLC( auid.Length() + KGlobalDirName().Length() + 
   228                                  KXcapGlobalDocName().Length() );
   225                                  KXcapGlobalDocName().Length() );
   404 // ----------------------------------------------------
   401 // ----------------------------------------------------
   405 // CXcapDocument::ETag
   402 // CXcapDocument::ETag
   406 // 
   403 // 
   407 // ----------------------------------------------------
   404 // ----------------------------------------------------
   408 //
   405 //
   409 EXPORT_C TDesC8& CXcapDocument::ETag()
   406 EXPORT_C TPtrC8 CXcapDocument::ETag() const
   410     {
   407     {
   411     return iETagBuffer;
   408     return iETagBuffer;
   412     }
   409     }
   413         
   410         
   414 // ----------------------------------------------------
   411 // ----------------------------------------------------