summaryrefslogtreecommitdiffstats
path: root/media/mtp/MtpServer.cpp
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-07-02 14:03:31 -0400
committerMike Lockwood <lockwood@android.com>2010-07-02 14:14:06 -0400
commit8dd2a39bae441143ebbb65237db63f65fdc1c645 (patch)
tree0e7af018d03c5b721eeef93e19f67bc32f5683b4 /media/mtp/MtpServer.cpp
parent39cae6e02b0267b6a578b0ba346b96af482a1434 (diff)
downloadframeworks_base-8dd2a39bae441143ebbb65237db63f65fdc1c645.zip
frameworks_base-8dd2a39bae441143ebbb65237db63f65fdc1c645.tar.gz
frameworks_base-8dd2a39bae441143ebbb65237db63f65fdc1c645.tar.bz2
MTP: Make MtpDatabase class abstract so we can have multiple implementations
Rename existing test database to MtpSqliteDatabase This is the first step in transitioning to using the media provider database Change-Id: I5f36c854c6e76a79137c267b000a52ced803776c Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'media/mtp/MtpServer.cpp')
-rw-r--r--media/mtp/MtpServer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/mtp/MtpServer.cpp b/media/mtp/MtpServer.cpp
index 0b99cb1..cc6fdad 100644
--- a/media/mtp/MtpServer.cpp
+++ b/media/mtp/MtpServer.cpp
@@ -25,9 +25,9 @@
#include <cutils/properties.h>
#include "MtpDebug.h"
-#include "MtpDatabase.h"
#include "MtpProperty.h"
#include "MtpServer.h"
+#include "MtpSqliteDatabase.h"
#include "MtpStorage.h"
#include "MtpStringBuffer.h"
@@ -122,7 +122,7 @@ MtpServer::MtpServer(int fd, const char* databasePath)
mSendObjectHandle(kInvalidObjectHandle),
mSendObjectFileSize(0)
{
- mDatabase = new MtpDatabase();
+ mDatabase = new MtpSqliteDatabase();
mDatabase->open(databasePath, true);
initObjectProperties();