1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

define SMILEYPACK_DEFAULT_PATH

This commit is contained in:
krepa098 2014-08-10 19:01:53 +02:00
parent 7dc00889ee
commit 86e6f5f0d1

View File

@ -22,13 +22,15 @@
#include <QString> #include <QString>
#include <QStringList> #include <QStringList>
#define SMILEYPACK_DEFAULT_PATH "./smileys"
//maps emoticons to smileys //maps emoticons to smileys
class SmileyPack : public QObject class SmileyPack : public QObject
{ {
Q_OBJECT Q_OBJECT
public: public:
static SmileyPack& getInstance(); static SmileyPack& getInstance();
static QList<QPair<QString, QString>> listSmileyPacks(const QString& path = "./smileys"); static QList<QPair<QString, QString>> listSmileyPacks(const QString& path = SMILEYPACK_DEFAULT_PATH);
static bool isValid(const QString& filename); static bool isValid(const QString& filename);
bool load(const QString &filename); bool load(const QString &filename);