LeechCraft Azoth  0.6.70-3565-g2d86529
Modular multiprotocol IM plugin for LeechCraft
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator
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.

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

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