LeechCraft Azoth  0.6.70-6645-gcd10d7e
Modular multiprotocol IM plugin for LeechCraft
LeechCraft::Azoth::IResourceSource Class Referenceabstract

Base interface for specific resource sources. More...

#include "iresourceplugin.h"

+ Inheritance diagram for LeechCraft::Azoth::IResourceSource:

Public Member Functions

virtual ~IResourceSource ()
 
virtual QAbstractItemModel * GetOptionsModel () const =0
 Returns the model with the options for resource. More...
 

Detailed Description

Base interface for specific resource sources.

All resource source loaders, like smile packs resource loader or chat window style resource loader derive from this interface.

In your plugin you should never derive from this interface directly, instead, a relevant interface should be used.

See also
IEmoticonResourceSource

Definition at line 59 of file iresourceplugin.h.

Constructor & Destructor Documentation

virtual LeechCraft::Azoth::IResourceSource::~IResourceSource ( )
inlinevirtual

Definition at line 62 of file iresourceplugin.h.

References GetOptionsModel().

+ Here is the call graph for this function:

Member Function Documentation

virtual QAbstractItemModel* LeechCraft::Azoth::IResourceSource::GetOptionsModel ( ) const
pure virtual

Returns the model with the options for resource.

The model would be set as the datasource model for the corresponding combobox item in the settings dialog.

The model should have at least one column, and the text of the items in that column would be used in queries for the associated resources (see derived interfaces' documentation for more information).

See also
XmlSettingsDialog::SetDataSource()
IEmoticonResourceSource
IChatStyleResourceSource

Referenced by ~IResourceSource().

+ Here is the caller graph for this function:


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