Lines Matching defs:info
315 MtpDeviceInfo* info = new MtpDeviceInfo;
316 info->read(mData);
317 return info;
348 MtpStorageInfo* info = new MtpStorageInfo(storageID);
349 info->read(mData);
350 return info;
387 MtpObjectInfo* info = new MtpObjectInfo(handle);
388 info->read(mData);
389 return info;
409 MtpObjectHandle MtpDevice::sendObjectInfo(MtpObjectInfo* info) {
413 MtpObjectHandle parent = info->mParent;
417 mRequest.setParameter(1, info->mStorageID);
418 mRequest.setParameter(2, info->mParent);
420 mData.putUInt32(info->mStorageID);
421 mData.putUInt16(info->mFormat);
422 mData.putUInt16(info->mProtectionStatus);
423 mData.putUInt32(info->mCompressedSize);
424 mData.putUInt16(info->mThumbFormat);
425 mData.putUInt32(info->mThumbCompressedSize);
426 mData.putUInt32(info->mThumbPixWidth);
427 mData.putUInt32(info->mThumbPixHeight);
428 mData.putUInt32(info->mImagePixWidth);
429 mData.putUInt32(info->mImagePixHeight);
430 mData.putUInt32(info->mImagePixDepth);
431 mData.putUInt32(info->mParent);
432 mData.putUInt16(info->mAssociationType);
433 mData.putUInt32(info->mAssociationDesc);
434 mData.putUInt32(info->mSequenceNumber);
435 mData.putString(info->mName);
438 formatDateTime(info->mDateCreated, created, sizeof(created));
439 formatDateTime(info->mDateModified, modified, sizeof(modified));
443 if (info->mKeywords)
444 mData.putString(info->mKeywords);
451 info->mStorageID = mResponse.getParameter(1);
452 info->mParent = mResponse.getParameter(2);
453 info->mHandle = mResponse.getParameter(3);
454 return info->mHandle;
460 bool MtpDevice::sendObject(MtpObjectInfo* info, int srcFD) {
463 int remaining = info->mCompressedSize;
465 mRequest.setParameter(1, info->mHandle);
500 MtpObjectInfo* info = getObjectInfo(handle);
501 if (info) {
502 MtpObjectHandle parent = info->mParent;
503 delete info;
511 MtpObjectInfo* info = getObjectInfo(handle);
512 if (info) {
513 MtpObjectHandle storageId = info->mStorageID;
514 delete info;