KWallet
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]);
50 virtual int write(Backend *wb, QSaveFile &sf, QByteArray &version, WId w) = 0;
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
65 int write(Backend *wb, QSaveFile &sf, QByteArray &version, WId w)
override;
66 int read(Backend *wb, QFile &sf, WId w)
override;
69 bool _useECBforReading;
73class GpgPersistHandler :
public BackendPersistHandler
79 ~GpgPersistHandler()
override
83 int write(Backend *wb, QSaveFile &sf, QByteArray &version, WId w)
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-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:48:58 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.