summaryrefslogtreecommitdiffstats
path: root/media/mtp/MtpServer.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/mtp/MtpServer.h')
-rw-r--r--media/mtp/MtpServer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/media/mtp/MtpServer.h b/media/mtp/MtpServer.h
index 40f3c52..40329c5 100644
--- a/media/mtp/MtpServer.h
+++ b/media/mtp/MtpServer.h
@@ -28,6 +28,7 @@ namespace android {
class MtpStorage;
class MtpDatabase;
+class MtpProperty;
class MtpServer {
@@ -51,6 +52,9 @@ private:
MtpStorageList mStorages;
+ MtpPropertyList mObjectProperties;
+ MtpPropertyList mDeviceProperties;
+
// handle for new object, set by SendObjectInfo and used by SendObject
MtpObjectHandle mSendObjectHandle;
MtpString mSendObjectFilePath;
@@ -66,7 +70,12 @@ public:
void scanStorage();
void run();
+ MtpProperty* getObjectProperty(MtpPropertyCode propCode);
+ MtpProperty* getDeviceProperty(MtpPropertyCode propCode);
+
private:
+ void initObjectProperties();
+
bool handleRequest();
MtpResponseCode doGetDeviceInfo();