KUtils
adium_emoticons.cpp
Go to the documentation of this file.
41 QDomElement fce = m_themeXml.firstChildElement("plist").firstChildElement("dict").firstChildElement("dict");
65 bool AdiumEmoticons::addEmoticon(const QString &emo, const QString &text, AddEmoticonOption option)
70 QDomElement fce = m_themeXml.firstChildElement("plist").firstChildElement("dict").firstChildElement("dict");
159 QDomElement fce = m_themeXml.firstChildElement("plist").firstChildElement("dict").firstChildElement("dict");
209 QDomDocumentType ty = QDomImplementation().createDocumentType("plist", "-//Apple Computer//DTD PLIST 1.0//EN", "http://www.apple.com/DTDs/PropertyList-1.0.dtd");
void setCodec(QTextCodec *codec)
QString saveLocation(const char *type, const QString &suffix=QString(), bool create=true) const
void addEmoticonIndex(const QString &path, const QStringList &emoList)
Add an emoticon to the index.
Definition: kemoticonsprovider.cpp:135
QDomNode item(int index) const
QDomProcessingInstruction createProcessingInstruction(const QString &target, const QString &data)
QDomNode appendChild(const QDomNode &newChild)
QString toString(int indent) const
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
K_PLUGIN_FACTORY(ProxyScoutFactory, registerPlugin< KPAC::ProxyScout >();) namespace KPAC
QString fileName() const
KStandardDirs * dirs()
QDomElement nextSiblingElement(const QString &tagName) const
This is the base class for the emoticons provider plugins.
Definition: kemoticonsprovider.h:35
bool exists() const
bool removeEmoticon(const QString &emo)
Remove the emoticon emo, this will not delete the image file too.
Definition: adium_emoticons.cpp:38
QDomNodeList childNodes() const
void clear()
QDomElement toElement() const
QHash< QString, QStringList > emoticonsMap() const
Returns a QHash that contains the emoticons path as keys and the text as values.
Definition: kemoticonsprovider.cpp:121
void addEmoticonsMap(QString key, QStringList value)
Insert a new item in the emoticons map.
Definition: kemoticonsprovider.cpp:109
const char * name() const
bool addEmoticon(const QString &emo, const QString &text, AddEmoticonOption option=DoNotCopy)
Add the emoticon emo with text text.
Definition: adium_emoticons.cpp:65
QString text() const
QString fileName() const
void setAttribute(const QString &name, const QString &value)
bool isEmpty() const
void removeEmoticonsMap(QString key)
Remove an item from the emoticons map.
Definition: kemoticonsprovider.cpp:116
void removeEmoticonIndex(const QString &path, const QStringList &emoList)
Remove an emoticon from the index.
Definition: kemoticonsprovider.cpp:158
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
QDomText createTextNode(const QString &value)
iterator end()
virtual bool loadTheme(const QString &path)
Load the theme inside the directory path.
Definition: kemoticonsprovider.cpp:55
QDomNode removeChild(const QDomNode &oldChild)
virtual void close()
bool isNull() const
QDomElement firstChildElement(const QString &tagName) const
bool loadTheme(const QString &path)
Load the theme inside the directory path.
Definition: adium_emoticons.cpp:132
QString findResource(const char *type, const QString &filename) const
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString tagName() const
uint length() const
QDomElement createElement(const QString &tagName)
Definition: adium_emoticons.h:26
QDomDocumentType createDocumentType(const QString &qName, const QString &publicId, const QString &systemId)
iterator begin()
virtual bool addEmoticon(const QString &emo, const QString &text, AddEmoticonOption option=DoNotCopy)
Add the emoticon emo with text text.
Definition: kemoticonsprovider.cpp:70
bool setContent(const QByteArray &data, bool namespaceProcessing, QString *errorMsg, int *errorLine, int *errorColumn)
#define K_EXPORT_PLUGIN(factory)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:25:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.