Référence de la classe KoEncryptedStore

#include <KoEncryptedStore.h>

Graphe d'héritage de KoEncryptedStore:

[légende]
Graphe de collaboration de KoEncryptedStore:
[légende]
Liste de tous les membres

Fonctions membres publiques

 KoEncryptedStore (const QString &filename, Mode mode, const QByteArray &appIdentification)
 KoEncryptedStore (QIODevice *dev, Mode mode, const QByteArray &appIdentification)
 KoEncryptedStore (QWidget *window, const KUrl &url, const QString &filename, Mode _mode, const QByteArray &appIdentification)
 ~KoEncryptedStore ()
bool setPassword (const QString &password)

Fonctions membres publiques statiques

static KoStorecreateEncryptedStoreReader (const QString &filename, const QByteArray &appIdentification)
static KoStorecreateEncryptedStoreReader (QIODevice *dev, const QByteArray &appIdentification)
static KoStorecreateEncryptedStoreReader (QWidget *window, const KUrl &url, const QString &filename, const QByteArray &appIdentification)

Fonctions membres protégées

virtual bool init (Mode mode, const QByteArray &appIdentification)
virtual bool openWrite (const QString &name)
virtual bool openRead (const QString &name)
virtual bool closeWrite ()
virtual bool closeRead ()
virtual bool enterRelativeDirectory (const QString &dirName)
virtual bool enterAbsoluteDirectory (const QString &path)
virtual bool fileExists (const QString &absPath) const
bool isEncrypted ()
KoZipStoreripZipStore ()
void findPasswordInKWallet ()
void savePasswordInKWallet ()

Attributs protégés

QCA::Initializer m_qcaInit
QHash< QString, KoEncryptedStore_EncryptionDatam_encryptionData
KoZipStorem_store
QSecureArray m_password
QWidget * m_window
QString m_filename
QByteArray m_manifestBuffer

Fonctions membres privées

QSecureArray decryptFile (QSecureArray &encryptedFile, KoEncryptedStore_EncryptionData &encData, QSecureArray &password)
QString normalizedFullPath (const QString &fullpath)
QString filenameOnly (const QString &fullpath)
bool initBackend ()

Attributs privés

KUrl m_init_url
QIODevice * m_init_dev
bool m_init_deferred
QByteArray m_init_appIdentification

Description détaillée

Définition à la ligne 32 du fichier KoEncryptedStore.h.


Documentation des contructeurs et destructeur

KoEncryptedStore::KoEncryptedStore ( const QString &  filename,
Mode  mode,
const QByteArray &  appIdentification 
)

Définition à la ligne 59 du fichier KoEncryptedStore.cpp.

Références KoStore::bad(), init(), KoStore::m_bGood, m_init_deferred, m_store, et KoStore::Write.

Référencé par createEncryptedStoreReader().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

KoEncryptedStore::KoEncryptedStore ( QIODevice *  dev,
Mode  mode,
const QByteArray &  appIdentification 
)

Définition à la ligne 76 du fichier KoEncryptedStore.cpp.

Références KoStore::bad(), init(), KoStore::m_bGood, m_init_deferred, m_store, et KoStore::Write.

Voici le graphe d'appel pour cette fonction :

KoEncryptedStore::KoEncryptedStore ( QWidget *  window,
const KUrl &  url,
const QString &  filename,
Mode  _mode,
const QByteArray &  appIdentification 
)

Définition à la ligne 93 du fichier KoEncryptedStore.cpp.

Références KoStore::bad(), init(), KoStore::m_bGood, m_init_deferred, m_store, et KoStore::Write.

Voici le graphe d'appel pour cette fonction :

KoEncryptedStore::~KoEncryptedStore (  ) 

Définition à la ligne 110 du fichier KoEncryptedStore.cpp.

Références KoEncryptedStore_EncryptionData::checksum, KoEncryptedStore_EncryptionData::checksumShort, KoStore::close(), KoEncryptedStore_EncryptionData::filesize, KoEncryptedStore_EncryptionData::initVector, KoStore::isOpen(), keys, m_encryptionData, m_manifestBuffer, KoStore::m_mode, m_store, MANIFEST_FILE, normalizedFullPath(), KoStore::open(), KoEncryptedStore_EncryptionData::salt, KoStore::write(), et KoStore::Write.

Voici le graphe d'appel pour cette fonction :


Documentation des fonctions membres

KoStore * KoEncryptedStore::createEncryptedStoreReader ( const QString &  filename,
const QByteArray &  appIdentification 
) [static]

Creates a KoStore to read a ZIP-file.

