NewServerSettings qml rework
This commit is contained in:
parent
3175bc1e48
commit
40fa2d6779
34 changed files with 644 additions and 255 deletions
35
client/containers/containers_defs.h
Normal file
35
client/containers/containers_defs.h
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
#ifndef CONTAIERNS_DEFS_H
|
||||
#define CONTAIERNS_DEFS_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
#include "../protocols/protocols_defs.h"
|
||||
|
||||
using namespace amnezia;
|
||||
|
||||
namespace amnezia {
|
||||
|
||||
enum class DockerContainer {
|
||||
None,
|
||||
OpenVpn,
|
||||
OpenVpnOverShadowSocks,
|
||||
OpenVpnOverCloak,
|
||||
WireGuard
|
||||
};
|
||||
|
||||
DockerContainer containerFromString(const QString &container);
|
||||
QString containerToString(DockerContainer container);
|
||||
|
||||
QVector<DockerContainer> allContainers();
|
||||
|
||||
QMap<DockerContainer, QString> containerHumanNames();
|
||||
QMap<DockerContainer, QString> containerDescriptions();
|
||||
bool isContainerVpnType(DockerContainer c);
|
||||
|
||||
QVector<Protocol> protocolsForContainer(DockerContainer container);
|
||||
|
||||
} // namespace amnezia
|
||||
|
||||
QDebug operator<<(QDebug debug, const amnezia::DockerContainer &c);
|
||||
|
||||
#endif // CONTAIERNS_DEFS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue