 |
LeechCraft Azoth
0.6.70-13907-g785196c688
Modular multiprotocol IM plugin for LeechCraft
|
Go to the documentation of this file.
30 #ifndef PLUGINS_AZOTH_INTERFACES_IRESOURCEPLUGIN_H
31 #define PLUGINS_AZOTH_INTERFACES_IRESOURCEPLUGIN_H
33 #include <QStringList>
37 class QAbstractItemModel;
40 inline uint
qHash (
const QImage& image)
42 return image.cacheKey ();
126 virtual QHash<QImage, QString>
GetReprImages (
const QString& pack)
const = 0;
150 virtual QByteArray
GetImage (
const QString& pack,
const QString&
string)
const = 0;
187 "org.Deviant.LeechCraft.Azoth.IEmoticonResourceSource/1.0")
188 Q_DECLARE_INTERFACE (
LC::Azoth::IResourcePlugin,
189 "org.Deviant.LeechCraft.Azoth.IResourcePlugin/1.0")
virtual QByteArray GetImage(const QString &pack, const QString &string) const =0
Returns the data corresponding to the given smile.
virtual QHash< QImage, QString > GetReprImages(const QString &pack) const =0
Returns emoticons and their string representations from the given emoticon pack.
virtual ~IResourcePlugin()
virtual QList< QObject * > GetResourceSources() const =0
Returns the resource sources that this plugin provides.
Interface for smile resource loaders.
virtual ~IEmoticonResourceSource()
virtual QSet< QString > GetEmoticonStrings(const QString &pack) const =0
Returns the strings that are replaceable with emoticons in the given pack.
virtual ~IResourceSource()
uint qHash(const QImage &image)
Interface for plugins having resource sources, like smile support or chat window styles.
Base interface for specific resource sources.
virtual QAbstractItemModel * GetOptionsModel() const =0
Returns the model with the options for resource.