This method will return a KoEncryptedStore if the file is encrypted or a KoZipStore if it's not. It is advisable to use to function when trying to read a ZIP-file: this function contains the logic to determine if a ZIP is encrypted and will give you the fastest KoStore to read the file that will actually work.

The arguments are the same as in the constructors.

Renvoie:
A store to read the file.

Définition à la ligne 306 du fichier KoEncryptedStore.cpp.

Références isEncrypted(), KoEncryptedStore(), KoStore::Read, et ripZipStore().

Référencé par KoStore::createStore().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

KoStore * KoEncryptedStore::createEncryptedStoreReader ( QIODevice *  dev,
const QByteArray &  appIdentification 
) [static]

Creates a KoStore to read a ZIP-file.

This method will return a KoEncryptedStore if the file is encrypted or a KoZipStore if it's not. It is advisable to use to function when trying to read a ZIP-file: this function contains the logic to determine if a ZIP is encrypted and will give you the fastest KoStore to read the file that will actually work.

The arguments are the same as in the constructors.

Renvoie:
A store to read the device.

Définition à la ligne 316 du fichier KoEncryptedStore.cpp.

Références isEncrypted(), KoEncryptedStore(), KoStore::Read, et ripZipStore().

Voici le graphe d'appel pour cette fonction :

KoStore * KoEncryptedStore::createEncryptedStoreReader ( QWidget *  window,
const KUrl &  url,
const QString &  filename,
const QByteArray &  appIdentification 
) [static]

Creates a KoStore to read a ZIP-file.

This method will return a KoEncryptedStore if the file is encrypted or a KoZipStore if it's not. It is advisable to use to function when trying to read a ZIP-file: this function contains the logic to determine if a ZIP is encrypted and will give you the fastest KoStore to read the file that will actually work.

The arguments are the same as in the constructors.

Renvoie:
A store to read the url.

Définition à la ligne 326 du fichier KoEncryptedStore.cpp.

Références isEncrypted(), KoEncryptedStore(), KoStore::Read, et ripZipStore().

Voici le graphe d'appel pour cette fonction :

bool KoEncryptedStore::setPassword ( const QString &  password  ) 

Sets the password to be used for decryption or encryption of the file.

This method only works if no password has been set or found yet, i.e. when no file has been opened yet and this method hasn't been used yet.

Paramètres:
password A non-empty password.
Renvoie:
True if the password was set

Définition à la ligne 655 du fichier KoEncryptedStore.cpp.

Références initBackend(), et m_password.

Voici le graphe d'appel pour cette fonction :

bool KoEncryptedStore::init ( Mode  mode,
const QByteArray &  appIdentification 
) [protected, virtual]

Définition à la ligne 336 du fichier KoEncryptedStore.cpp.

Références KoStore::bad(), KoEncryptedStore_EncryptionData::checksum, KoEncryptedStore_EncryptionData::checksumShort, KoStore::close(), KoStore::device(), KoEncryptedStore_EncryptionData::filesize, KoStore::hasFile(), KoStore::init(), KoEncryptedStore_EncryptionData::initVector, KoEncryptedStore_EncryptionData::iterationCount, KoStore::m_bGood, m_encryptionData, KoStore::m_mode, m_store, normalizedFullPath(), KoStore::open(), KoStore::popDirectory(), KoStore::pushDirectory(), KoStore::Read, et KoEncryptedStore_EncryptionData::salt.

Référencé par KoEncryptedStore().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

bool KoEncryptedStore::openWrite ( const QString &  name  )  [protected, virtual]

Open the file name in the store, for writing On success, this method must set m_stream to a stream in which we can write.

Paramètres:
name "absolute path" (in the archive) to the file to open
Renvoie:
true on success

Implémente KoStore.

Définition à la ligne 495 du fichier KoEncryptedStore.cpp.

Références m_init_deferred, m_store, KoStore::m_stream, MANIFEST_FILE, normalizedFullPath(), et KoStore::open().

Voici le graphe d'appel pour cette fonction :

bool KoEncryptedStore::openRead ( const QString &  name  )  [protected, virtual]

Open the file name in the store, for reading. On success, this method must set m_stream to a stream from which we can read, as well as setting m_iSize to the size of the file.

Paramètres:
name "absolute path" (in the archive) to the file to open
Renvoie:
true on success

Implémente KoStore.

Définition à la ligne 511 du fichier KoEncryptedStore.cpp.

Références KoEncryptedStore_EncryptionData::checksum, KoEncryptedStore_EncryptionData::checksumShort, KoStore::close(), decryptFile(), KoStore::device(), KoEncryptedStore_EncryptionData::filesize, findPasswordInKWallet(), m_encryptionData, m_filename, KoStore::m_iSize, m_password, m_store, KoStore::m_stream, m_window, normalizedFullPath(), KoStore::open(), savePasswordInKWallet(), et KoStore::size().

