Name

PluginLoader — Provides information about registered plugins.

Synopsis

class PluginLoader
  :  : public SimpleWrappedObjectSernaApi::SimpleWrappedObject
 {
public:
  // construct/copy/destruct
  PluginLoader(SernaApiBase * = 0);
  PluginLoader(const PluginLoader &);
  PluginLoader& operator=(const PluginLoader &);
  ~PluginLoader();

  // public member functions

  PropertyNode getPluginProps() const;
  bool isEnabled(const PropertyNode &) const;
  bool isLoaded(const PropertyNode &, const SernaDoc &) const;

  // public static functions

  PluginLoader instance() ;

  static const SString PLUGIN_NAME;
  static const SString PLUGIN_DESC;
  static const SString LOAD_FOR;
  static const SString PLUGIN_DLL;
  static const SString RESOLVED_DLL;
  static const SString PLUGIN_VENDOR;
  static const SString PLUGIN_DATA;
  static const SString IS_DISABLED;
  static const SString PRELOAD_DLL;
  static const SString RESOLVED_PATH;
  static const SString SPD_FILE_NAME;
};

Description

PluginLoader construct/copy/destruct

  1. PluginLoader(SernaApiBase * = 0);


  2. PluginLoader(const PluginLoader & );


  3. PluginLoader& operator=(const PluginLoader & );


  4. ~PluginLoader();


PluginLoader public member functions

  1. PropertyNode getPluginProps() const;

    Accessors to plugin descriptors. Children of returned property are "serna-plugin" property subtrees.


  2. bool isEnabled(const PropertyNode & pluginProps) const;

    Returns true if requested plugin is enabled in Serna.


  3. bool isLoaded(const PropertyNode & pluginProps, const SernaDoc & doc) const;

    Returns true if requested plugin is loaded for given document.


PluginLoader public static functions

  1. PluginLoader instance() ;

    Returns reference to PluginLoader instance.