videocollection/mpxmyvideoscollection/src/vcxmyvideosmdsdb.cpp
changeset 2 dec420019252
parent 0 96612d01cf9f
child 10 ce5ada96ab30
child 15 cf5481c2bc0b
child 30 4f111d64a341
equal deleted inserted replaced
1:6711b85517b7 2:dec420019252
   738         }
   738         }
   739 
   739 
   740     //  This is a fix for setting the title always
   740     //  This is a fix for setting the title always
   741     if ( !property || static_cast<CMdETextProperty*>(property)->Value().Length() == 0 )
   741     if ( !property || static_cast<CMdETextProperty*>(property)->Value().Length() == 0 )
   742         {
   742         {
   743         TEntry entry;
       
   744         TParse parse;
   743         TParse parse;
   745 
   744         parse.Set( aObject.Uri(), NULL, NULL );
   746         if ( iFs.Entry( aObject.Uri(), entry ) == KErrNone )
   745         aVideo.SetTextValueL( KMPXMediaGeneralTitle, parse.Name() );
   747             {
       
   748             parse.Set( entry.iName, NULL, NULL );
       
   749             }
       
   750         else
       
   751             {
       
   752             parse.Set( aObject.Uri(), NULL, NULL );
       
   753             }
       
   754         aVideo.SetTextValueL( KMPXMediaGeneralTitle,
       
   755                 parse.Name());        
       
   756         }
   746         }
   757 
   747 
   758     //3. DESCRIPTION
   748     //3. DESCRIPTION
   759     if ( aObject.Property( *iDescriptionPropertyDef, property, 0 ) != KErrNotFound
   749     if ( aObject.Property( *iDescriptionPropertyDef, property, 0 ) != KErrNotFound
   760          && aFullDetails )
   750          && aFullDetails )