9#ifndef PLUGINS_AZOTH_INTERFACES_IRESOURCEPLUGIN_H
10#define PLUGINS_AZOTH_INTERFACES_IRESOURCEPLUGIN_H
16class QAbstractItemModel;
18inline uint
qHash (
const QImage& image)
20 return image.cacheKey ();
104 virtual QHash<QImage, QString>
GetReprImages (
const QString& pack)
const = 0;
128 virtual QByteArray
GetImage (
const QString& pack,
const QString&
string)
const = 0;
165 "org.Deviant.LeechCraft.Azoth.IEmoticonResourceSource/1.0")
166Q_DECLARE_INTERFACE (
LC::Azoth::IResourcePlugin,
167 "org.Deviant.LeechCraft.Azoth.IResourcePlugin/1.0")
Interface for smile resource loaders.
virtual QSet< QString > GetEmoticonStrings(const QString &pack) const =0
Returns the strings that are replaceable with emoticons in the given pack.
virtual QByteArray GetImage(const QString &pack, const QString &string) const =0
Returns the data corresponding to the given smile.
virtual ~IEmoticonResourceSource()
virtual QHash< QImage, QString > GetReprImages(const QString &pack) const =0
Returns emoticons and their string representations from the given emoticon pack.
Interface for plugins having resource sources, like smile support or chat window styles.
virtual QList< QObject * > GetResourceSources() const =0
Returns the resource sources that this plugin provides.
virtual ~IResourcePlugin()
Base interface for specific resource sources.
virtual ~IResourceSource()
virtual QAbstractItemModel * GetOptionsModel() const =0
Returns the model with the options for resource.
uint qHash(const QImage &image)