Voici le graphe d'appel pour cette fonction :

bool KoEncryptedStore::closeWrite (  )  [protected, virtual]

Renvoie:
true on success

Implémente KoStore.

Définition à la ligne 664 du fichier KoEncryptedStore.cpp.

Références KoEncryptedStore_EncryptionData::checksum, KoEncryptedStore_EncryptionData::checksumShort, KoStore::close(), KoEncryptedStore_EncryptionData::filesize, findPasswordInKWallet(), initBackend(), KoEncryptedStore_EncryptionData::initVector, KoStore::isOpen(), KoEncryptedStore_EncryptionData::iterationCount, m_encryptionData, m_manifestBuffer, m_password, KoStore::m_sName, m_store, KoStore::m_stream, m_window, MANIFEST_FILE, META_FILE, normalizedFullPath(), testguiform::result, KoEncryptedStore_EncryptionData::salt, savePasswordInKWallet(), THUMBNAIL_FILE, et KoStore::write().

Voici le graphe d'appel pour cette fonction :

bool KoEncryptedStore::closeRead (  )  [protected, virtual]

Renvoie:
true on success

Implémente KoStore.

Définition à la ligne 766 du fichier KoEncryptedStore.cpp.

Références KoStore::close(), KoStore::isOpen(), m_store, et KoStore::m_stream.

Voici le graphe d'appel pour cette fonction :

bool KoEncryptedStore::enterRelativeDirectory ( const QString &  dirName  )  [protected, virtual]

Enter a subdirectory of the current directory. The directory might not exist yet in Write mode.

Implémente KoStore.

Définition à la ligne 782 du fichier KoEncryptedStore.cpp.

Références KoStore::currentDirectory(), KoStore::enterDirectory(), m_init_deferred, m_store, KoStore::popDirectory(), et KoStore::pushDirectory().

Voici le graphe d'appel pour cette fonction :

bool KoEncryptedStore::enterAbsoluteDirectory ( const QString &  path  )  [protected, virtual]

Enter a directory where we've been before. It is guaranteed to always exist.

Implémente KoStore.

Définition à la ligne 792 du fichier KoEncryptedStore.cpp.

Références KoStore::enterDirectory(), m_init_deferred, m_store, KoStore::popDirectory(), et KoStore::pushDirectory().

Voici le graphe d'appel pour cette fonction :

bool KoEncryptedStore::fileExists ( const QString &  absPath  )  const [protected, virtual]

Check if a file exists inside the store.

Paramètres:
absPath the absolute path inside the store, i.e. not relative to the current directory

Implémente KoStore.

Définition à la ligne 802 du fichier KoEncryptedStore.cpp.

Références KoStore::enterDirectory(), KoStore::hasFile(), KoStore::m_mode, m_store, KoStore::m_strFiles, KoStore::popDirectory(), KoStore::pos(), KoStore::pushDirectory(), testguiform::result, et KoStore::Write.

Voici le graphe d'appel pour cette fonction :

bool KoEncryptedStore::isEncrypted (  )  [protected]

Returns whether a store opened for reading is actually encrypted. This function will always return true in Write-mode.

Renvoie:
True if the store is encrypted.

Définition à la ligne 488 du fichier KoEncryptedStore.cpp.

Références m_encryptionData, KoStore::m_mode, et KoStore::Read.

Référencé par createEncryptedStoreReader().

Voici le graphe d'appel pour cette fonction :

KoZipStore * KoEncryptedStore::ripZipStore (  )  [protected]

Internal function. Rips the zip-store that drives the encrypted store from it. The encrypted store won't work anymore after this. Never use this function once a writing action has begun: the encryption-data will be lost and so will all data that has been written.

Renvoie:
The KoZipStore driving this store.

Définition à la ligne 261 du fichier KoEncryptedStore.cpp.

Références initBackend(), et m_store.

Référencé par createEncryptedStoreReader().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :

void KoEncryptedStore::findPasswordInKWallet (  )  [protected]

Tries and find a password for this document in KWallet. Uses m_filename as base for finding the password and stores it in m_password if found.

Définition à la ligne 605 du fichier KoEncryptedStore.cpp.

Références m_filename, m_password, et m_window.

Référencé par closeWrite(), et openRead().

Voici le graphe d'appel pour cette fonction :

void KoEncryptedStore::savePasswordInKWallet (  )  [protected]

