MMTPObjectMgr Class Reference
Defines the MTP data provider framework object store enumeration manager interface.
Member Functions Documentation
CommitReservedObjectHandleL(CMTPObjectMetaData &)
Commits into MTP data object enumeration store the object handle and storage space previously reserved for the specified object. This is typically used when either an MTP SendObjectInfo/SendObject, or SendObjectPropList/SendObject operation sequence has completed successfully.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
ReserveObjectHandleL
CountL(const TMTPObjectMgrQueryParams &)
Provides a count of the number of object meta data records present in the MTP data object enumeration store. This query can be targeted at specific storage media and/or object data formats, or can be used to query all MTP data objects on the device.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
GetObjectHandlesL(const TMTPObjectMgrQueryParams &, RMTPObjectMgrQueryContext &, RArray< TUint > &)
Provides an array of object handles present in the MTP data object enumeration store. This query can be targeted at specific storage media and/or object data formats, or can be used to query all MTP data objects on the device.
Depending on the query parameter specified, this query may incur significant RAM consumption, and so is intended to be called repeatedly in order to retrieve all matching SUID data. On completion, aContext can be used to determine if there is more data to be retrieved.If there are no object handles which match the specified parameters then a zero length SUID array is provided.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
GetObjectSuidsL(const TMTPObjectMgrQueryParams &, RMTPObjectMgrQueryContext &, CDesCArray &)
Provides an array of object SUIDs present in the MTP data object enumeration store. This query can be targeted at specific storage media and/or object data formats, or can be used to query all MTP data objects on the device.
Depending on the query parameter specified, this query may incur significant RAM consumption, and so is intended to be called repeatedly in order to retrieve all matching object SUID data. On completion, aContext can be used to determine if there is more data to be retrieved.If there are no object handles which match the specified parameters then a zero length SUID array is provided.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
HandleL(const TDesC &)
TUint32
|
HandleL
|
(
|
const
TDesC
&
|
aSuid
|
)
|
const [pure virtual]
|
Provides the MTP object handle of the object with the specified specified System Unique Identifier (SUID).
-
leave
-
One of the system wide error codes, if a processing failure occurs.
Parameters
const
TDesC
& aSuid
|
The object SUID.
|
InsertObjectL(CMTPObjectMetaData &)
Inserts a single object information record into the MTP data object enumeration store. A unique MTP object handle is assigned to the data object.
-
leave
-
KErrAlreadyExists, if an object with the specified MTP object SUID already exists in the MTP data object enumeration store.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
InsertObjectsL(RPointerArray< CMTPObjectMetaData > &)
Inserts multiple object meta data records in the MTP data object enumeration store. A unique MTP object handle is assigned to each of the data objects.
-
leave
-
KErrAlreadyExists, if an object with the one of the specified MTP object SUIDs already exists in the MTP data object enumeration store. already exists in the MTP data object enumeration store.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
ModifyObjectL(const CMTPObjectMetaData &)
Modifies the specified MTP data object's object information record.
Parameters
const
CMTPObjectMetaData
& aObject
|
The modified MTP data object information record values.
|
MtpDeltaDataMgr()
TAny
*
|
MtpDeltaDataMgr
|
(
|
)
|
[inline, virtual]
|
ObjectL(const TMTPTypeUint32 &, CMTPObjectMetaData &)
Provides either the object information record associated with the associated MTP object handle, or provides an indication that the specified object handle does not exist.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
Parameters
const
TMTPTypeUint32
& aHandle
|
The MTP object handle associated with the object information record to be provided.
|
CMTPObjectMetaData
& aObject
|
On exit, the object information record of the requested object.
|
ObjectL(const TDesC &, CMTPObjectMetaData &)
Provides the object information record associated with the associated MTP object SUID, or provides an indication that the specified object handle does not exist.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
Parameters
const
TDesC
& aSuid
|
The MTP object SUID associated with the object information record to be provided.
|
CMTPObjectMetaData
& aObject
|
On exit, the object information record of the requested object.
|
ObjectOwnerId(const TMTPTypeUint32 &)
Provides the ID of the data provider responsible for the specified MTP data object.
PuidL(TUint32)
Provides the Persistent Unique Identifier (PUID) of the object with the specified MTP object handle.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
Parameters
TUint32
aHandle
|
The MTP object handle.
|
PuidL(TInt64)
Provides the Persistent Unique Identifier (PUID) of the object with the specified internal object unique ID.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
Parameters
TInt64
aObjectUid
|
The internal object unique ID.
|
PuidL(const TDesC &)
Provides the Persistent Unique Identifier (PUID) of the object with the specified System Unique Identifier (SUID).
-
leave
-
One of the system wide error codes, if a processing failure occurs.
Parameters
const
TDesC
& aSuid
|
The object SUID.
|
RemoveObjectL(const TMTPTypeUint32 &)
Removes the object information record associated with the specified MTP object handle from the MTP data object enumeration store.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
Parameters
const
TMTPTypeUint32
& aHandle
|
The MTP object handle associated with the object information record to be removed.
|
RemoveObjectL(const TDesC &)
void
|
RemoveObjectL
|
(
|
const
TDesC
&
|
aSuid
|
)
|
[pure virtual]
|
Removes the object information record associated with the specified object SUID from the MTP data object enumeration store.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
Parameters
const
TDesC
& aSuid
|
The object SUID associated with the object information record to be removed.
|
RemoveObjectsL(const CDesCArray &)
void
|
RemoveObjectsL
|
(
|
const
CDesCArray
&
|
aSuids
|
)
|
[pure virtual]
|
Removes multiple object meta data records from the MTP data object enumeration store.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
Parameters
const
CDesCArray
& aSuids
|
The array of object SUIDs associated with the object meta data records to be removed.
|
RemoveObjectsL(TUint)
void
|
RemoveObjectsL
|
(
|
TUint
|
aDataProviderId
|
)
|
[pure virtual]
|
Removes from the MTP data object enumeration store all object meta data records owned by the specified data provider.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
Parameters
TUint
aDataProviderId
|
The ID of the data provider owning the object meta data records to be deleted.
|
ReserveObjectHandleL(CMTPObjectMetaData &, TUint64)
Reserves space for and assigns an object handle to the object described by the specified object information record. This is typically used when processing MTP SendObjectInfo or SendObjectPropList operations.
-
leave
-
KErrTooBig, if aSpaceRequired exceeds the available capacity of the storage.
-
leave
-
KErrOverflow, if an object handle cannot be assigned.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
CommitReservedObjectL UnReserveObjectHandleL
Parameters
CMTPObjectMetaData
& aObject
|
The object information record of the object. On successful completion this is updated with the assigned object handle.
|
TUint64
aSpaceRequired
|
The storage space to be reserved for the object.
|
UnreserveObjectHandleL(const CMTPObjectMetaData &)
Releases the object handle and storage space previously reserved for the specified object. This is typically used when either an MTP SendObjectInfo/SendObject, or SendObjectPropList/SendObject operation sequence has not completed successfully.
-
leave
-
One of the system wide error codes, if a processing failure occurs.
ReserveObjectHandleL
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.