nesca/FileUpdater.h

35 lines
786 B
C
Raw Permalink Normal View History

2015-03-24 14:29:27 +00:00
#ifndef FILEUPDATER_H
#define FILEUPDATER_H
#include <fstream>
2015-03-25 14:29:08 +00:00
#include <mutex>
#include <condition_variable>
#include <vector>
2015-03-24 14:29:27 +00:00
class FileUpdater {
public:
2015-04-01 19:23:52 +00:00
static bool running;
2015-03-24 14:29:27 +00:00
static long oldNegLstSize;
static long oldLoginLstSize;
static long oldPassLstSize;
static long oldSSHLstSize;
static long oldWFLoginLstSize;
2015-08-07 22:37:28 +00:00
static long oldWFPassLstSize;
static long oldFTPLoginLstSize;
static long oldFTPPassLstSize;
2015-03-25 14:29:08 +00:00
static bool ready;
static std::condition_variable cv;
static std::mutex filesUpdatingMutex;
static std::unique_lock<std::mutex> lk;
static int gNegativeSize;
static std::vector<std::string> negativeVector;
2015-03-24 14:29:27 +00:00
public:
2015-03-28 05:30:41 +00:00
static void updateLists();
static void loadOnce();
2015-03-27 13:38:53 +00:00
static void FUClear();
2015-03-24 14:29:27 +00:00
};
#endif // FILEUPDATER_H