|
libquentier 0.8.0
The library for rich desktop clients of Evernote service
|
The IConverter interface encapsulates a set of methods performing conversions between ENML and other note content formats, namely HTML. More...
#include <IConverter.h>
Public Types | |
| enum class | EnexExportTags { Yes = 0 , No } |
| The EnexExportTags enum allows to specify whether export of note(s) to ENEX should include the names of note's tags or not. | |
Public Member Functions | |
| virtual Result< QString, ErrorString > | convertHtmlToEnml (const QString &html, IDecryptedTextCache &decryptedTextCache, const QList< conversion_rules::ISkipRulePtr > &skipRules={}) const =0 |
| virtual Result< void, ErrorString > | convertHtmlToDoc (const QString &html, QTextDocument &doc, const QList< conversion_rules::ISkipRulePtr > &skipRules={}) const =0 |
| virtual Result< QString, ErrorString > | convertHtmlToXml (const QString &html) const =0 |
| virtual Result< QString, ErrorString > | convertHtmlToXhtml (const QString &html) const =0 |
| virtual Result< IHtmlDataPtr, ErrorString > | convertEnmlToHtml (const QString &enml, IDecryptedTextCache &decryptedTextCache) const =0 |
| virtual Result< QString, ErrorString > | convertEnmlToPlainText (const QString &enml) const =0 |
| virtual Result< QStringList, ErrorString > | convertEnmlToWordsList (const QString &enml) const =0 |
| virtual QStringList | convertPlainTextToWordsList (const QString &plainText) const =0 |
| virtual Result< void, ErrorString > | validateEnml (const QString &enml) const =0 |
| virtual Result< QString, ErrorString > | validateAndFixupEnml (const QString &enml) const =0 |
| virtual Result< QString, ErrorString > | exportNotesToEnex (const QList< qevercloud::Note > ¬es, const QHash< QString, QString > &tagNamesByTagLocalIds, EnexExportTags exportTagsOption, const QString &version={}) const =0 |
| virtual Result< QList< qevercloud::Note >, ErrorString > | importEnex (const QString &enex) const =0 |
The IConverter interface encapsulates a set of methods performing conversions between ENML and other note content formats, namely HTML.
|
nodiscardpure virtual |
Converts ENML into HTML representation of note content
| enml | ENML representation of note content |
| decryptedTextCache | cache of decrypted text fragments |
|
nodiscardpure virtual |
Converts ENML into plain text representation of note content
| enml | ENML representation of note content |
|
nodiscardpure virtual |
Converts ENML into a list of words
| enml | ENML representation of note content |
|
nodiscardpure virtual |
Convert HTML representation of note content into QTextDocument
| html | HTML representation of note content |
| doc | QTextDocument into which the converted note content is put |
| skipRules | skip rules to be used during the conversion |
|
nodiscardpure virtual |
Converts HTML representation of note content into ENML
| html | HTML representation of note content |
| decryptedTextCache | cache of decrypted text fragments |
| skipRules | skip rules to be used during the conversion |
|
nodiscardpure virtual |
Convert HTML representation of note content into a valid XHTML document
| html | HTML representation of note content |
|
nodiscardpure virtual |
Convert HTML representation of note content into a valid XML document
| html | HTML representation of note content |
|
nodiscardpure virtual |
Converts plain text into a list of words
| plainText | plain text representation of note content |
|
nodiscardpure virtual |
Exports a list of notes into ENEX
| notes | notes to be exported into ENEX |
| tagNamesByTagLocalIds | mapper from tag local ids into tag names |
| exportTagsOption | option controlling the export of tag names |
| version | optional version tag for ENEX, omitted if not set |
|
nodiscardpure virtual |
Import notes from ENEX
| enex | ENEX to be used for import |
|
nodiscardpure virtual |
Validates ENML and attempts to fix it automatically if it's not valid
| enml | ENML representation of note content |
|
nodiscardpure virtual |
Validates ENML against rules
| enml | ENML representation of note content |