LeechCraft Azoth  0.6.70-15082-g543737046d
Modular multiprotocol IM plugin for LeechCraft
LC::Azoth::IResourceSource Class Referenceabstract

Base interface for specific resource sources. More...

#include "iresourceplugin.h"

+ Inheritance diagram for LC::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 37 of file iresourceplugin.h.

Constructor & Destructor Documentation

◆ ~IResourceSource()

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

Definition at line 40 of file iresourceplugin.h.

Member Function Documentation

◆ GetOptionsModel()

virtual QAbstractItemModel* LC::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: