FluentUI/example/src/AppInfo.h

24 lines
522 B
C
Raw Normal View History

2023-05-22 16:17:51 +08:00
#ifndef APPINFO_H
2023-04-11 18:05:07 +08:00
#define APPINFO_H
#include <QObject>
2023-05-25 17:00:48 +08:00
#include <QQmlApplicationEngine>
#include "tool/IPC.h"
2023-04-14 17:07:54 +08:00
#include "lang/Lang.h"
2023-04-11 18:05:07 +08:00
#include "stdafx.h"
class AppInfo : public QObject
{
Q_OBJECT
Q_PROPERTY_AUTO(QString,version)
2023-04-14 17:07:54 +08:00
Q_PROPERTY_AUTO(Lang*,lang)
2023-04-11 18:05:07 +08:00
public:
explicit AppInfo(QObject *parent = nullptr);
2023-05-25 17:00:48 +08:00
void init(QQmlApplicationEngine *engine);
bool isOwnerProcess(IPC *ipc);
2023-04-14 17:07:54 +08:00
Q_INVOKABLE void changeLang(const QString& locale);
2023-04-22 00:29:47 +08:00
Q_SIGNAL void activeWindow();
2023-04-11 18:05:07 +08:00
};
#endif // APPINFO_H