#include <mw/wac/wacsecurestorage.h>
Link against: wacSecureStorage.lib
| class WAC::SecureStorage : public WAC::Storage, public WAC::Storage |
| Protected Attributes | |
|---|---|
| QString | m_currentFile |
| QHash< QString, QString > | m_fileList |
| Storage::protection | m_protection |
| Storage::visibility | m_visibility |
| Public Member Functions | |
|---|---|
| SecureStorage(const QString &, Storage::visibility, Storage::protection, QObject *) | |
| virtual | ~SecureStorage() |
| virtual void | add(const QFile &) |
| virtual void | add(const QString &, const QBuffer &) |
| virtual qint32 | count() |
| virtual QIODevice * | getFile(const QString &) |
| virtual QStringList | getFileList() |
| virtual void | remove(const QFile &) |
| virtual bool | verify(const QFile &) |
| Protected Member Functions | |
|---|---|
| virtual QByteArray | createHash(const QByteArray &) |
| pure virtual QIODevice * | decryptData(const QByteArray &) |
| pure virtual QByteArray | encryptData(const QByteArray &) |
| pure virtual SecureStorageMetadata * | getMetadata(const QString &) |
| pure virtual QString | getOwner() |
| pure virtual void | removeMetadata(const QString &) |
| pure virtual void | saveFileList() |
| pure virtual void | saveMetadata(const SecureStorageMetadata &) |
| virtual QHash< QString, QString > | updateFileList() |
| virtual void | updateMetadataInfo(const QString &, const QByteArray &) |
| Inherited Attributes | |
|---|---|
| QObject::d_ptr | |
| QObject::objectName | |
| QObject::staticQtMetaObject | |
| WAC::Storage::m_storageName | |
| Inherited Enumerations | |
|---|---|
| WAC::Storage:protection | |
| WAC::Storage:visibility | |
| Inherited Functions | |
|---|---|
| QObject::QObject(QObjectPrivate &,QObject *) | |
| QObject::blockSignals(bool) | |
| QObject::childEvent(QChildEvent *) | |
| QObject::children()const | |
| QObject::connect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &,Qt::ConnectionType) | |
| QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType) | |
| QObject::connect(const QObject *,const char *,const char *,Qt::ConnectionType)const | |
| QObject::connectNotify(const char *) | |
| QObject::customEvent(QEvent *) | |
| QObject::deleteLater | |
| QObject::destroyed | |
| QObject::disconnect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &) | |
| QObject::disconnect(const QObject *,const char *) | |
| QObject::disconnect(const QObject *,const char *,const QObject *,const char *) | |
| QObject::disconnect(const char *,const QObject *,const char *) | |
| QObject::disconnectNotify(const char *) | |
| QObject::dumpObjectInfo() | |
| QObject::dumpObjectTree() | |
| QObject::dynamicPropertyNames()const | |
| QObject::event(QEvent *) | |
| QObject::eventFilter(QObject *,QEvent *) | |
| QObject::findChild(const QString &)const | |
| QObject::findChildren(const QRegExp &)const | |
| QObject::findChildren(const QString &)const | |
| QObject::inherits(const char *)const | |
| QObject::installEventFilter(QObject *) | |
| QObject::isWidgetType()const | |
| QObject::killTimer(int) | |
| QObject::moveToThread(QThread *) | |
| QObject::objectName()const | |
| QObject::parent()const | |
| QObject::property(const char *)const | |
| QObject::receivers(const char *)const | |
| QObject::registerUserData() | |
| QObject::removeEventFilter(QObject *) | |
| QObject::sender()const | |
| QObject::senderSignalIndex()const | |
| QObject::setObjectName(const QString &) | |
| QObject::setParent(QObject *) | |
| QObject::setProperty(const char *,const QVariant &) | |
| QObject::setUserData(uint,QObjectUserData *) | |
| QObject::signalsBlocked()const | |
| QObject::startTimer(int) | |
| QObject::thread()const | |
| QObject::timerEvent(QTimerEvent *) | |
| QObject::userData(uint)const | |
| QObject::~QObject() | |
| WAC::Storage::Storage(const QString &,QObject *) | |
| WAC::Storage::createInstance(const QString &,WAC::Storage::visibility,WAC::Storage::protection,QObject *) | |
| WAC::Storage::storageName()const | |
| WAC::Storage::~Storage() | |
Common Secure Storage Implementation
| QString | m_currentFile | [protected] |
| QHash< QString, QString > | m_fileList | [protected] |
| Storage::protection | m_protection | [protected] |
| Storage::visibility | m_visibility | [protected] |
| SecureStorage | ( | const QString & | aStorageName, |
| Storage::visibility | aVisibility = vis_shared, | ||
| Storage::protection | aProtection = prot_signed, | ||
| QObject * | aParent = 0 | ||
| ) | |||
Constructor
| Parameters | |
|---|---|
| aParent | - QObject parent |
| void | add | ( | const QFile & | aFile | ) | [virtual] |
Reimplemented from WAC::Storage::add(const QFile &)
From Storage
See also: Storage::add(const QFile &aFile);
| void | add | ( | const QString & | aFilePath, |
| const QBuffer & | aData | |||
| ) | [virtual] | |||
Reimplemented from WAC::Storage::add(const QString &,const QBuffer &)
From Storage
See also: Storage::add(const QString &aFilePath, const QBuffer &aData);
| qint32 | count | ( | ) | const [virtual] |
Reimplemented from WAC::Storage::count()const
From Storage
See also: Storage::count();
| QByteArray | createHash | ( | const QByteArray & | aData | ) | const [protected, virtual] |
Computes a hash value given the input
| Parameters | |
|---|---|
| aData | - Input value to compute the hash against |
| QIODevice * | decryptData | ( | const QByteArray & | aData | ) | [protected, pure virtual] |
| QByteArray | encryptData | ( | const QByteArray & | aData | ) | [protected, pure virtual] |
| QIODevice * | getFile | ( | const QString & | aPathFile | ) | [virtual] |
Reimplemented from WAC::Storage::getFile(const QString &)
From Storage
See also: Storage::getFile(const QString &aPathFile);
| QStringList | getFileList | ( | ) | const [virtual] |
Reimplemented from WAC::Storage::getFileList()const
From Storage
See also: Storage::getFileList();
| SecureStorageMetadata * | getMetadata | ( | const QString & | aFileName | ) | const [protected, pure virtual] |
| QString | getOwner | ( | ) | const [protected, pure virtual] |
| void | remove | ( | const QFile & | aFile | ) | [virtual] |
Reimplemented from WAC::Storage::remove(const QFile &)
From Storage
See also: Storage::remove(const QFile &aFile);
| void | removeMetadata | ( | const QString & | aFileName | ) | [protected, pure virtual] |
| void | saveFileList | ( | ) | [protected, pure virtual] |
| void | saveMetadata | ( | const SecureStorageMetadata & | aMetadata | ) | [protected, pure virtual] |
| QHash< QString, QString > | updateFileList | ( | ) | const [protected, virtual] |
Updates file list. Default behaviour only returns internal variable
| void | updateMetadataInfo | ( | const QString & | aFileName, |
| const QByteArray & | aData | |||
| ) | [protected, virtual] | |||
Updates metadata info given the filename and data contained in the file Creates a hash from the given data.
| Parameters | |
|---|---|
| aFileName | - Name of the file |
| aData | - Data of the file |
| bool | verify | ( | const QFile & | aFile | ) | const [virtual] |
Reimplemented from WAC::Storage::verify(const QFile &)const
From Storage
See also: Storage::verify(const QFile &aFile);