30 #ifndef PLUGINS_AZOTH_INTERFACES_ICHATSTYLERESOURCESOURCE_H
31 #define PLUGINS_AZOTH_INTERFACES_ICHATSTYLERESOURCESOURCE_H
87 virtual QUrl
GetBaseURL (
const QString& style)
const = 0;
114 const QString& variant, QObject *entry, QWebFrame *frame)
const = 0;
126 virtual bool AppendMessage (QWebFrame *frame, QObject *message,
148 "org.Deviant.LeechCraft.Azoth.IChatStyleResourceSource/1.0");
virtual QUrl GetBaseURL(const QString &style) const =0
Returns the base URL for the given style.
virtual QString GetHTMLTemplate(const QString &style, const QString &variant, QObject *entry, QWebFrame *frame) const =0
Returns the base HTML template for the given style.
Interface for chat style resource loaders and handlers.
virtual ~IChatStyleResourceSource()
Q_DECLARE_INTERFACE(LeechCraft::Azoth::IAccount,"org.Deviant.LeechCraft.Azoth.IAccount/1.0")
virtual void FrameFocused(QWebFrame *frame)=0
Notifies about a frame obtaining user input focus.
virtual QStringList GetVariantsForPack(const QString &style)=0
bool UseRichTextBody_
Whether rich text body should be used (if available).
Base interface for specific resource sources.
bool IsHighlightMsg_
Whether this message has triggered a highlight.
bool IsActiveChat_
Whether this message is appended in active session.
virtual bool AppendMessage(QWebFrame *frame, QObject *message, const ChatMsgAppendInfo &info)=0
Appends a new message to the chat view.
Defines additional parameters of the message.