videocollection/mpxmyvideoscollection/tsrc/ut_vcxmyvideosmdsdb/src/mdeobject.cpp
branchRCL_3
changeset 15 8f0df5c82986
child 16 67eb01668b0e
equal deleted inserted replaced
14:55fa1ec415c6 15:8f0df5c82986
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include <mdeobject.h>
       
    20 
       
    21 #include <mdeproperty.h>
       
    22 #include <mdeobjectdef.h>
       
    23 #include <mdenamespacedef.h>
       
    24 #include <mdesession.h>
       
    25 
       
    26 //////////////////////////////
       
    27 //                          //
       
    28 //        TMdEObject        //
       
    29 //                          //
       
    30 //////////////////////////////
       
    31 
       
    32 EXPORT_C TMdEObject::TMdEObject() : 
       
    33 	iDef( NULL )
       
    34 	{
       
    35 	}
       
    36 
       
    37 EXPORT_C TItemId TMdEObject::Id() const
       
    38 	{
       
    39 	}
       
    40 
       
    41 EXPORT_C const CMdEObjectDef& TMdEObject::DefL() const
       
    42 	{
       
    43 	}
       
    44 
       
    45 EXPORT_C TBool TMdEObject::Confidential() const
       
    46 	{
       
    47 	}
       
    48 
       
    49 EXPORT_C TBool TMdEObject::Placeholder() const
       
    50 	{
       
    51 	}
       
    52 
       
    53 EXPORT_C TBool TMdEObject::Removed() const
       
    54 	{
       
    55 	}
       
    56 
       
    57 EXPORT_C TBool TMdEObject::NotPresent() const
       
    58 	{
       
    59 	}
       
    60 
       
    61 TUint32 TMdEObject::RequiredBufferSize()
       
    62 	{
       
    63 	}
       
    64 
       
    65 void TMdEObject::DeSerializeL(CMdCSerializationBuffer& aBuffer, 
       
    66 		CMdENamespaceDef& aNamespaceDef)
       
    67 	{
       
    68 	}
       
    69 
       
    70 //////////////////////////////
       
    71 //                          //
       
    72 //        CMdEObject        //
       
    73 //                          //
       
    74 //////////////////////////////
       
    75 
       
    76 CMdEObject* CMdEObject::NewL( CMdEObjectDef& aDef, const TDesC& aUri, TUint32 aMediaId )
       
    77 	{
       
    78     CMdEObject* nev = new CMdEObject(NULL,aMediaId,aDef);
       
    79     return nev;
       
    80 	}
       
    81 
       
    82 CMdEObject* CMdEObject::NewLC( CMdEObjectDef& aDef, const TDesC& aUri, TUint32 aMediaId )
       
    83 	{
       
    84     CMdEObject* nev = new CMdEObject(NULL,aMediaId,aDef);
       
    85     CleanupStack::PushL( nev );
       
    86     return nev;
       
    87 	}
       
    88 
       
    89 CMdEObject::CMdEObject(CMdESession* aSession, TItemId aId, CMdEObjectDef& aDef)
       
    90 		: CMdEInstanceItem( aSession, aId), iDef( &aDef )
       
    91 	{
       
    92 	}
       
    93 
       
    94 void CMdEObject::ConstructL( const TDesC& aUri, TUint32 aMediaId )
       
    95 	{
       
    96    	}
       
    97 
       
    98 CMdEObject::~CMdEObject()
       
    99 	{
       
   100     delete iProperty;
       
   101 	}
       
   102 
       
   103 EXPORT_C CMdEObjectDef& CMdEObject::Def() const
       
   104 	{
       
   105 	}
       
   106 
       
   107 EXPORT_C void CMdEObject::SetDefL(CMdEObjectDef& aDef)
       
   108 	{
       
   109 	}
       
   110 
       
   111 EXPORT_C const TDesC& CMdEObject::Uri() const
       
   112 	{
       
   113     return KNullDesC();
       
   114 	}
       
   115 
       
   116 EXPORT_C void CMdEObject::SetUriL(const TDesC& aUri)
       
   117 	{
       
   118 	}
       
   119 
       
   120 EXPORT_C TUint32 CMdEObject::MediaId() const
       
   121 	{
       
   122 	}
       
   123 
       
   124 EXPORT_C void CMdEObject::SetMediaId(TUint32 aMediaId)
       
   125 	{
       
   126 	}
       
   127 
       
   128 EXPORT_C TUint32 CMdEObject::UsageCount() const
       
   129 	{
       
   130 	}
       
   131 
       
   132 EXPORT_C void CMdEObject::Guid( TInt64& aGuidHigh, TInt64& aGuidLow ) const
       
   133 	{
       
   134 	}
       
   135 	
       
   136 EXPORT_C void CMdEObject::SetGuid( const TInt64& aGuidHigh, const TInt64& aGuidLow )
       
   137 	{
       
   138 	}
       
   139 
       
   140 
       
   141 EXPORT_C TBool CMdEObject::Confidential() const
       
   142 	{
       
   143 	}
       
   144 
       
   145 EXPORT_C void CMdEObject::SetConfidential( TBool aValue )
       
   146 	{
       
   147     
       
   148 	}
       
   149 
       
   150 EXPORT_C TBool CMdEObject::Placeholder() const
       
   151 	{
       
   152 	}
       
   153 
       
   154 EXPORT_C void CMdEObject::SetPlaceholder( TBool aValue )
       
   155 	{
       
   156 	}
       
   157 
       
   158 void CMdEObject::DoSetUriL(const TDesC& aUri)
       
   159 	{
       
   160 	}
       
   161 
       
   162 EXPORT_C TInt CMdEObject::PropertyCount() const
       
   163 	{
       
   164 	}
       
   165 
       
   166 EXPORT_C CMdEProperty& CMdEObject::PropertyL(TInt aIndex) const
       
   167 	{
       
   168 	}
       
   169 
       
   170 EXPORT_C TInt CMdEObject::PropertyCount(const CMdEPropertyDef& aDef) const
       
   171 	{
       
   172 	}
       
   173 
       
   174 EXPORT_C TInt CMdEObject::Property(const CMdEPropertyDef& aDef, CMdEProperty*& aProperty, TInt aStartAt) const
       
   175     {
       
   176     if( !iProperty )
       
   177         {
       
   178         iProperty = new CMdEProperty();
       
   179         }
       
   180     
       
   181     aProperty = iProperty;
       
   182     }
       
   183     
       
   184 EXPORT_C CMdEProperty& CMdEObject::AddBoolPropertyL(CMdEPropertyDef& aDef, TBool aValue)
       
   185 	{
       
   186 
       
   187 	}
       
   188 
       
   189 EXPORT_C CMdEProperty& CMdEObject::AddInt8PropertyL(CMdEPropertyDef& aDef, TInt8 aValue)
       
   190 	{
       
   191 	}
       
   192 
       
   193 EXPORT_C CMdEProperty& CMdEObject::AddUint8PropertyL(CMdEPropertyDef& aDef, TUint8 aValue)
       
   194 	{
       
   195 	}
       
   196 
       
   197 EXPORT_C CMdEProperty& CMdEObject::AddInt16PropertyL(CMdEPropertyDef& aDef, TInt16 aValue)
       
   198 	{
       
   199 	}
       
   200 
       
   201 EXPORT_C CMdEProperty& CMdEObject::AddUint16PropertyL(CMdEPropertyDef& aDef, TUint16 aValue)
       
   202 	{
       
   203 	}
       
   204 
       
   205 EXPORT_C CMdEProperty& CMdEObject::AddInt32PropertyL(CMdEPropertyDef& aDef, TInt32 aValue)
       
   206 	{
       
   207 	}
       
   208 
       
   209 EXPORT_C CMdEProperty& CMdEObject::AddUint32PropertyL(CMdEPropertyDef& aDef, TUint32 aValue)
       
   210 	{
       
   211 	}
       
   212 
       
   213 EXPORT_C CMdEProperty& CMdEObject::AddInt64PropertyL(CMdEPropertyDef& aDef, TInt64 aValue)
       
   214 	{
       
   215 	}
       
   216 
       
   217 EXPORT_C CMdEProperty& CMdEObject::AddReal32PropertyL(CMdEPropertyDef& aDef, TReal32 aValue)
       
   218 	{
       
   219 	}
       
   220 
       
   221 EXPORT_C CMdEProperty& CMdEObject::AddReal64PropertyL(CMdEPropertyDef& aDef, TReal64 aValue)
       
   222 	{
       
   223 	}
       
   224 
       
   225 EXPORT_C CMdEProperty& CMdEObject::AddTextPropertyL(CMdEPropertyDef& aDef, const TDesC& aValue)
       
   226 	{
       
   227 	}
       
   228 
       
   229 EXPORT_C CMdEProperty& CMdEObject::AddTimePropertyL(CMdEPropertyDef& aDef, TTime aValue)
       
   230 	{
       
   231 
       
   232 	}
       
   233 
       
   234 void CMdEObject::DoAddPropertyL(CMdEProperty& aProperty)
       
   235 	{
       
   236 	}
       
   237 
       
   238 EXPORT_C void CMdEObject::RemoveProperty(TInt aIndex)
       
   239 	{
       
   240 	}
       
   241 
       
   242 TInt CMdEObject::CompareProperties(const CMdEProperty& aFirst, const CMdEProperty& aSecond)
       
   243 	{
       
   244 	}
       
   245 
       
   246 EXPORT_C TInt CMdEObject::FreeTextCount() const
       
   247 	{
       
   248 	return iFreeTextArray.Count();
       
   249 	}
       
   250 
       
   251 EXPORT_C TPtrC CMdEObject::FreeText(TInt aIndex) const
       
   252 	{
       
   253 	return *iFreeTextArray[aIndex];
       
   254 	}
       
   255 
       
   256 EXPORT_C TInt CMdEObject::FreeTextIndex(const TDesC& aFreeText) const
       
   257 	{
       
   258 	}
       
   259 
       
   260 EXPORT_C void CMdEObject::AddFreeTextL(const TDesC& aFreeText)
       
   261 	{
       
   262 	}
       
   263 
       
   264 TInt CMdEObject::DoAddFreeTextL(const HBufC& aFreeText)
       
   265 	{
       
   266 	}
       
   267 
       
   268 EXPORT_C void CMdEObject::RemoveFreeText(TInt aIndex)
       
   269 	{
       
   270 	}
       
   271 
       
   272 TInt CMdEObject::CompareFreeTexts(const HBufC& aFirst, const HBufC& aSecond)
       
   273 	{
       
   274 	}
       
   275 
       
   276 EXPORT_C void CMdEObject::MovePropertiesL(CMdEObject& aObject)
       
   277 	{
       
   278 	}
       
   279 
       
   280 
       
   281 TBool CMdEObject::ObjectModified() const
       
   282     {
       
   283     }
       
   284 
       
   285 TBool CMdEObject::FreeTextModified() const
       
   286     {
       
   287     }
       
   288 
       
   289 TBool CMdEObject::PropertyModified() const
       
   290     {
       
   291     }
       
   292 
       
   293 void CMdEObject::AutoLockL() const
       
   294 	{
       
   295 	}
       
   296 
       
   297 EXPORT_C TBool CMdEObject::OpenForModifications() const
       
   298 	{
       
   299 	}
       
   300 
       
   301 void CMdEObject::ClearObject( TBool aClearFlags )
       
   302 	{
       
   303 	}
       
   304 
       
   305 void CMdEObject::SetNotOpenForModifications()
       
   306 	{
       
   307 	}
       
   308 
       
   309 TUint32 CMdEObject::ModifiedPropertiesCount() const
       
   310 	{
       
   311 	}
       
   312 
       
   313 TUint32 CMdEObject::RequiredBufferSize() const
       
   314 	{
       
   315 	}
       
   316 
       
   317 TMdCOffset CMdEObject::SerializeL(CMdCSerializationBuffer& aBuffer, TMdCOffset aFreespaceOffset) const
       
   318 	{
       
   319 	}
       
   320 
       
   321 CMdEObject* CMdEObject::NewL( CMdESession* aSession, CMdCSerializationBuffer& aBuffer, CMdENamespaceDef& aNamespaceDef )
       
   322 	{
       
   323 	}
       
   324 
       
   325 
       
   326 CMdEObject* CMdEObject::NewLC( CMdESession* aSession, CMdCSerializationBuffer& aBuffer, CMdENamespaceDef& aNamespaceDef )
       
   327 	{
       
   328 	}
       
   329 
       
   330 TMdEInstanceType CMdEObject::InstanceType() const
       
   331 	{
       
   332 	}
       
   333