//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-/// @file PluginManagerImpl.h
-
-/// @brief
+/**
+ * @file
+ *
+ */
#ifndef __PLUGINMANAGERIMPL_H__
#define __PLUGINMANAGERIMPL_H__
#include "Plugin.h"
#include "CpluffAdapter.h"
-#include "FelixAdapter.h"
+
+#ifdef ANDROID
+ #include "FelixAdapter.h"
+#endif
namespace OIC
{
* During construction time, all plugins under the root plugin path will be loaded.
*
*/
- PluginManagerImpl();
+ PluginManagerImpl(void* args);
/**
* Virtual destructor
*/
virtual std::vector<Plugin> &getAllPlugins(void);
- static PluginManagerImpl *Getinstance()
+ static PluginManagerImpl *Getinstance(void *arg)
{
if (NULL == s_pinstance)
{
- s_pinstance = new PluginManagerImpl();
+ s_pinstance = new PluginManagerImpl(arg);
}
return s_pinstance;
private:
CpluffAdapter *cppm;
- FelixAdapter *javappm;
+ #ifdef ANDROID
+ FelixAdapter *javappm;
+ #endif
std::vector<Plugin> m_plugins;
static PluginManagerImpl *s_pinstance;
};
}
-#endif //__PLUGINMANAGERIMPL_H__
\ No newline at end of file
+#endif //__PLUGINMANAGERIMPL_H__