mirror of
https://github.com/opencv/opencv.git
synced 2024-12-15 09:49:13 +08:00
22 lines
596 B
C++
22 lines
596 B
C++
#include "IPackageManager.h"
|
|
#include "CommonPackageManager.h"
|
|
#include <jni.h>
|
|
#include <vector>
|
|
|
|
class JavaBasedPackageManager: public CommonPackageManager
|
|
{
|
|
public:
|
|
JavaBasedPackageManager(JavaVM* JavaMashine, jobject MarketConector);
|
|
virtual ~JavaBasedPackageManager();
|
|
|
|
protected:
|
|
virtual bool InstallPackage(const PackageInfo& package);
|
|
virtual std::vector<PackageInfo> GetInstalledPackages();
|
|
|
|
private:
|
|
JavaVM* JavaContext;
|
|
jobject JavaPackageManager;
|
|
|
|
JavaBasedPackageManager();
|
|
PackageInfo ConvertPackageFromJava(jobject package, JNIEnv* jenv);
|
|
}; |