videocollection/mpxmyvideoscollection/tsrc/ut_vcxmyvideosmdsdb/src/mdeobject.cpp
branchRCL_3
changeset 26 67eb01668b0e
parent 23 8f0df5c82986
equal deleted inserted replaced
23:8f0df5c82986 26:67eb01668b0e
    21 #include <mdeproperty.h>
    21 #include <mdeproperty.h>
    22 #include <mdeobjectdef.h>
    22 #include <mdeobjectdef.h>
    23 #include <mdenamespacedef.h>
    23 #include <mdenamespacedef.h>
    24 #include <mdesession.h>
    24 #include <mdesession.h>
    25 
    25 
       
    26 #include "VcxMyVideosMdsDbTest.h"
       
    27 
    26 //////////////////////////////
    28 //////////////////////////////
    27 //                          //
    29 //                          //
    28 //        TMdEObject        //
    30 //        TMdEObject        //
    29 //                          //
    31 //                          //
    30 //////////////////////////////
    32 //////////////////////////////
   171 	{
   173 	{
   172 	}
   174 	}
   173 
   175 
   174 EXPORT_C TInt CMdEObject::Property(const CMdEPropertyDef& aDef, CMdEProperty*& aProperty, TInt aStartAt) const
   176 EXPORT_C TInt CMdEObject::Property(const CMdEPropertyDef& aDef, CMdEProperty*& aProperty, TInt aStartAt) const
   175     {
   177     {
       
   178     if ( test->propertynotdefined )
       
   179         {
       
   180         return KErrNotFound;
       
   181         }
   176     if( !iProperty )
   182     if( !iProperty )
   177         {
   183         {
   178         iProperty = new CMdEProperty();
   184         iProperty = new CMdEProperty();
   179         }
   185         }
   180     
   186     
   181     aProperty = iProperty;
   187     if ( test->propertyisnull )
       
   188         {
       
   189         aProperty = NULL;
       
   190         }
   182     }
   191     }
   183     
   192     
   184 EXPORT_C CMdEProperty& CMdEObject::AddBoolPropertyL(CMdEPropertyDef& aDef, TBool aValue)
   193 EXPORT_C CMdEProperty& CMdEObject::AddBoolPropertyL(CMdEPropertyDef& aDef, TBool aValue)
   185 	{
   194 	{
   186 
   195 
   294 	{
   303 	{
   295 	}
   304 	}
   296 
   305 
   297 EXPORT_C TBool CMdEObject::OpenForModifications() const
   306 EXPORT_C TBool CMdEObject::OpenForModifications() const
   298 	{
   307 	{
       
   308     if ( test->mdeobjectopenresult )
       
   309         {
       
   310         return EFalse;
       
   311         }
       
   312     else
       
   313         {
       
   314         return ETrue;
       
   315         }
   299 	}
   316 	}
   300 
   317 
   301 void CMdEObject::ClearObject( TBool aClearFlags )
   318 void CMdEObject::ClearObject( TBool aClearFlags )
   302 	{
   319 	{
   303 	}
   320 	}