Port to Windows

This commit is contained in:
Florian Märkl 2019-08-18 19:47:27 +02:00
commit 5faa801331
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
52 changed files with 616 additions and 143 deletions

View file

@ -18,11 +18,11 @@
#ifndef CHIAKI_AVOPENGLWIDGET_H
#define CHIAKI_AVOPENGLWIDGET_H
#include <chiaki/log.h>
#include <QOpenGLWidget>
#include <QMutex>
#include <chiaki/log.h>
extern "C"
{
#include <libavcodec/avcodec.h>

View file

@ -18,13 +18,13 @@
#ifndef CHIAKI_DISCOVERYMANAGER_H
#define CHIAKI_DISCOVERYMANAGER_H
#include <chiaki/discoveryservice.h>
#include "host.h"
#include <QObject>
#include <QList>
#include <chiaki/discoveryservice.h>
struct DiscoveryHost
{
ChiakiDiscoveryHostState state;

View file

@ -25,11 +25,11 @@
class Exception : public std::exception
{
private:
QString msg;
QByteArray msg;
public:
explicit Exception(const QString &msg) : msg(msg) {}
const char *what() const noexcept override { return msg.toLocal8Bit().constData(); }
explicit Exception(const QString &msg) : msg(msg.toLocal8Bit()) {}
const char *what() const noexcept override { return msg.constData(); }
};
#endif // CHIAKI_EXCEPTION_H

View file

@ -18,11 +18,11 @@
#ifndef CHIAKI_HOST_H
#define CHIAKI_HOST_H
#include <chiaki/regist.h>
#include <QMetaType>
#include <QString>
#include <chiaki/regist.h>
class QSettings;
class HostMAC

View file

@ -18,10 +18,10 @@
#ifndef CHIAKI_REGISTDIALOG_H
#define CHIAKI_REGISTDIALOG_H
#include "host.h"
#include <chiaki/regist.h>
#include "host.h"
#include <QDialog>
class Settings;

View file

@ -23,7 +23,7 @@
class QLabel;
class ServerIconWidget;
class DisplayServer;
struct DisplayServer;
class ServerItemWidget : public QFrame
{

View file

@ -18,10 +18,10 @@
#ifndef CHIAKI_SETTINGS_H
#define CHIAKI_SETTINGS_H
#include "host.h"
#include <chiaki/session.h>
#include "host.h"
#include <QSettings>
class Settings : public QObject

View file

@ -18,6 +18,8 @@
#ifndef CHIAKI_STREAMSESSION_H
#define CHIAKI_STREAMSESSION_H
#include <chiaki/session.h>
#include "videodecoder.h"
#include "exception.h"
#include "sessionlog.h"
@ -26,8 +28,6 @@
#include <QObject>
#include <QImage>
#include <chiaki/session.h>
#if CHIAKI_GUI_ENABLE_QT_GAMEPAD
class QGamepad;
#endif

View file

@ -18,10 +18,10 @@
#ifndef CHIAKI_VIDEODECODER_H
#define CHIAKI_VIDEODECODER_H
#include "exception.h"
#include <chiaki/log.h>
#include "exception.h"
#include <QMutex>
#include <QObject>