2019-10-25 20:16:43 +02:00
|
|
|
/*
|
|
|
|
|
* File: main.cpp
|
2019-10-28 14:12:50 +01:00
|
|
|
* Author: SET - nmset@yandex.com
|
2019-10-25 20:16:43 +02:00
|
|
|
* License : GPL v2
|
|
|
|
|
* Copyright SET - © 2019
|
|
|
|
|
*
|
|
|
|
|
* Created on 7 octobre 2019, 21:06
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <cstdlib>
|
2020-11-26 22:30:04 +01:00
|
|
|
#include <locale>
|
2019-10-25 20:16:43 +02:00
|
|
|
#include "K7Main.h"
|
|
|
|
|
#include <gpgme++/global.h>
|
|
|
|
|
#include <Wt/WApplication.h>
|
|
|
|
|
#include <Wt/WEnvironment.h>
|
|
|
|
|
using namespace std;
|
|
|
|
|
using namespace Wt;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
unique_ptr<WApplication> createApplication(const WEnvironment& env)
|
|
|
|
|
{
|
|
|
|
|
unique_ptr<K7Main> app = cpp14::make_unique<K7Main>(env);
|
|
|
|
|
app->Create();
|
|
|
|
|
return (app);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int main(int argc, char** argv)
|
|
|
|
|
{
|
2020-11-26 22:30:04 +01:00
|
|
|
// To get localized GpgME error strings.
|
|
|
|
|
locale::global(locale(""));
|
|
|
|
|
|
2019-10-25 20:16:43 +02:00
|
|
|
GpgME::initializeLibrary();
|
|
|
|
|
return WRun(argc, argv, &createApplication);
|
|
|
|
|
}
|
|
|
|
|
|