-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwiadomosc.h
52 lines (33 loc) · 1.11 KB
/
wiadomosc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef WIADOMOSC_H
#define WIADOMOSC_H
#include <QString>
#include "TypWiadomosci.h"
#include "../klucz.h"
#include "../konfiguracjaszyfrowania.h"
#include <QDebug>
#include <QListIterator>
#include <QStringList>
class Wiadomosc {
private:
QList<int> *adresat;
int nadawca;
QList<QString> *tresc;
TypWiadomosci typ;
void clear();
public:
Wiadomosc();
Wiadomosc(int nadawca, QList<int>* adresat, QList<QString> *tresc, TypWiadomosci typ);
Wiadomosc(int nadawca, int adresat, QString *tresc, TypWiadomosci typ);
Wiadomosc(int nadawca, QList<QString>* tresc, TypWiadomosci typ);
~Wiadomosc();
QList<int>* getAdresat();
int getNadawca();
QList<QString>* getTresc();
QString *getSerializeTresc();
TypWiadomosci getTyp();
//QString Szyfruj(QString *e);
QByteArray* Szyfruj(Klucz *klucz);
//void Deszyfruj(QString* tresc, QString *e);
void Deszyfruj(QByteArray* tresc, Klucz *klucz);
};
#endif // WIADOMOSC_H