PxCrypt v0.2.2
Encrypt data within an image
Loading...
Searching...
No Matches
encoder.h
1#ifndef ENCODER_H
2#define ENCODER_H
3
4// Shared Library Support
5#include "pxcrypt/pxcrypt_codec_export.h"
6
7// Qt Includes
8#include <QByteArray>
9#include <QScopedPointer>
10
11namespace PxCrypt
12{
13
14class EncoderPrivate;
15
16class PXCRYPT_CODEC_EXPORT Encoder
17{
18 Q_DECLARE_PRIVATE(Encoder);
19//-Class Enums--------------------------------------------------------------------------------------------------
20public:
21 /* TODO: Actually... consider putting back public api encdec.h so that this can be there (and maybe even
22 * some of the stuff from the private version), so that including decoder.h doesnt have to include encoder.h
23 */
24 enum Encoding : quint8
25 {
27 Absolute
28 };
29
30//-Instance Variables----------------------------------------------------------------------------------------------
32protected:
33 std::unique_ptr<EncoderPrivate> d_ptr;
36//-Constructor---------------------------------------------------------------------------------------------------
37protected:
39 Encoder(std::unique_ptr<EncoderPrivate> d_ptr);
42//-Destructor---------------------------------------------------------------------------------------------------
43public:
44 virtual ~Encoder();
45
46//-Instance Functions----------------------------------------------------------------------------------------------
47public:
48 quint8 bpc() const;
49 Encoding encoding() const;
50 QByteArray presharedKey() const;
51
52 void setBpc(quint8 bpc);
53 void setEncoding(Encoding enc);
54 void setPresharedKey(const QByteArray& key);
55};
56
57}
58
59#endif // ENCODER_H
The Encoder class is a base class from which all PxCrypt encoders derive in order to provide serializ...
Definition encoder.h:17
Encoding
Definition encoder.h:25
@ Relative
Definition encoder.h:26
The PxCrypt namespace is the main namespace through which all functionality of the PxCrypt library is...
Definition decoder.cpp:6