diff --git a/src/emoji.cpp b/src/emoji.cpp index 0dc9093d..340b93d8 100644 --- a/src/emoji.cpp +++ b/src/emoji.cpp @@ -1,65 +1,65 @@ /* Copyright (c) 2017-2018 Montel Laurent This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "emoji.h" Emoji::Emoji() { } Emoji::~Emoji() { } -void Emoji::parseEmoji() +void Emoji::parseEmoji(const QJsonArray &attachments) { //TODO } QString Emoji::identifier() const { return mIdentifier; } void Emoji::setIdentifier(const QString &identifier) { mIdentifier = identifier; } QString Emoji::extension() const { return mExtension; } void Emoji::setExtension(const QString &extension) { mExtension = extension; } void Emoji::setName(const QString &name) { mName = name; } QString Emoji::name() const { return mName; } diff --git a/src/emoji.h b/src/emoji.h index a60fcd04..a3900fc7 100644 --- a/src/emoji.h +++ b/src/emoji.h @@ -1,50 +1,51 @@ /* Copyright (c) 2017-2018 Montel Laurent This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef EMOJI_H #define EMOJI_H +#include #include #include "libruqola_private_export.h" class LIBRUQOLACORE_TESTS_EXPORT Emoji { public: Emoji(); ~Emoji(); - void parseEmoji(); + void parseEmoji(const QJsonArray &attachments); QString identifier() const; void setIdentifier(const QString &identifier); QString extension() const; void setExtension(const QString &extension); void setName(const QString &name); QString name() const; private: QString mIdentifier; QString mExtension; QString mName; }; #endif // EMOJI_H