19 #ifndef LIB_QUENTIER_UTILITY_ENCRYPTION_MANAGER_H 20 #define LIB_QUENTIER_UTILITY_ENCRYPTION_MANAGER_H 22 #include <quentier/utility/Macros.h> 23 #include <quentier/utility/Linkage.h> 24 #include <quentier/types/ErrorString.h> 31 QT_FORWARD_DECLARE_CLASS(EncryptionManagerPrivate)
45 bool decrypt(
const QString & encryptedText,
const QString & passphrase,
46 const QString & cipher,
const size_t keyLength,
47 QString & decryptedText,
ErrorString & errorDescription);
49 bool encrypt(
const QString & textToEncrypt,
const QString & passphrase,
50 QString & cipher,
size_t & keyLength,
51 QString & encryptedText,
ErrorString & errorDescription);
54 void decryptedText(QString text,
bool success,
ErrorString errorDescription, QUuid requestId);
55 void encryptedText(QString encryptedText,
bool success,
ErrorString errorDescription, QUuid requestId);
58 void onDecryptTextRequest(QString encryptedText, QString passphrase,
59 QString cipher,
size_t keyLength, QUuid requestId);
60 void onEncryptTextRequest(QString textToEncrypt, QString passphrase,
61 QString cipher,
size_t keyLength, QUuid requestId);
64 EncryptionManagerPrivate *
const d_ptr;
70 #endif // LIB_QUENTIER_UTILITY_ENCRYPTION_MANAGER_H The EncryptionManager class provides both synchronous methods to encrypt or decrypt given text with p...
Definition: EncryptionManager.h:38
The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition: ErrorString.h:38