mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
private constructor
This commit is contained in:
parent
234d46a480
commit
e4f897221f
14
smileypack.h
14
smileypack.h
|
@ -26,18 +26,20 @@ class SmileyPack : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
SmileyPack();
|
|
||||||
SmileyPack(SmileyPack&) = delete;
|
|
||||||
SmileyPack& operator=(const SmileyPack&) = delete;
|
|
||||||
|
|
||||||
static SmileyPack& getInstance();
|
static SmileyPack& getInstance();
|
||||||
|
|
||||||
bool load(const QString &filename);
|
bool load(const QString &filename);
|
||||||
QString replaceEmoticons(const QString& msg) const;
|
QString replaceEmoticons(const QString& msg) const;
|
||||||
protected:
|
|
||||||
QHash<QString, QString> lookupTable; // matches an emoticon with its corresponding smiley
|
|
||||||
private slots:
|
private slots:
|
||||||
void onSmileyPackChanged();
|
void onSmileyPackChanged();
|
||||||
|
|
||||||
|
private:
|
||||||
|
SmileyPack();
|
||||||
|
SmileyPack(SmileyPack&) = delete;
|
||||||
|
SmileyPack& operator=(const SmileyPack&) = delete;
|
||||||
|
|
||||||
|
QHash<QString, QString> lookupTable; // matches an emoticon to its corresponding smiley
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // SMILEYPACK_H
|
#endif // SMILEYPACK_H
|
||||||
|
|
Loading…
Reference in New Issue
Block a user