Pool Video Switch v2
Software video switch for distributed remote display in a lecture environment
Main Page
Namespaces
Classes
Files
File List
File Members
shared
util.cpp
Go to the documentation of this file.
1
/*
2
* util.cpp
3
*
4
* Created on: 30.01.2013
5
* Author: sr
6
*/
7
8
#include "
util.h
"
9
#include <QCryptographicHash>
10
11
static
QCryptographicHash
sha1
(QCryptographicHash::Sha1);
12
13
QByteArray
genSha1
(
const
QByteArray *a,
const
QByteArray *b,
const
QByteArray *c,
const
QByteArray *d,
const
QByteArray *e)
14
{
15
sha1
.reset();
16
sha1
.addData(*a);
17
if
(b)
sha1
.addData(*b);
18
if
(c)
sha1
.addData(*c);
19
if
(d)
sha1
.addData(*d);
20
if
(e)
sha1
.addData(*e);
21
return
sha1
.result();
22
}
sha1
static QCryptographicHash sha1(QCryptographicHash::Sha1)
genSha1
QByteArray genSha1(const QByteArray *a, const QByteArray *b, const QByteArray *c, const QByteArray *d, const QByteArray *e)
Definition:
util.cpp:13
util.h
Generated on Tue Jul 9 2024 12:00:03 for Pool Video Switch v2 by
1.8.8