forked from lubuwest/Friendiqa
v0.1
This commit is contained in:
parent
591d55f43a
commit
fb560b54b1
115 changed files with 5537 additions and 0 deletions
|
@ -0,0 +1,16 @@
|
|||
#include "mediascannerconnection.h"
|
||||
#include <AndroidNative/systemdispatcher.h>
|
||||
|
||||
static bool loadedClass = false;
|
||||
|
||||
void AndroidNative::MediaScannerConnection::scanFile(const QString &path)
|
||||
{
|
||||
if (!loadedClass) {
|
||||
SystemDispatcher::instance()->loadClass("androidnative.MediaScanner");
|
||||
loadedClass = true;
|
||||
}
|
||||
|
||||
QVariantMap map;
|
||||
map["path"] = path;
|
||||
SystemDispatcher::instance()->dispatch("androidnative.MediaScanner.scanFile", map);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue