author | hgs |
Fri, 03 Sep 2010 18:38:04 +0800 | |
changeset 49 | c20dd21d1eb4 |
parent 31 | a26669f87b46 |
permissions | -rw-r--r-- |
0
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
2 |
// All rights reserved. |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
3 |
// This component and the accompanying materials are made available |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
4 |
// under the terms of "Eclipse Public License v1.0" |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
5 |
// which accompanies this distribution, and is available |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
7 |
// |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
8 |
// Initial Contributors: |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
9 |
// Nokia Corporation - initial contribution. |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
10 |
// |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
11 |
// Contributors: |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
12 |
// |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
13 |
// Description: |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
14 |
// |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
15 |
|
31 | 16 |
|
0
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
17 |
#include <mtp/tmtptyperequest.h> |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
18 |
#include <mtp/mmtpdataproviderframework.h> |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
19 |
#include <mtp/mmtpobjectmgr.h> |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
20 |
#include <mtp/mmtpdataprovider.h> |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
21 |
#include <mtp/cmtpdataproviderplugin.h> |
17
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
22 |
#include <mtp/cmtpobjectmetadata.h> |
0
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
23 |
|
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
24 |
#include "cmtpdataprovidercontroller.h" |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
25 |
#include "cmtpdataprovider.h" |
18
1b39655331a3
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
17
diff
changeset
|
26 |
#include "cmtpdevicedatastore.h" |
20
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
27 |
#include "cmtpdataprovidercontroller.h" |
0
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
28 |
|
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
29 |
#include "cmtpgetnumobjects.h" |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
30 |
#include "mtpdevicedpconst.h" |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
31 |
#include "mtpdevdppanic.h" |
49 | 32 |
#include "OstTraceDefinitions.h" |
33 |
#ifdef OST_TRACE_COMPILER_IN_USE |
|
34 |
#include "cmtpgetnumobjectsTraces.h" |
|
35 |
#endif |
|
36 |
||
0
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
37 |
|
18
1b39655331a3
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
17
diff
changeset
|
38 |
// Class constants. |
20
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
39 |
static const TInt KMTPGetObjectNumTimeOut(1); |
17
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
40 |
|
0
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
41 |
/** |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
42 |
Verification data for GetNumObjects request |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
43 |
*/ |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
44 |
const TMTPRequestElementInfo KMTPGetNumObjectsPolicy[] = |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
45 |
{ |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
46 |
{TMTPTypeRequest::ERequestParameter1, EMTPElementTypeStorageId, EMTPElementAttrNone, 1, KMTPStorageAll, 0}, |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
47 |
{TMTPTypeRequest::ERequestParameter2, EMTPElementTypeFormatCode, EMTPElementAttrNone, 1, 0, 0}, |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
48 |
{TMTPTypeRequest::ERequestParameter3, EMTPElementTypeObjectHandle, EMTPElementAttrDir, 2, KMTPHandleAll, 0} |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
49 |
}; |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
50 |
|
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
51 |
/** |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
52 |
Two-phase construction method |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
53 |
@param aPlugin The data provider plugin |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
54 |
@param aFramework The data provider framework |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
55 |
@param aConnection The connection from which the request comes |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
56 |
@return a pointer to the created request processor object |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
57 |
*/ |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
58 |
MMTPRequestProcessor* CMTPGetNumObjects::NewL(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection) |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
59 |
{ |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
60 |
CMTPGetNumObjects* self = new (ELeave) CMTPGetNumObjects(aFramework, aConnection); |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
61 |
CleanupStack::PushL(self); |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
62 |
self->ConstructL(); |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
63 |
CleanupStack::Pop(); |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
64 |
return self; |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
65 |
} |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
66 |
|
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
67 |
/** |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
68 |
Destructor |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
69 |
*/ |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
70 |
CMTPGetNumObjects::~CMTPGetNumObjects() |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
71 |
{ |
17
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
72 |
iDevDpSingletons.Close(); |
0
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
73 |
iSingletons.Close(); |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
74 |
} |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
75 |
/** |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
76 |
Standard c++ constructor |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
77 |
*/ |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
78 |
CMTPGetNumObjects::CMTPGetNumObjects(MMTPDataProviderFramework& aFramework, MMTPConnection& aConnection) : |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
79 |
CMTPRequestProcessor(aFramework, aConnection, sizeof(KMTPGetNumObjectsPolicy)/sizeof(TMTPRequestElementInfo), KMTPGetNumObjectsPolicy) |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
80 |
{ |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
81 |
|
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
82 |
} |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
83 |
|
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
84 |
/** |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
85 |
Second phase constructor. |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
86 |
*/ |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
87 |
void CMTPGetNumObjects::ConstructL() |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
88 |
{ |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
89 |
iSingletons.OpenL(); |
17
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
90 |
iDevDpSingletons.OpenL(iFramework); |
0
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
91 |
} |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
92 |
|
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
93 |
TMTPResponseCode CMTPGetNumObjects::CheckRequestL() |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
94 |
{ |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
95 |
TMTPResponseCode responseCode = CMTPRequestProcessor::CheckRequestL(); |
17
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
96 |
if(responseCode != EMTPRespCodeOK) |
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
97 |
{ |
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
98 |
return responseCode; |
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
99 |
} |
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
100 |
|
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
101 |
TUint32 formatCode = Request().Uint32(TMTPTypeRequest::ERequestParameter2); |
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
102 |
if(formatCode != 0 && !IsSupportedFormatL(formatCode)) |
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
103 |
{ |
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
104 |
return EMTPRespCodeInvalidObjectFormatCode; |
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
105 |
} |
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
106 |
|
20
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
107 |
/* |
17
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
108 |
if(iSingletons.DpController().EnumerateState() != CMTPDataProviderController::EEnumeratedFulllyCompleted) |
0
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
109 |
{ |
17
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
110 |
TUint handle = Request().Uint32(TMTPTypeRequest::ERequestParameter3); |
20
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
111 |
if(handle != KMTPHandleAll) |
17
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
112 |
{ |
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
113 |
responseCode = EMTPRespCodeDeviceBusy; |
0
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
114 |
} |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
115 |
} |
20
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
116 |
*/ |
17
aabe5387f5ce
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
117 |
|
0
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
118 |
return responseCode; |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
119 |
} |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
120 |
|
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
121 |
|
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
122 |
/** |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
123 |
GetNumObjects request handler |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
124 |
*/ |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
125 |
void CMTPGetNumObjects::ServiceL() |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
126 |
{ |
49 | 127 |
OstTraceFunctionEntry0( CMTPGETNUMOBJECTS_SERVICEL_ENTRY ); |
128 |
OstTraceExt2( TRACE_NORMAL, CMTPGETNUMOBJECTS_SERVICEL, |
|
129 |
"IsConnectMac = %d; ERequestParameter2 = %d", iDevDpSingletons.DeviceDataStore().IsConnectMac(), Request().Uint32(TMTPTypeRequest::ERequestParameter2)); |
|
20
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
130 |
|
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
131 |
if(iSingletons.DpController().EnumerateState() != CMTPDataProviderController::EEnumeratedFulllyCompleted) |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
132 |
{ |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
133 |
TUint storageId = Request().Uint32(TMTPTypeRequest::ERequestParameter1); |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
134 |
TUint handle = Request().Uint32(TMTPTypeRequest::ERequestParameter3); |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
135 |
TUint enumerateState = iSingletons.DpController().StorageEnumerateState(storageId); |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
136 |
if ( (enumerateState < CMTPDataProviderController::EEnumeratingPhaseOneDone) |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
137 |
|| (enumerateState != CMTPDataProviderController::EEnumeratedFulllyCompleted && handle != KMTPHandleAll)) |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
138 |
{ |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
139 |
if (iTimeoutCount++ >= KMTPGetObjectNumTimeOut) |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
140 |
{ |
49 | 141 |
OstTrace0( TRACE_NORMAL, DUP1_CMTPGETNUMOBJECTS_SERVICEL, |
142 |
"Wait for enumeration time out, return busy." ); |
|
20
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
143 |
SendResponseL(EMTPRespCodeDeviceBusy); |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
144 |
iTimeoutCount = 0; |
49 | 145 |
OstTraceFunctionExit0( CMTPGETNUMOBJECTS_SERVICEL_EXIT ); |
20
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
146 |
return; |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
147 |
} |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
148 |
else |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
149 |
{ |
49 | 150 |
OstTrace0( TRACE_NORMAL, DUP2_CMTPGETNUMOBJECTS_SERVICEL, |
151 |
"Enumeration not completed, suspend request." ); |
|
20
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
152 |
RegisterPendingRequest(20); |
49 | 153 |
OstTraceFunctionExit0( DUP1_CMTPGETNUMOBJECTS_SERVICEL_EXIT ); |
20
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
154 |
return; |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
155 |
} |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
156 |
} |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
157 |
} |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
158 |
|
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
159 |
iTimeoutCount = 0; |
6e82ae192c3a
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
18
diff
changeset
|
160 |
|
18
1b39655331a3
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
17
diff
changeset
|
161 |
if(iDevDpSingletons.DeviceDataStore().IsConnectMac() |
1b39655331a3
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
17
diff
changeset
|
162 |
&&(KMTPFormatsAll == Request().Uint32(TMTPTypeRequest::ERequestParameter2))) |
1b39655331a3
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
17
diff
changeset
|
163 |
{ |
31 | 164 |
TUint32 count(0); |
165 |
CMTPTypeArray *handles = CMTPTypeArray::NewLC(EMTPTypeAUINT32); |
|
166 |
HandleObjectHandlesUnderMacL(*handles); |
|
167 |
count = handles->NumElements(); |
|
168 |
CleanupStack::PopAndDestroy(handles); |
|
49 | 169 |
OstTrace1( TRACE_NORMAL, DUP3_CMTPGETNUMOBJECTS_SERVICEL, |
170 |
"ConnectMac and Fetch all, total count = %d", count ); |
|
18
1b39655331a3
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
17
diff
changeset
|
171 |
SendResponseL(EMTPRespCodeOK, 1, &count); |
1b39655331a3
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
17
diff
changeset
|
172 |
} |
1b39655331a3
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
17
diff
changeset
|
173 |
else |
1b39655331a3
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
17
diff
changeset
|
174 |
{ |
1b39655331a3
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
17
diff
changeset
|
175 |
TMTPObjectMgrQueryParams params(Request().Uint32(TMTPTypeRequest::ERequestParameter1), Request().Uint32(TMTPTypeRequest::ERequestParameter2), Request().Uint32(TMTPTypeRequest::ERequestParameter3)); |
1b39655331a3
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
17
diff
changeset
|
176 |
TUint32 count = iFramework.ObjectMgr().CountL(params); |
49 | 177 |
OstTrace1( TRACE_NORMAL, DUP4_CMTPGETNUMOBJECTS_SERVICEL, |
178 |
"NOT ConnectMac or NOT Fetch all, total count = %d", count ); |
|
179 |
SendResponseL(EMTPRespCodeOK, 1, &count); |
|
18
1b39655331a3
Revision: 201005
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
17
diff
changeset
|
180 |
} |
49 | 181 |
OstTraceFunctionExit0( DUP2_CMTPGETNUMOBJECTS_SERVICEL_EXIT ); |
0
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
182 |
} |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
183 |
|
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
184 |
/** |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
185 |
Check if the format code is supported by the current installed data providers |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
186 |
*/ |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
187 |
TBool CMTPGetNumObjects::IsSupportedFormatL(TUint32 aFormatCode) |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
188 |
{ |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
189 |
TBool supported(EFalse); |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
190 |
|
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
191 |
CMTPDataProviderController& dps(iSingletons.DpController()); |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
192 |
const TInt count(dps.Count()); |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
193 |
for (TInt i(0); ((i < count) && (!supported)); i++) |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
194 |
{ |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
195 |
CMTPDataProvider& dp = dps.DataProviderByIndexL(i); |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
196 |
if (dp.DataProviderId() != dps.ProxyDpId()) |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
197 |
{ |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
198 |
supported = ( |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
199 |
dp.Supported(EObjectCaptureFormats, aFormatCode) || |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
200 |
dp.Supported(EObjectPlaybackFormats, aFormatCode)); |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
201 |
} |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
202 |
} |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
203 |
return supported; |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
204 |
} |
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
205 |
|
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
206 |
|
31 | 207 |
/** |
208 |
Handle special case under Mac. |
|
209 |
Only expose the Folder, Image File and Viedo, Script under Drive:\Images, Drive\Viedos |
|
210 |
*/ |
|
211 |
void CMTPGetNumObjects::HandleObjectHandlesUnderMacL(CMTPTypeArray &aObjectHandles) |
|
212 |
{ |
|
49 | 213 |
OstTraceFunctionEntry0( CMTPGETNUMOBJECTS_HANDLEOBJECTHANDLESUNDERMACL_ENTRY ); |
31 | 214 |
|
215 |
CMTPTypeArray* totalHandles = CMTPTypeArray::NewLC(EMTPTypeAUINT32); |
|
216 |
||
217 |
//get folder object handles |
|
218 |
GetObjectHandlesByFormatCodeL(EMTPFormatCodeAssociation,*totalHandles); |
|
219 |
||
220 |
//get image/jpeg object handles |
|
221 |
GetObjectHandlesByFormatCodeL(EMTPFormatCodeEXIFJPEG,*totalHandles); |
|
222 |
//get image/bmp object handles |
|
223 |
GetObjectHandlesByFormatCodeL(EMTPFormatCodeBMP,*totalHandles); |
|
224 |
//get image/jif object handles |
|
225 |
GetObjectHandlesByFormatCodeL(EMTPFormatCodeGIF,*totalHandles); |
|
226 |
//get image/jpeg object handles |
|
227 |
GetObjectHandlesByFormatCodeL(EMTPFormatCodePNG,*totalHandles); |
|
228 |
||
229 |
//get video/mp4 object handles |
|
230 |
GetObjectHandlesByFormatCodeL(EMTPFormatCodeMP4Container,*totalHandles); |
|
231 |
//get video/3gp object handles |
|
232 |
GetObjectHandlesByFormatCodeL(EMTPFormatCode3GPContainer,*totalHandles); |
|
233 |
//get video/wmv object handles |
|
234 |
GetObjectHandlesByFormatCodeL(EMTPFormatCodeWMV,*totalHandles); |
|
235 |
//get video/asf object handles |
|
236 |
GetObjectHandlesByFormatCodeL(EMTPFormatCodeASF,*totalHandles); |
|
237 |
||
238 |
//Filer the folder list, ?:\\Images\\* and ?:\\Videos\\* |
|
239 |
_LIT(KImagesFolderPre, "?:\\Images\\*"); |
|
240 |
_LIT(KViedosFolderPre, "?:\\Videos\\*"); |
|
241 |
||
242 |
const TUint KCount(totalHandles->NumElements()); |
|
243 |
||
244 |
for (TUint i(0); (i < KCount); i++)//handles loop |
|
245 |
{ |
|
246 |
CMTPObjectMetaData* object(CMTPObjectMetaData::NewLC()); |
|
247 |
iFramework.ObjectMgr().ObjectL(totalHandles->ElementUint(i),*object); |
|
248 |
const TDesC& suid(object->DesC(CMTPObjectMetaData::ESuid)); |
|
249 |
||
49 | 250 |
#ifdef OST_TRACE_COMPILER_IN_USE |
31 | 251 |
TBuf8<KMaxFileName> tmp; |
252 |
tmp.Copy(suid); |
|
49 | 253 |
OstTraceExt1( TRACE_NORMAL, DUP2_CMTPGETNUMOBJECTS_HANDLEOBJECTHANDLESUNDERMACL, |
254 |
"HandleObjectHandlesUnderMacL - suid: %s", tmp); |
|
255 |
#endif // OST_TRACE_COMPILER_IN_USE |
|
31 | 256 |
if((KErrNotFound != suid.MatchF(KImagesFolderPre)) || |
257 |
(KErrNotFound != suid.MatchF(KViedosFolderPre))) |
|
258 |
{ |
|
259 |
_LIT(KComma,","); |
|
260 |
_LIT(KLineation,"-"); |
|
261 |
_LIT(KUnderline,"_"); |
|
262 |
_LIT(Ksemicolon ,";"); |
|
263 |
if((KErrNotFound != suid.Find(KComma))|| |
|
264 |
(KErrNotFound != suid.Find(KLineation))|| |
|
265 |
(KErrNotFound != suid.Find(KUnderline))|| |
|
266 |
(KErrNotFound != suid.Find(Ksemicolon))) |
|
267 |
{ |
|
49 | 268 |
OstTrace0( TRACE_NORMAL, CMTPGETNUMOBJECTS_HANDLEOBJECTHANDLESUNDERMACL, |
269 |
"HandleObjectHandlesUnderMacL - Skip handle" ); |
|
31 | 270 |
} |
271 |
else |
|
272 |
{ |
|
49 | 273 |
OstTrace1( TRACE_NORMAL, DUP1_CMTPGETNUMOBJECTS_HANDLEOBJECTHANDLESUNDERMACL, |
274 |
"HandleObjectHandlesUnderMacL - Add handle: %x", totalHandles->ElementUint(i)); |
|
31 | 275 |
RArray<TUint> tmphandles; |
276 |
CleanupClosePushL(tmphandles); |
|
277 |
tmphandles.AppendL(totalHandles->ElementUint(i)); |
|
278 |
aObjectHandles.AppendL(tmphandles); |
|
279 |
CleanupStack::PopAndDestroy(&tmphandles); |
|
280 |
} |
|
281 |
} |
|
282 |
CleanupStack::PopAndDestroy(object); |
|
283 |
} |
|
284 |
||
285 |
CleanupStack::PopAndDestroy(totalHandles); |
|
286 |
//get script object handles |
|
287 |
GetObjectHandlesByFormatCodeL(EMTPFormatCodeScript,aObjectHandles); |
|
288 |
||
49 | 289 |
OstTraceFunctionExit0( CMTPGETNUMOBJECTS_HANDLEOBJECTHANDLESUNDERMACL_EXIT ); |
31 | 290 |
} |
291 |
/** |
|
292 |
Get Object Handles by format code |
|
293 |
*/ |
|
294 |
void CMTPGetNumObjects::GetObjectHandlesByFormatCodeL(TUint32 aFormatCode, CMTPTypeArray &aObjectHandles) |
|
295 |
{ |
|
49 | 296 |
OstTraceFunctionEntry0( CMTPGETNUMOBJECTS_GETOBJECTHANDLESBYFORMATCODEL_ENTRY ); |
297 |
OstTrace1( TRACE_NORMAL, CMTPGETNUMOBJECTS_GETOBJECTHANDLESBYFORMATCODEL, |
|
298 |
"FormatCode: %x", aFormatCode); |
|
31 | 299 |
RMTPObjectMgrQueryContext context; |
300 |
RArray<TUint> handles; |
|
301 |
CleanupClosePushL(context); |
|
302 |
CleanupClosePushL(handles); |
|
303 |
TMTPObjectMgrQueryParams paramsFolder(Request().Uint32(TMTPTypeRequest::ERequestParameter1), aFormatCode, Request().Uint32(TMTPTypeRequest::ERequestParameter3)); |
|
304 |
do |
|
305 |
{ |
|
306 |
iFramework.ObjectMgr().GetObjectHandlesL(paramsFolder, context, handles); |
|
307 |
aObjectHandles.AppendL(handles); |
|
308 |
} |
|
309 |
while (!context.QueryComplete()); |
|
310 |
CleanupStack::PopAndDestroy(&context); |
|
311 |
CleanupStack::PopAndDestroy(&handles); |
|
49 | 312 |
OstTraceFunctionExit0( CMTPGETNUMOBJECTS_GETOBJECTHANDLESBYFORMATCODEL_EXIT ); |
31 | 313 |
} |
0
d0791faffa3f
Revision: 201003
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
diff
changeset
|
314 |