MtpDeviceInfo.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. * Copyright (C) 2010 The Android Open Source Project
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef _MTP_DEVICE_INFO_H
  17. #define _MTP_DEVICE_INFO_H
  18. struct stat;
  19. namespace android {
  20. class MtpDataPacket;
  21. class MtpDeviceInfo {
  22. public:
  23. uint16_t mStandardVersion;
  24. uint32_t mVendorExtensionID;
  25. uint16_t mVendorExtensionVersion;
  26. char* mVendorExtensionDesc;
  27. uint16_t mFunctionalMode;
  28. UInt16List* mOperations;
  29. UInt16List* mEvents;
  30. MtpDevicePropertyList* mDeviceProperties;
  31. MtpObjectFormatList* mCaptureFormats;
  32. MtpObjectFormatList* mPlaybackFormats;
  33. char* mManufacturer;
  34. char* mModel;
  35. char* mVersion;
  36. char* mSerial;
  37. public:
  38. MtpDeviceInfo();
  39. virtual ~MtpDeviceInfo();
  40. bool read(MtpDataPacket& packet);
  41. void print();
  42. };
  43. }; // namespace android
  44. #endif // _MTP_DEVICE_INFO_H