#
# Generated by /build/src/_builddir/src/python/openvpn3/gen-py-constants
# as part of the project build.
#
# This file is part of openvpn3-linux, licensed
# under AGPLv3.  Please see the main COPYRIGHT.md
# file packaged with the project for more details.
#
# Do not modify this file.  This file needs to be
# regenerated each time any of the OpenVPN 3 Linux
# constants are modified.
#

import dbus
from enum import Enum, IntFlag

VERSION = 'v27.1'

class StatusMajor(Enum):
    UNSET = dbus.UInt32(0)
    CFG_ERROR = dbus.UInt32(1)
    CONNECTION = dbus.UInt32(2)
    SESSION = dbus.UInt32(3)
    PKCS11 = dbus.UInt32(4)
    PROCESS = dbus.UInt32(5)


class StatusMinor(Enum):
    UNSET = dbus.UInt32(0)
    CFG_ERROR = dbus.UInt32(1)
    CFG_OK = dbus.UInt32(2)
    CFG_INLINE_MISSING = dbus.UInt32(3)
    CFG_REQUIRE_USER = dbus.UInt32(4)
    CONN_INIT = dbus.UInt32(5)
    CONN_CONNECTING = dbus.UInt32(6)
    CONN_CONNECTED = dbus.UInt32(7)
    CONN_DISCONNECTING = dbus.UInt32(8)
    CONN_DISCONNECTED = dbus.UInt32(9)
    CONN_FAILED = dbus.UInt32(10)
    CONN_AUTH_FAILED = dbus.UInt32(11)
    CONN_RECONNECTING = dbus.UInt32(12)
    CONN_PAUSING = dbus.UInt32(13)
    CONN_PAUSED = dbus.UInt32(14)
    CONN_RESUMING = dbus.UInt32(15)
    CONN_DONE = dbus.UInt32(16)
    SESS_NEW = dbus.UInt32(17)
    SESS_BACKEND_COMPLETED = dbus.UInt32(18)
    SESS_REMOVED = dbus.UInt32(19)
    SESS_AUTH_USERPASS = dbus.UInt32(20)
    SESS_AUTH_CHALLENGE = dbus.UInt32(21)
    SESS_AUTH_URL = dbus.UInt32(22)
    PKCS11_SIGN = dbus.UInt32(23)
    PKCS11_ENCRYPT = dbus.UInt32(24)
    PKCS11_DECRYPT = dbus.UInt32(25)
    PKCS11_VERIFY = dbus.UInt32(26)
    PROC_STARTED = dbus.UInt32(27)
    PROC_STOPPED = dbus.UInt32(28)
    PROC_KILLED = dbus.UInt32(29)


class SessionManagerEventType(Enum):
    SESS_CREATED = dbus.UInt16(1)
    SESS_DESTROYED = dbus.UInt16(2)


class ClientAttentionType(Enum):
    UNSET = dbus.UInt32(0)
    CREDENTIALS = dbus.UInt32(1)
    PKCS11 = dbus.UInt32(2)
    ACCESS_PERM = dbus.UInt32(3)


class ClientAttentionGroup(Enum):
    UNSET = dbus.UInt32(0)
    USER_PASSWORD = dbus.UInt32(1)
    HTTP_PROXY_CREDS = dbus.UInt32(2)
    PK_PASSPHRASE = dbus.UInt32(3)
    CHALLENGE_STATIC = dbus.UInt32(4)
    CHALLENGE_DYNAMIC = dbus.UInt32(5)
    CHALLENGE_AUTH_PENDING = dbus.UInt32(6)
    PKCS11_SIGN = dbus.UInt32(7)
    PKCS11_DECRYPT = dbus.UInt32(8)
    OPEN_URL = dbus.UInt32(9)


class NetCfgChangeType(IntFlag):
    UNSET = dbus.UInt32(0)
    DEVICE_ADDED = dbus.UInt32(1)
    DEVICE_REMOVED = dbus.UInt32(2)
    IPADDR_ADDED = dbus.UInt32(4)
    IPADDR_REMOVED = dbus.UInt32(8)
    ROUTE_ADDED = dbus.UInt32(16)
    ROUTE_REMOVED = dbus.UInt32(32)
    ROUTE_EXCLUDED = dbus.UInt32(64)
    DNS_SERVER_ADDED = dbus.UInt32(128)
    DNS_SERVER_REMOVED = dbus.UInt32(256)
    DNS_SEARCH_ADDED = dbus.UInt32(512)
    DNS_SEARCH_REMOVED = dbus.UInt32(1024)


