#!/bin/bash

###########################################################################
#
# MODULE:       Shared
# COPYRIGHT:    (C) 2009-2025 by CacheGuard Technologies Ltd (UK)
# COPYRIGHT:    (C) 2026-2026 by CacheGuard Technologies SAS (FR)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
###########################################################################

JobsLock[0]=''
JobsCommand[0]=''
JobsPage[0]=''

JobsLock[1]='apl_apply'
JobsCommand[1]='apply'
JobsPage[1]='apply'
JobsTitle[1]='Applying New Configuration'

JobsLock[2]='apl_apply_cancel'
JobsCommand[2]='apply'
JobsPage[2]='apply'
JobsTitle[2]='Cancelling the Apply Operation'

JobsLock[3]='apl_reboot'
JobsCommand[3]='reboot'
JobsPage[3]='power'
JobsTitle[3]='Rebooting the System'

JobsLock[4]='apl_halt'
JobsCommand[4]='halt'
JobsPage[4]='power'
JobsTitle[4]='Powering Off the System'

JobsLock[5]='apl_rollback'
JobsCommand[5]='apply'
JobsPage[5]='apply'
JobsTitle[5]='Rolling back the Apply operation'

JobsLock[6]='apl_configure'
JobsCommand[6]='apply'
JobsPage[6]='apply'
JobsTitle[6]='Configuring the System'

JobsLock[7]='apl_cache_clear'
JobsCommand[7]='cache clear'
JobsPage[7]='cache-clear'
JobsTitle[7]='Clearing the Web Cache'

JobsLock[8]='apl_av_create'
JobsCommand[8]='antivirus create'
JobsPage[8]='antivirus-create'
JobsTitle[8]='Downloading AV Signatures'

JobsLock[9]='apl_av_update'
JobsCommand[9]='antivirus update'
JobsPage[9]='antivirus-update'
JobsTitle[9]='Updating AV Signatures'

JobsLock[10]='apl_verify_usage'
JobsCommand[10]=''
JobsPage[10]=''
JobsTitle[10]=''

JobsLock[11]='apl_backup'
JobsCommand[11]='system backup create'
JobsPage[11]='system-backup'
JobsTitle[11]='Backing Up the System'

JobsLock[12]='apl_logrotate'
JobsCommand[12]='log rotate'
JobsPage[12]='log-rotate'
JobsTitle[12]='Rotating Logs'

JobsLock[13]='apl_urllist_update'
JobsCommand[13]='urllist'
JobsPage[13]='urllist-update'
JobsTitle[13]='Updating URL Lists'

JobsLock[14]='apl_ha'
JobsCommand[14]=''
JobsPage[14]=''
JobsTitle[14]=''

JobsLockNb=15
