Imports DigitalData.Modules.Config
Imports DigitalData.Modules.Logging

Module ModuleCURRENT
    Public ERROR_STATE As String
    Public START_INCOMPLETE As Boolean = False
    Public CURRENT_FILENAME As String
    Public CURRENT_NEWFILENAME As String
    Public CURRENT_WORKFILE_GUID As Integer
    Public CURRENT_WORKFILE As String
    Public CURR_WORKFILE_EXTENSION As String

    Public CONFIG As ConfigManager(Of ClassConfig)
    Public LOGCONFIG As LogConfig
    Public LOGGER As Logger

    Public CURRENT_DOKART_ID As Integer
    Public CURRENT_DOKART_DUPLICATE_HANDLING As String = "Default"
    Public CURRENT_LASTDOKART As String = ""
    Public CURRENT_INDEXMAN As Integer
    Public CURRENT_INDEXAUTO As Integer
    Public CURRENT_SQL_CONFIG As String

    Public VERSION_DELIMITER As String
    Public FILE_DELIMITER As String
    Public CURRENT_MESSAGEID As String
    Public CURRENT_MESSAGEDATE As String
    Public CURRENT_MESSAGESUBJECT As String
    Public CURRENT_ISATTACHMENT As Boolean = False

    Public USER_ID
    Public USER_IN_MODULE As Boolean = False
    Public USER_IS_ADMIN As Boolean = False
    Public UserLoggedin As Integer = 0

    Public USER_SHORT_NAME As String = ""
    Public USER_PRENAME As String = ""
    Public USER_SURNAME As String = ""
    Public USER_EMAIL As String = ""
    Public USER_LANGUAGE As String = "DE"
    Public USER_USERNAME As String = ""

    Public CURRENT_FOLDERWATCH As String = ""
    Public CURRENT_SCAN_FOLDERWATCH As String = ""

    Public FWFunction_STARTED As Boolean = False

    Public CURR_DOKART_WD_DIRECT As Boolean = False
    Public CURR_DOKART_OBJECTTYPE As String
    Public CURRENT_WD_TEMPSEARCH As String = ""

    Public LICENSE_EXPIRED As Boolean = False
    Public LICENSE_COUNT As Integer = 0
    Public LICENSE_DOCTYPE_COUNT As Integer = 0
    Public DOCTYPE_COUNT_ACTUAL As Integer = 0
    Public LicenseHotKey As Integer = 0

    Public CURRENT_HTML_DOC As String

    Public INDEXING_ACTIVE As Boolean = False
    Public MULTIINDEXING_ACTIVE As Boolean = False
    Public ABORT_INDEXING As Boolean = False

    Public DTACTUAL_FILES As DataTable
    Public DTEXCLUDE_FILES As DataTable
    Public DTTBGI_REGEX_DOCTYPE As DataTable

    Public CURRENT_SQLRESULT As String
    Public DTSQL_RESULT As DataTable
    Public TEMP_FILES As List(Of String) = New List(Of String)

    Public CURRENT_FOCUSES_WINDOWNAME As String

    Public LANGUAGE_CHANGED As Boolean = False
    Public CURR_MISSING_PATTERN_NAME As String
    Public CURR_MISSING_SEARCH_STRING As String
    Public CURR_MISSING_MANUAL_VALUE As String
    Public CURR_DELETE_ORIGIN As Boolean = False
    Public CURRENT_DT_REGEX As DataTable
    Public REGEX_CLEAN_FILENAME As String = "[?*^""<>|]"
    Public CURRENT_DROPTYPE

    Public VIEWER_LICENSE As String = ""

    Public INDEX_FORM_LOADED As Boolean
End Module


