mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
596 B
22 lines
596 B
13 years ago
|
#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);
|
||
|
};
|