ui/uiengine/medialists/src/glxmedia.cpp
changeset 55 fb37077c270f
parent 49 f291796e213d
equal deleted inserted replaced
49:f291796e213d 55:fb37077c270f
   151     }
   151     }
   152 
   152 
   153 // -----------------------------------------------------------------------------
   153 // -----------------------------------------------------------------------------
   154 // Gets the (file) size
   154 // Gets the (file) size
   155 // -----------------------------------------------------------------------------
   155 // -----------------------------------------------------------------------------
   156 EXPORT_C TBool TGlxMedia::GetSize(TInt& aSize) const
   156 EXPORT_C TBool TGlxMedia::GetSize(TUint& aSize) const
   157     {
   157     {
   158     TRACER("TGlxMedia::GetSize");
   158     TRACER("TGlxMedia::GetSize");
   159     
   159     
   160     if ( iItem )
   160     if ( iItem )
   161         {
   161         {
   578 	// Client must have made a reservation before calling
   578 	// Client must have made a reservation before calling
   579 	__ASSERT_DEBUG( _iUserReservationCount > 0, Panic( EGlxPanicLogicError ) );
   579 	__ASSERT_DEBUG( _iUserReservationCount > 0, Panic( EGlxPanicLogicError ) );
   580 
   580 
   581     __DEBUG_ONLY( _iUserReservationCount-- );
   581     __DEBUG_ONLY( _iUserReservationCount-- );
   582 
   582 
   583 	iUsers.Append( TMediaUser( &aUser, aIndex ) ); // Ignore error, cannot fail since reservation made 
   583 	iUsers.AppendL( TMediaUser( &aUser, aIndex ) ); // Ignore error, cannot fail since reservation made 
   584 	}
   584 	}
   585 
   585 
   586 // -----------------------------------------------------------------------------
   586 // -----------------------------------------------------------------------------
   587 // RemoveUser
   587 // RemoveUser
   588 // -----------------------------------------------------------------------------
   588 // -----------------------------------------------------------------------------
   982     }
   982     }
   983 
   983 
   984 // ---------------------------------------------------------------------------
   984 // ---------------------------------------------------------------------------
   985 // Test invariant
   985 // Test invariant
   986 // ---------------------------------------------------------------------------
   986 // ---------------------------------------------------------------------------
   987 void CGlxMedia::__DbgTestInvariant() const
   987 EXPORT_C void CGlxMedia::__DbgTestInvariant() const
   988     {
   988     {
   989     TRACER("CGlxMedia::__DbgTestInvariant");
   989     TRACER("CGlxMedia::__DbgTestInvariant");
   990     
   990     
   991     #ifdef _DEBUG
   991     #ifdef _DEBUG
   992     
   992