Logo Search packages:      
Sourcecode: packagesearch version File versions

NPlugin::DebtagsPluginContainer Class Reference

#include <debtagsplugincontainer.h>

Inheritance diagram for NPlugin::DebtagsPluginContainer:

NPlugin::BasePluginContainer NPlugin::IPluginInformer

List of all members.

Detailed Description

This class provides plugins using the debtags system.

It manages the shared data and offers the possibility to update the debtags database.

Benjamin Mesing

Definition at line 48 of file debtagsplugincontainer.h.

Public Member Functions

virtual void addPluginUser (IPluginUser *pUser)
 Adds a plugin user. Plugin users will be informed about loading and unloading of plugins.
Tagcoll::TagCollection< int,
string > * 
collection () const
 Returns the _pCollection property.
bool debtagsEnabled ()
 Returns the _debtagsEnabled property.
 DebtagsPluginContainer ()
const Tagcoll::FacetSet & facets () const
 Returns the _facets property.
QDomElement getSettings (string pluginName)
void isEnabled (string pluginName)
virtual void removePluginUser (IPluginUser *pUser)
PluginContainer Interface
These functions implement the PluginContainer interface.

vector< pair< QString, QAction * > > actions ()
 This returns a list with one entry which is the "Debtags Update" entry.
virtual void applySettings ()
virtual QWidget * getSettingsWidget (QWidget *pParent)
virtual bool init (IProvider *pProvider)
virtual void loadSettings (const QDomElement source)
 Loads the settings from the element node.
virtual string name () const
virtual void saveSettings (NXml::XmlData &outData, QDomElement parent) const
 Save the settings from this plugin container into the given XML tree.
virtual QString title () const
PluginContainer Interface
These functions implement the PluginContainer interface.

virtual vector< Plugin * > getLoadedPlugins ()
virtual bool init (IProvider *pProvider, IPluginFactory *pFactory)
 This makes the plugin container ready for use.
virtual vector< string > offeredPlugins () const
virtual void releasePlugin (Plugin *pPlugin)
virtual PluginrequestPlugin (const string &name)

Protected Slots

void onDebtagsUpdate ()
 Launches the debtags update command.
void onDebtagsUpdateFinished ()
 This function will be called if the update finished.

Protected Member Functions

void addPlugin (const string &name)
 This adds a new plugin type to the available ones.
IPluginFactorypluginFactory ()
IProviderprovider ()
void setDebtagsEnabled (bool enabled)
 This sets the debtags operations to be enabled/ disabled.
void updateDebtags ()
 Loads the latest debtags database and informs the plugins about the changing of the database.
void updateVocabulary (bool informPlugins=true)
 This loads the vocabulary data and filling the _facets set.

Protected Attributes

PluginInformer _pluginInformer

Private Attributes

bool _debtagsEnabled
 This holds if the debtags operations are currently enabled.
Tagcoll::FacetSet _facets
 This holds the facets which are currently in use.
set< string > _hiddenFacets
 This holds the names of the facets that shall not be shown.
vector< QString > _offeredPlugins
 This holds a list of the names of all the plugins offered by this plugin container.
Tagcoll::TagCollection< int,
string > * 
 This holds the tag collection.
QAction * _pDebtagsUpdateAction
 Action which represents the debtags update option.
Tagcoll::HandleMaker< string > * _pHandleMaker
RelatedPlugin * _pRelatedPlugin
DebtagsSettingsWidget * _pSettingsWidget
 This holds a pointer to the settings widget currently active.

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index