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
11
namespace
PxCrypt
12
{
13
14
class
EncoderPrivate;
15
16
class
PXCRYPT_CODEC_EXPORT
Encoder
17
{
18
Q_DECLARE_PRIVATE(
Encoder
);
19
//-Class Enums--------------------------------------------------------------------------------------------------
20
public
:
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
{
26
Relative
,
27
Absolute
28
};
29
30
//-Instance Variables----------------------------------------------------------------------------------------------
32
protected
:
33
std::unique_ptr<EncoderPrivate> d_ptr;
36
//-Constructor---------------------------------------------------------------------------------------------------
37
protected
:
39
Encoder
(std::unique_ptr<EncoderPrivate> d_ptr);
42
//-Destructor---------------------------------------------------------------------------------------------------
43
public
:
44
virtual
~Encoder
();
45
46
//-Instance Functions----------------------------------------------------------------------------------------------
47
public
:
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
PxCrypt::Encoder
The Encoder class is a base class from which all PxCrypt encoders derive in order to provide serializ...
Definition
encoder.h:17
PxCrypt::Encoder::Encoding
Encoding
Definition
encoder.h:25
PxCrypt::Encoder::Relative
@ Relative
Definition
encoder.h:26
PxCrypt
The PxCrypt namespace is the main namespace through which all functionality of the PxCrypt library is...
Definition
decoder.cpp:6
QByteArray
lib
include
pxcrypt
codec
encoder.h
Generated by
1.10.0