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

private constructor

This commit is contained in:
krepa098 2014-07-26 10:28:57 +02:00
parent 234d46a480
commit e4f897221f

View File

@ -26,18 +26,20 @@ class SmileyPack : public QObject
{
Q_OBJECT
public:
SmileyPack();
SmileyPack(SmileyPack&) = delete;
SmileyPack& operator=(const SmileyPack&) = delete;
static SmileyPack& getInstance();
bool load(const QString &filename);
QString replaceEmoticons(const QString& msg) const;
protected:
QHash<QString, QString> lookupTable; // matches an emoticon with its corresponding smiley
private slots:
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