equal
deleted
inserted
replaced
97 if (!objectInfo) |
97 if (!objectInfo) |
98 { |
98 { |
99 // The object handle has already been checked, so an invalid handle can |
99 // The object handle has already been checked, so an invalid handle can |
100 // only occur if it was invalidated during a context switch between |
100 // only occur if it was invalidated during a context switch between |
101 // the validation time and now. |
101 // the validation time and now. |
102 iError = EMTPRespCodeInvalidObjectHandle; |
102 SendResponseL(EMTPRespCodeInvalidObjectHandle); |
103 } |
103 } |
104 else if ( objectInfo->Uint(CMTPObjectMetaData::EFormatCode)==EMTPFormatCodeAssociation |
104 else if ( objectInfo->Uint(CMTPObjectMetaData::EFormatCode)==EMTPFormatCodeAssociation |
105 && objectInfo->Uint(CMTPObjectMetaData::EFormatSubCode)==EMTPAssociationTypeGenericFolder) |
105 && objectInfo->Uint(CMTPObjectMetaData::EFormatSubCode)==EMTPAssociationTypeGenericFolder) |
106 { |
106 { |
107 iError = EMTPRespCodeInvalidObjectHandle; |
107 SendResponseL(EMTPRespCodeInvalidObjectHandle); |
108 } |
108 } |
109 else |
109 else |
110 { |
110 { |
111 BuildFileObjectL(objectInfo->DesC(CMTPObjectMetaData::ESuid)); |
111 TRAPD(err, BuildFileObjectL(objectInfo->DesC(CMTPObjectMetaData::ESuid))); |
112 SendDataL(*iFileObject); |
112 if (err == KErrNone) |
|
113 { |
|
114 SendDataL(*iFileObject); |
|
115 } |
|
116 else |
|
117 { |
|
118 SendResponseL(EMTPRespCodeAccessDenied); |
|
119 } |
113 } |
120 } |
114 __FLOG(_L8("ServiceL - Exit")); |
121 __FLOG(_L8("ServiceL - Exit")); |
115 } |
122 } |
116 |
123 |
117 |
124 |