aboutsummaryrefslogtreecommitdiffstats
path: root/qtlongterm/qtlongterm.h
blob: bb99a732de440e13947f507043524fcdd9de8db3 (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
// Copyright (C) 2022 The Qt Company Ltd.
//

#pragma once

#include <cstring>
#include <iostream>
#include <string>
#include <sstream>
#include <fstream>
#include <map>
#if __APPLE__ || __MACH__ || __linux__
    #include <sys/types.h>
    #include <netdb.h>
    #include <sys/socket.h>
    #include <netinet/in.h>
    #include <arpa/inet.h>
    #include <unistd.h>
#else
    #include <windows.h>
    #include <winsock2.h>
    #include <ws2tcpip.h>
    #define close closesocket
#endif

#include "utils.h"
//#include "commonsetup.h"

#define APP_NAME "Qt long-term license CLI"
#define BUFFER_SIZE 1024

void helpAndExit(const std::string &reason);
std::string helpText();