19 #ifndef LIB_QUENTIER_UTILITY_ENCRYPTION_MANAGER_H
20 #define LIB_QUENTIER_UTILITY_ENCRYPTION_MANAGER_H
22 #include <quentier/types/ErrorString.h>
23 #include <quentier/utility/Linkage.h>
24 #include <quentier/utility/Macros.h>
32 QT_FORWARD_DECLARE_CLASS(EncryptionManagerPrivate)
47 const QString & encryptedText,
const QString & passphrase,
48 const QString & cipher,
const size_t keyLength,
49 QString & decryptedText,
ErrorString & errorDescription);
52 const QString & textToEncrypt,
const QString & passphrase,
53 QString & cipher,
size_t & keyLength,
54 QString & encryptedText,
ErrorString & errorDescription);
58 QString text,
bool success,
ErrorString errorDescription,
62 QString encryptedText,
bool success,
ErrorString errorDescription,
66 void onDecryptTextRequest(
67 QString encryptedText, QString passphrase, QString cipher,
68 size_t keyLength, QUuid requestId);
70 void onEncryptTextRequest(
71 QString textToEncrypt, QString passphrase, QString cipher,
72 size_t keyLength, QUuid requestId);
75 EncryptionManagerPrivate *
const d_ptr;
81 #endif // LIB_QUENTIER_UTILITY_ENCRYPTION_MANAGER_H