18182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood/* 28182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Copyright (C) 2010 The Android Open Source Project 38182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 48182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Licensed under the Apache License, Version 2.0 (the "License"); 58182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * you may not use this file except in compliance with the License. 68182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * You may obtain a copy of the License at 78182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 88182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * http://www.apache.org/licenses/LICENSE-2.0 98182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 108182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Unless required by applicable law or agreed to in writing, software 118182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * distributed under the License is distributed on an "AS IS" BASIS, 128182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 138182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * See the License for the specific language governing permissions and 148182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * limitations under the License. 158182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 168182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 178182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwoodpackage android.mtp; 188182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 198182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood/** 208182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * This class encapsulates information about an object on an MTP device. 218182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * This corresponds to the ObjectInfo Dataset described in 228182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * section 5.3.1 of the MTP specification. 238182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 248182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwoodpublic final class MtpObjectInfo { 258182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mHandle; 268182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mStorageId; 278182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mFormat; 288182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mProtectionStatus; 298182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mCompressedSize; 308182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mThumbFormat; 318182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mThumbCompressedSize; 328182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mThumbPixWidth; 338182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mThumbPixHeight; 348182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mImagePixWidth; 358182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mImagePixHeight; 368182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mImagePixDepth; 378182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mParent; 388182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mAssociationType; 398182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mAssociationDesc; 408182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private int mSequenceNumber; 418182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private String mName; 428182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private long mDateCreated; 438182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private long mDateModified; 448182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private String mKeywords; 458182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 468182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood // only instantiated via JNI 478182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood private MtpObjectInfo() { 488182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 498182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 508182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 518182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the object handle for the MTP object 528182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 538182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the object handle 548182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 558182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getObjectHandle() { 568182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mHandle; 578182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 588182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 598182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 608182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the storage ID for the MTP object's storage unit 618182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 628182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the storage ID 638182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 648182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getStorageId() { 658182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mStorageId; 668182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 678182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 688182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 698182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the format code for the MTP object 708182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 718182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the format code 728182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 738182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getFormat() { 748182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mFormat; 758182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 768182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 778182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 788182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the protection status for the MTP object 798182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Possible values are: 808182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 818182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * <ul> 828182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * <li> {@link android.mtp.MtpConstants#PROTECTION_STATUS_NONE} 838182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * <li> {@link android.mtp.MtpConstants#PROTECTION_STATUS_READ_ONLY} 848182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * <li> {@link android.mtp.MtpConstants#PROTECTION_STATUS_NON_TRANSFERABLE_DATA} 858182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * </ul> 868182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 878182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the protection status 888182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 898182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getProtectionStatus() { 908182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mProtectionStatus; 918182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 928182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 938182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 948182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the size of the MTP object 958182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 968182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the object size 978182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 988182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getCompressedSize() { 998182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mCompressedSize; 1008182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 1018182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 1028182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 1038182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the format code for the MTP object's thumbnail 1048182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Will be zero for objects with no thumbnail 1058182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 1068182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the thumbnail format code 1078182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 1088182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getThumbFormat() { 1098182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mThumbFormat; 1108182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 1118182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 1128182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 1138182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the size of the MTP object's thumbnail 1148182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Will be zero for objects with no thumbnail 1158182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 1168182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the thumbnail size 1178182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 1188182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getThumbCompressedSize() { 1198182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mThumbCompressedSize; 1208182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 1218182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 1228182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 1238182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the width of the MTP object's thumbnail in pixels 1248182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Will be zero for objects with no thumbnail 1258182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 1268182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the thumbnail width 1278182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 1288182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getThumbPixWidth() { 1298182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mThumbPixWidth; 1308182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 1318182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 1328182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 1338182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the height of the MTP object's thumbnail in pixels 1348182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Will be zero for objects with no thumbnail 1358182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 1368182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the thumbnail height 1378182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 1388182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getThumbPixHeight() { 1398182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mThumbPixHeight; 1408182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 1418182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 1428182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 1438182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the width of the MTP object in pixels 1448182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Will be zero for non-image objects 1458182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 1468182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the image width 1478182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 1488182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getImagePixWidth() { 1498182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mImagePixWidth; 1508182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 1518182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 1528182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 1538182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the height of the MTP object in pixels 1548182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Will be zero for non-image objects 1558182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 1568182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the image height 1578182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 1588182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getImagePixHeight() { 1598182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mImagePixHeight; 1608182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 1618182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 1628182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 1638182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the depth of the MTP object in bits per pixel 1648182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Will be zero for non-image objects 1658182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 1668182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the image depth 1678182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 1688182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getImagePixDepth() { 1698182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mImagePixDepth; 1708182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 1718182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 1728182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 1738182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the object handle for the object's parent 1748182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Will be zero for the root directory of a storage unit 1758182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 1768182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the object's parent 1778182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 1788182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getParent() { 1798182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mParent; 1808182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 1818182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 1828182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 1838182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the association type for the MTP object 1848182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Will be zero objects that are not of format 1858182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * {@link android.mtp.MtpConstants#FORMAT_ASSOCIATION} 1868182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * For directories the association type is typically 1878182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * {@link android.mtp.MtpConstants#ASSOCIATION_TYPE_GENERIC_FOLDER} 1888182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 1898182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the object's association type 1908182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 1918182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getAssociationType() { 1928182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mAssociationType; 1938182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 1948182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 1958182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 1968182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the association description for the MTP object 1978182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Will be zero objects that are not of format 1988182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * {@link android.mtp.MtpConstants#FORMAT_ASSOCIATION} 1998182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 2008182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the object's association description 2018182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 2028182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getAssociationDesc() { 2038182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mAssociationDesc; 2048182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 2058182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 2068182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 2078182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the sequence number for the MTP object 2088182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * This field is typically not used for MTP devices, 2098182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * but is sometimes used to define a sequence of photos 2108182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * on PTP cameras. 2118182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 2128182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the object's sequence number 2138182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 2148182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final int getSequenceNumber() { 2158182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mSequenceNumber; 2168182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 2178182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 2188182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 2198182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the name of the MTP object 2208182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 2218182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the object's name 2228182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 2238182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final String getName() { 2248182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mName; 2258182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 2268182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 2278182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 2288182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the creation date of the MTP object 2298182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * The value is represented as milliseconds since January 1, 1970 2308182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 2318182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the object's creation date 2328182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 2338182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final long getDateCreated() { 2348182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mDateCreated; 2358182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 2368182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 2378182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 2388182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns the modification date of the MTP object 2398182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * The value is represented as milliseconds since January 1, 1970 2408182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 2418182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the object's modification date 2428182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 2438182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final long getDateModified() { 2448182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mDateModified; 2458182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 2468182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood 2478182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood /** 2488182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * Returns a comma separated list of keywords for the MTP object 2498182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * 2508182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood * @return the object's keyword list 2518182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood */ 2528182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood public final String getKeywords() { 2538182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood return mKeywords; 2548182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood } 2558182e72479a8b0d832df9c392890b25bfa6f97b5Mike Lockwood} 256