8#ifndef BACKENDPERSISTHANDLER_H
9#define BACKENDPERSISTHANDLER_H
13#include <qwindowdefs.h>
21enum BackendCipherType {
22 BACKEND_CIPHER_UNKNOWN,
23 BACKEND_CIPHER_BLOWFISH,
29class BackendPersistHandler
32 BackendPersistHandler()
37 virtual ~BackendPersistHandler()
47 static BackendPersistHandler *getPersistHandler(BackendCipherType cipherType);
48 static BackendPersistHandler *getPersistHandler(
char magicBuf[KWMAGIC_LEN]);
51 virtual int read(Backend *wb,
QFile &sf, WId w) = 0;
54class BlowfishPersistHandler :
public BackendPersistHandler
57 explicit BlowfishPersistHandler(
bool useECBforReading =
false)
58 : _useECBforReading(useECBforReading)
61 ~BlowfishPersistHandler()
override
66 int read(Backend *wb,
QFile &sf, WId w)
override;
69 bool _useECBforReading;
73class GpgPersistHandler :
public BackendPersistHandler
79 ~GpgPersistHandler()
override
84 int read(Backend *wb,
QFile &sf, WId w)
override;
QVariant read(const QByteArray &data, int versionOverride=0)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:06 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.