mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 23:11:25 +12:00
rename rpcs3_app to headless_application
This commit is contained in:
parent
0dc7841d0f
commit
503d43889d
7 changed files with 70 additions and 68 deletions
36
rpcs3/headless_application.h
Normal file
36
rpcs3/headless_application.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
#pragma once
|
||||
|
||||
#include "stdafx.h"
|
||||
|
||||
#include <QCoreApplication>
|
||||
|
||||
#include "main_application.h"
|
||||
|
||||
/** Headless RPCS3 Application Class
|
||||
* The main point of this class is to do application initialization and initialize callbacks.
|
||||
*/
|
||||
|
||||
class headless_application : public QCoreApplication, public main_application
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
headless_application(int& argc, char** argv);
|
||||
|
||||
/** Call this method before calling app.exec */
|
||||
void Init() override;
|
||||
|
||||
private:
|
||||
void InitializeCallbacks();
|
||||
void InitializeConnects();
|
||||
|
||||
QThread* get_thread() override
|
||||
{
|
||||
return thread();
|
||||
};
|
||||
|
||||
Q_SIGNALS:
|
||||
void RequestCallAfter(const std::function<void()>& func);
|
||||
|
||||
private Q_SLOTS:
|
||||
void HandleCallAfter(const std::function<void()>& func);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue