PictureCrypt  1.4.1
An image-steganography project
Public Slots | Public Member Functions | Public Attributes | List of all members
EncryptDialog Class Reference

The EncryptDialog class Class to get the image and key to store secret info. More...

#include <encryptdialog.h>

Inheritance diagram for EncryptDialog:
Inheritance graph
[legend]
Collaboration diagram for EncryptDialog:
Collaboration graph
[legend]

Public Slots

void on_fileButton_clicked ()
 EncryptDialog::on_fileButton_clicked Slot to select the image. More...
 
void on_buttonBox_accepted ()
 EncryptDialog::on_buttonBox_accepted Slot to start the encryption. Successful closing of the app. More...
 
void on_buttonBox_rejected ()
 EncryptDialog::on_buttonBox_rejected Slot to reject the encryption. More...
 
void on_bitsSlider_valueChanged (int value)
 EncryptDialog::on_bitsSlider_valueChanged Slot if value of the bits slider is changed. More...
 

Public Member Functions

 EncryptDialog (QByteArray _data, QWidget *parent=0)
 EncryptDialog::EncryptDialog Constructor of the class. Input data is saved here and some variables are set here. More...
 
 ~EncryptDialog ()
 
QByteArray zip ()
 EncryptDialog::zip Zipping algorithm It copresses the data and then compresses it using qCompress() More...
 

Public Attributes

QByteArray data
 data Input data More...
 
bool success
 success Flag, if image was successfully selected and data was encrypted. More...
 
QByteArray compr_data
 compr_data Compressed data, aka Output data. More...
 
QString inputFileName
 inputFileName Filename of the image. More...
 
long long int size
 size Size of the image in square pixels More...
 
QString key
 key Key to be used for encryption in EncrytDialog::zip More...
 
bool goodPercentage
 goodPercentage Flag if area of the used data via encryption is less than 70% of the area of the image. More...
 
int val
 val Value of the slider More...
 
int bitsUsed
 bitsUsed Bits used per byte of pixel. More...
 
QImage image
 image Inputted image More...
 

Detailed Description

The EncryptDialog class Class to get the image and key to store secret info.

Note
Not the most important and well written class.
See also
ViewPC

Definition at line 21 of file encryptdialog.h.

Constructor & Destructor Documentation

EncryptDialog::EncryptDialog ( QByteArray  _data,
QWidget *  parent = 0 
)
explicit

EncryptDialog::EncryptDialog Constructor of the class. Input data is saved here and some variables are set here.

Parameters
_dataInput data.
parentParent (not in use)

Definition at line 9 of file encryptdialog.cpp.

Here is the call graph for this function:

EncryptDialog::~EncryptDialog ( )

Definition at line 26 of file encryptdialog.cpp.

Member Function Documentation

void EncryptDialog::on_bitsSlider_valueChanged ( int  value)
slot

EncryptDialog::on_bitsSlider_valueChanged Slot if value of the bits slider is changed.

Parameters
valueWell, value

Definition at line 107 of file encryptdialog.cpp.

void EncryptDialog::on_buttonBox_accepted ( )
slot

EncryptDialog::on_buttonBox_accepted Slot to start the encryption. Successful closing of the app.

Definition at line 82 of file encryptdialog.cpp.

Here is the call graph for this function:

void EncryptDialog::on_buttonBox_rejected ( )
slot

EncryptDialog::on_buttonBox_rejected Slot to reject the encryption.

Definition at line 98 of file encryptdialog.cpp.

void EncryptDialog::on_fileButton_clicked ( )
slot

EncryptDialog::on_fileButton_clicked Slot to select the image.

Definition at line 57 of file encryptdialog.cpp.

QByteArray EncryptDialog::zip ( )

EncryptDialog::zip Zipping algorithm It copresses the data and then compresses it using qCompress()

Returns
Returns Compressed data.
See also
ModelPC::unzip

Definition at line 46 of file encryptdialog.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

int EncryptDialog::bitsUsed

bitsUsed Bits used per byte of pixel.

See also
ModelPC::circuit

Definition at line 75 of file encryptdialog.h.

QByteArray EncryptDialog::compr_data

compr_data Compressed data, aka Output data.

Definition at line 50 of file encryptdialog.h.

QByteArray EncryptDialog::data

data Input data

Definition at line 42 of file encryptdialog.h.

bool EncryptDialog::goodPercentage

goodPercentage Flag if area of the used data via encryption is less than 70% of the area of the image.

Definition at line 66 of file encryptdialog.h.

QImage EncryptDialog::image

image Inputted image

Definition at line 79 of file encryptdialog.h.

QString EncryptDialog::inputFileName

inputFileName Filename of the image.

Definition at line 54 of file encryptdialog.h.

QString EncryptDialog::key

key Key to be used for encryption in EncrytDialog::zip

Definition at line 62 of file encryptdialog.h.

long long int EncryptDialog::size

size Size of the image in square pixels

Definition at line 58 of file encryptdialog.h.

bool EncryptDialog::success

success Flag, if image was successfully selected and data was encrypted.

Definition at line 46 of file encryptdialog.h.

int EncryptDialog::val

val Value of the slider

Definition at line 70 of file encryptdialog.h.


The documentation for this class was generated from the following files: