WAC::SecureStorage Class Reference

#include <mw/wac/wacsecurestorage.h>

Link against: wacSecureStorage.lib

class WAC::SecureStorage : public WAC::Storage, public WAC::Storage

Inherits from

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 voidadd(const QFile &)
virtual voidadd(const QString &, const QBuffer &)
virtual qint32 count()
virtual QIODevice *getFile(const QString &)
virtual QStringList getFileList()
virtual voidremove(const QFile &)
virtual boolverify(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 voidremoveMetadata(const QString &)
pure virtual voidsaveFileList()
pure virtual voidsaveMetadata(const SecureStorageMetadata &)
virtual QHash< QString, QString >updateFileList()
virtual voidupdateMetadataInfo(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()

Detailed Description

Common Secure Storage Implementation

Member Attribute Documentation

m_currentFile

QString m_currentFile[protected]

m_fileList

QHash< QString, QString >m_fileList[protected]

m_protection

Storage::protection m_protection[protected]

m_visibility

Storage::visibility m_visibility[protected]

Constructor & Destructor Documentation

SecureStorage ( const QString &, Storage::visibility, Storage::protection, QObject * )

SecureStorage(const QString &aStorageName,
Storage::visibilityaVisibility = vis_shared,
Storage::protectionaProtection = prot_signed,
QObject *aParent = 0
)

Constructor

Parameters
aParent- QObject parent

~SecureStorage ( )

~SecureStorage()[virtual]

Destructor

Member Function Documentation

add ( const QFile & )

voidadd(const QFile &aFile)[virtual]

add ( const QString &, const QBuffer & )

voidadd(const QString &aFilePath,
const QBuffer &aData
)[virtual]

count ( )

qint32 count()const [virtual]

Reimplemented from WAC::Storage::count()const

From Storage

See also: Storage::count();

createHash ( const QByteArray & )

QByteArray createHash(const QByteArray &aData)const [protected, virtual]

Computes a hash value given the input

Parameters
aData- Input value to compute the hash against
Return Value
Hash value as a QByteArray

decryptData ( const QByteArray & )

QIODevice *decryptData(const QByteArray &aData)[protected, pure virtual]

encryptData ( const QByteArray & )

QByteArray encryptData(const QByteArray &aData)[protected, pure virtual]

getFile ( const QString & )

QIODevice *getFile(const QString &aPathFile)[virtual]

getFileList ( )

QStringList getFileList()const [virtual]

getMetadata ( const QString & )

SecureStorageMetadata *getMetadata(const QString &aFileName)const [protected, pure virtual]

getOwner ( )

QString getOwner()const [protected, pure virtual]

remove ( const QFile & )

voidremove(const QFile &aFile)[virtual]

removeMetadata ( const QString & )

voidremoveMetadata(const QString &aFileName)[protected, pure virtual]

saveFileList ( )

voidsaveFileList()[protected, pure virtual]

saveMetadata ( const SecureStorageMetadata & )

voidsaveMetadata(const SecureStorageMetadata &aMetadata)[protected, pure virtual]

updateFileList ( )

QHash< QString, QString >updateFileList()const [protected, virtual]

Updates file list. Default behaviour only returns internal variable

updateMetadataInfo ( const QString &, const QByteArray & )

voidupdateMetadataInfo(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

verify ( const QFile & )

boolverify(const QFile &aFile)const [virtual]

From Storage

See also: Storage::verify(const QFile &aFile);