Stores the password for this document in KWallet. Uses m_filename as base for storing the password and stores the value in m_password.

Définition à la ligne 627 du fichier KoEncryptedStore.cpp.

Références m_filename, m_password, et m_window.

Référencé par closeWrite(), et openRead().

Voici le graphe d'appel pour cette fonction :

QSecureArray KoEncryptedStore::decryptFile ( QSecureArray &  encryptedFile,
KoEncryptedStore_EncryptionData encData,
QSecureArray &  password 
) [private]

Définition à la ligne 643 du fichier KoEncryptedStore.cpp.

Références KoEncryptedStore_EncryptionData::initVector, KoEncryptedStore_EncryptionData::iterationCount, testguiform::result, et KoEncryptedStore_EncryptionData::salt.

Référencé par openRead().

Voici le graphe d'appel pour cette fonction :

QString KoEncryptedStore::normalizedFullPath ( const QString &  fullpath  )  [private]

Définition à la ligne 838 du fichier KoEncryptedStore.cpp.

Référencé par closeWrite(), init(), initBackend(), openRead(), openWrite(), et ~KoEncryptedStore().

Voici le graphe d'appel pour cette fonction :

QString KoEncryptedStore::filenameOnly ( const QString &  fullpath  )  [private]

bool KoEncryptedStore::initBackend (  )  [private]

Définition à la ligne 273 du fichier KoEncryptedStore.cpp.

Références KoStore::bad(), KoStore::close(), KoStore::isOpen(), KoStore::m_bGood, m_filename, m_init_appIdentification, m_init_deferred, m_init_dev, m_init_url, KoStore::m_mode, KoStore::m_sName, m_store, m_window, normalizedFullPath(), et KoStore::open().

Référencé par closeWrite(), ripZipStore(), et setPassword().

Voici le graphe d'appel pour cette fonction :

Voici le graphe d'appel pour cette fonction :


Documentation des données membres

KUrl KoEncryptedStore::m_init_url [private]

Définition à la ligne 143 du fichier KoEncryptedStore.h.

Référencé par initBackend().

QIODevice* KoEncryptedStore::m_init_dev [private]

Définition à la ligne 145 du fichier KoEncryptedStore.h.

Référencé par initBackend().

bool KoEncryptedStore::m_init_deferred [private]

Définition à la ligne 147 du fichier KoEncryptedStore.h.

Référencé par enterAbsoluteDirectory(), enterRelativeDirectory(), initBackend(), KoEncryptedStore(), et openWrite().

QByteArray KoEncryptedStore::m_init_appIdentification [private]

Définition à la ligne 149 du fichier KoEncryptedStore.h.

Référencé par initBackend().

QCA::Initializer KoEncryptedStore::m_qcaInit [protected]

Définition à la ligne 152 du fichier KoEncryptedStore.h.

QHash<QString, KoEncryptedStore_EncryptionData> KoEncryptedStore::m_encryptionData [protected]

Définition à la ligne 153 du fichier KoEncryptedStore.h.

Référencé par closeWrite(), init(), isEncrypted(), openRead(), et ~KoEncryptedStore().

KoZipStore* KoEncryptedStore::m_store [protected]

Définition à la ligne 154 du fichier KoEncryptedStore.h.

Référencé par closeRead(), closeWrite(), enterAbsoluteDirectory(), enterRelativeDirectory(), fileExists(), init(), initBackend(), KoEncryptedStore(), openRead(), openWrite(), ripZipStore(), et ~KoEncryptedStore().

QSecureArray KoEncryptedStore::m_password [protected]

Définition à la ligne 155 du fichier KoEncryptedStore.h.

Référencé par closeWrite(), findPasswordInKWallet(), openRead(), savePasswordInKWallet(), et setPassword().

QWidget* KoEncryptedStore::m_window [protected]

Réimplémentée à partir de KoStoreBase.

Définition à la ligne 156 du fichier KoEncryptedStore.h.

Référencé par closeWrite(), findPasswordInKWallet(), initBackend(), openRead(), et savePasswordInKWallet().

QString KoEncryptedStore::m_filename [protected]

Définition à la ligne 157 du fichier KoEncryptedStore.h.

Référencé par findPasswordInKWallet(), initBackend(), openRead(), et savePasswordInKWallet().

QByteArray KoEncryptedStore::m_manifestBuffer [protected]

Définition à la ligne 158 du fichier KoEncryptedStore.h.

Référencé par closeWrite(), et ~KoEncryptedStore().


La documentation de cette classe a été générée à partir des fichiers suivants :
Généré le Wed Nov 22 23:45:20 2006 pour KPlato par  doxygen 1.5.1-p1