mmappcomponents/mmmtpdataprovider/tsrc/mtpdataprovidertestmodule/src/ctestobjectmanager.cpp
equal
deleted
inserted
replaced
82 |
82 |
83 void CTestObjectManager::GetObjectHandlesL( |
83 void CTestObjectManager::GetObjectHandlesL( |
84 const TMTPObjectMgrQueryParams& aParams, |
84 const TMTPObjectMgrQueryParams& aParams, |
85 RMTPObjectMgrQueryContext& aContext, RArray<TUint>& aHandles ) const |
85 RMTPObjectMgrQueryContext& aContext, RArray<TUint>& aHandles ) const |
86 { |
86 { |
87 CleanupClosePushL( aHandles ); |
|
88 PRINTF3( ">CTestObjectManager::GetObjectHandlesL storage = 0x%x parent = 0x%x format = 0x%x", aParams.iStorageId, aParams.iParentHandle, aParams.iFormatCode ); |
87 PRINTF3( ">CTestObjectManager::GetObjectHandlesL storage = 0x%x parent = 0x%x format = 0x%x", aParams.iStorageId, aParams.iParentHandle, aParams.iFormatCode ); |
89 for ( TInt i = 0; i < iMTPObjects.Count(); i++ ) |
88 for ( TInt i = 0; i < iMTPObjects.Count(); i++ ) |
90 { |
89 { |
91 TUint handle = iMTPObjects[i]->Uint( CMTPObjectMetaData::EHandle ); |
90 TUint handle = iMTPObjects[i]->Uint( CMTPObjectMetaData::EHandle ); |
92 TUint formatCode = iMTPObjects[i]->Uint( CMTPObjectMetaData::EFormatCode ); |
91 TUint formatCode = iMTPObjects[i]->Uint( CMTPObjectMetaData::EFormatCode ); |
102 aHandles.AppendL( handle ); |
101 aHandles.AppendL( handle ); |
103 } |
102 } |
104 } |
103 } |
105 aContext.Close(); |
104 aContext.Close(); |
106 PRINTF0( "<CTestObjectManager::GetObjectHandlesL" ); |
105 PRINTF0( "<CTestObjectManager::GetObjectHandlesL" ); |
107 CleanupStack::Pop(); |
|
108 } |
106 } |
109 |
107 |
110 void CTestObjectManager::GetObjectSuidsL( |
108 void CTestObjectManager::GetObjectSuidsL( |
111 const TMTPObjectMgrQueryParams& aParams, |
109 const TMTPObjectMgrQueryParams& aParams, |
112 RMTPObjectMgrQueryContext& aContext, CDesCArray& aSuids ) const |
110 RMTPObjectMgrQueryContext& aContext, CDesCArray& aSuids ) const |