 |
LeechCraft Azoth
0.6.70-15082-g543737046d
Modular multiprotocol IM plugin for LeechCraft
|
Go to the documentation of this file.
9 #ifndef PLUGINS_AZOTH_INTERFACES_IRESOURCEPLUGIN_H
10 #define PLUGINS_AZOTH_INTERFACES_IRESOURCEPLUGIN_H
12 #include <QStringList>
16 class QAbstractItemModel;
18 inline 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")
166 Q_DECLARE_INTERFACE (
LC::Azoth::IResourcePlugin,
167 "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.