35 lines
788 B
C++
35 lines
788 B
C++
#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
|