blob: dda14accc45e9dbabae2ea845dfe15622042db79 (
plain)
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
|
/** \file AuthPlugin.h
\brief Define the authentication plugin
\author alpha_one_x86
\version 0.3
\date 2010
\licence GPL3, see the file COPYING */
#ifndef AUTHPLUGIN_H
#define AUTHPLUGIN_H
#include <QThread>
#include <QObject>
#include <QSemaphore>
#include <QStringList>
#include <QString>
#include <QCryptographicHash>
#include "Environment.h"
/** \brief allow authentify the plugin */
class AuthPlugin : public QThread
{
Q_OBJECT
public:
AuthPlugin();
~AuthPlugin();
/** \brief stop all action to close ultracopier */
void stop();
/** \brief add path to check
\param readPath list of read place
\param searchPathPlugin list of plugin place
*/
void loadSearchPath(const QStringList &readPath,const QStringList &searchPathPlugin);
protected:
void run();
private:
bool stopIt;
QSemaphore sem;
QStringList readPath;
QStringList searchPathPlugin;
static QStringList getFileList(const QString &path);
signals:
void authentifiedPath(QString);
};
#endif // AUTHPLUGIN_H
|