Files
amnezia-client/client/ui/pages.h
T

43 lines
918 B
C++
Raw Normal View History

2021-09-03 20:17:13 +03:00
#ifndef PAGES_H
#define PAGES_H
#include <QObject>
#include <QQmlEngine>
2021-11-06 13:47:52 +03:00
class PageType : public QObject
{
Q_GADGET
public:
enum Type {
Basic,
Proto,
ShareProto
};
Q_ENUM(Type)
};
2021-09-03 20:17:13 +03:00
namespace PageEnumNS
{
Q_NAMESPACE
2021-09-19 14:31:38 +03:00
enum class Page {Start = 0, NewServer, NewServerProtocols, Vpn,
2021-09-20 21:51:28 +03:00
Wizard, WizardLow, WizardMedium, WizardHigh, WizardVpnMode, ServerConfiguringProgress,
2021-09-03 20:17:13 +03:00
GeneralSettings, AppSettings, NetworkSettings, ServerSettings,
2021-09-07 19:26:58 +03:00
ServerContainers, ServersList, ShareConnection, Sites,
2022-01-28 16:03:21 +03:00
ProtocolSettings, ProtocolShare, QrDecoder, About};
2021-09-03 20:17:13 +03:00
Q_ENUM_NS(Page)
2021-09-16 19:49:50 +03:00
static void declareQmlPageEnum() {
2021-09-03 20:17:13 +03:00
qmlRegisterUncreatableMetaObject(
PageEnumNS::staticMetaObject,
"PageEnum",
1, 0,
"PageEnum",
"Error: only enums"
);
}
} // PAGES_H
#endif