diff --git a/semantic/semanticmemento.h b/semantic/semanticmemento.h index a595569..29cff4b 100644 --- a/semantic/semanticmemento.h +++ b/semantic/semanticmemento.h @@ -1,60 +1,60 @@ /* Copyright (c) 2017 Volker Krause 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) 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 SEMANTICMEMENTO_H #define SEMANTICMEMENTO_H #include #include #include #include namespace KMime { class ContentIndex; } /** Memento holding the semantic information extracted for an email. */ class SemanticMemento : public MimeTreeParser::Interface::BodyPartMemento { public: - ~SemanticMemento() = default; + ~SemanticMemento() override = default; void detach() override; bool isEmpty() const; bool isParsed(const KMime::ContentIndex &index) const; void setParsed(const KMime::ContentIndex &index); QVector data() const; void setData(const QVector &data); QVector expanded() const; void toggleExpanded(int index); bool hasStructuredData() const; void setStructuredDataFound(bool f); private: QVector m_data; QVector m_expanded; QSet m_parsedParts; bool m_foundStructuredData = false; }; #endif // SEMANTICMEMENTO_H