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");
189 "org.Deviant.LeechCraft.Azoth.IResourcePlugin/1.0");
virtual ~IEmoticonResourceSource()
virtual QAbstractItemModel * GetOptionsModel() const =0
Returns the model with the options for resource.
Q_DECLARE_INTERFACE(LeechCraft::Azoth::IAccount,"org.Deviant.LeechCraft.Azoth.IAccount/1.0")
uint qHash(const QImage &image)
virtual QSet< QString > GetEmoticonStrings(const QString &pack) const =0
Returns the strings that are replaceable with emoticons in the given pack.
virtual ~IResourcePlugin()
virtual ~IResourceSource()
virtual QByteArray GetImage(const QString &pack, const QString &string) const =0
Returns the data corresponding to the given smile.
virtual QList< QObject * > GetResourceSources() const =0
Returns the resource sources that this plugin provides.
virtual QHash< QImage, QString > GetReprImages(const QString &pack) const =0
Returns emoticons and their string representations from the given emoticon pack.
Base interface for specific resource sources.
Interface for plugins having resource sources, like smile support or chat window styles.
Interface for smile resource loaders.