Represents the root structure for the library. More...
#include <aprillibrary.h>
Classes | |
| struct | LibProps | 
| entire set of properties  More... | |
Public Member Functions | |
| AprilLibrary (QObject *parent=NULL) | |
| constructor;  | |
| virtual | ~AprilLibrary (void) | 
| destructor;  | |
Static Public Member Functions | |
| static AprilLibrary * | unique (void) | 
| the one and only instance  | |
Plug-in related functionality  | |
| static AprilPluginInterf * | loadPlugIn (const QString &s) | 
| load a plug-in from the file indicated (may be relative to current directory)  | |
| static bool | unloadPlugIn (const QString &s) | 
| unload a plug-in based on file name (may be relative to current directory)  | |
| static bool | unloadPlugIn (AprilPluginInterf *p) | 
| unload a plug-in  | |
| static bool | unloadPlugIn (AprilPluginLoader *pld) | 
| unload a plug-in  | |
| static AprilPluginInterf * | findPlugIn (const QString &s) | 
| get the plug-in for a certain file (must be absolute path)  | |
| static AprilPluginLoader * | findPlugInLoader (const QString &s) | 
| get the plug-in loader for a certain file (must be absolute path)  | |
| static AprilPluginInterf * | findPlugInRel (const QString &s) | 
| get the plug-in for a certain file (may be relative to current directory)  | |
| static AprilPluginLoader * | findPlugInLoaderRel (const QString &s) | 
| get the plug-in loader for a certain file (may be relative to current directory)  | |
| static AprilPluginLoader * | firstPlugin (void) | 
| first plug-in  | |
| static int | pluginsCount (void) | 
| the number of plug-ins  | |
| static AprilPluginLoader * | pluginAt (int i) | 
| get a plug-in at aspecific index  | |
Friends | |
| class | World | 
| class | WorldFactory | 
Properties related functionality | |
| void | loadProps (void) | 
| load properties from permanent storage   | |
| void | saveProps (void) | 
| save properties to permanent storage   | |
| static LibProps & | properties (void) | 
| the properties  | |
World related functionality | |
| static bool | hasWorld (World *world) | 
| tell if an world is inside the chain  | |
| static void | remWorld (World *world) | 
| remove a world  | |
| static World * | firstWorld (void) | 
| first world  | |
| static QString | uniqueWorldName (const QString &pattern) | 
| get a unique name for a world  | |
| static int | worldsCount (void) | 
| the number of worlds  | |
| static World * | findWorld (const QString &s_name) | 
| find a world by its name  | |
| static World * | worldAt (int i) | 
| get a world at aspecific index  | |
| static bool | setCrtWorld (World *new_crt) | 
| seta a world as the current world  | |
| static World * | crtWorld (void) | 
| tell the current world  | |
| static void | addWorld (World *world) | 
| add a world   | |
Factory related functionality | |
| static bool | registerFactory (const QString &s_name, FactoryCreator callback) | 
| register a callback for a particular Factory  | |
| static bool | unregisterFactory (const QString &s_name, FactoryCreator callback) | 
| unregister a callback for a particular Factory  | |
| static QString | defaultWorldFactoryName (void) | 
| get the name used by the defalt WorldFactory  | |
| static Factory * | factoryForString (World *w, const QString &s_name) | 
| get the factory that coresponds to given string  | |
| static WorldFactory * | findWorldFactory (const QString &s) | 
| find a world factory in internal list   | |
| static bool | addWorldFactory (const QString &s, WorldFactory *inst) | 
| adds a world factory to internal list  | |
| static bool | remWorldFactory (const QString &s, WorldFactory *inst) | 
| removes a world factory from internal list  | |
Represents the root structure for the library.
      
  | 
  staticprotected | 
add a world
Do not use directly. This method is used by World constructor to signal the parent library.
      
  | 
  static | 
find a world factory in internal list
The method does not add a reference; the caller must do that itself
| s | the string to search | 
| void AprilLibrary::loadProps | ( | void | ) | 
load properties from permanent storage
The constructor automatically loads properties
| void AprilLibrary::saveProps | ( | void | ) | 
save properties to permanent storage
Changes to properties need to be explicitly saved