summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2009-09-03 10:49:55 -0700
committerMarco Nelissen <marcone@google.com>2009-09-03 11:22:28 -0700
commit8b0466170082fdf12f78d7b70358002520e99e9b (patch)
tree5ff6b49f1d9373e654df1a3a324883a05b6eb8a8 /include
parent04e1faf0f030ddb360180289fb798adbb3348dd4 (diff)
downloadframeworks_base-8b0466170082fdf12f78d7b70358002520e99e9b.zip
frameworks_base-8b0466170082fdf12f78d7b70358002520e99e9b.tar.gz
frameworks_base-8b0466170082fdf12f78d7b70358002520e99e9b.tar.bz2
When encountering a .nomedia file, notify the MediaScannerClient,
so that it can erase the data column for entries that are in the folder containing the .nomedia file. This prevents us from deleting (via a delete trigger) files when somebody adds a .nomedia file after the fact.
Diffstat (limited to 'include')
-rw-r--r--include/media/mediascanner.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/include/media/mediascanner.h b/include/media/mediascanner.h
index 7749566..cd0b86e 100644
--- a/include/media/mediascanner.h
+++ b/include/media/mediascanner.h
@@ -59,16 +59,17 @@ private:
class MediaScannerClient
{
public:
- MediaScannerClient();
- virtual ~MediaScannerClient();
- void setLocale(const char* locale);
- void beginFile();
- bool addStringTag(const char* name, const char* value);
- void endFile();
-
- virtual bool scanFile(const char* path, long long lastModified, long long fileSize) = 0;
- virtual bool handleStringTag(const char* name, const char* value) = 0;
- virtual bool setMimeType(const char* mimeType) = 0;
+ MediaScannerClient();
+ virtual ~MediaScannerClient();
+ void setLocale(const char* locale);
+ void beginFile();
+ bool addStringTag(const char* name, const char* value);
+ void endFile();
+
+ virtual bool scanFile(const char* path, long long lastModified, long long fileSize) = 0;
+ virtual bool handleStringTag(const char* name, const char* value) = 0;
+ virtual bool setMimeType(const char* mimeType) = 0;
+ virtual bool addNoMediaFolder(const char* path) = 0;
protected:
void convertValues(uint32_t encoding);