File indexing completed on 2024-10-06 03:39:22

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2000-2013 David Faure <faure@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-only
0006 */
0007 
0008 #ifndef KIO_COMMANDS_P_H
0009 #define KIO_COMMANDS_P_H
0010 
0011 #include "kiocore_export.h"
0012 
0013 namespace KIO
0014 {
0015 /**
0016  * @internal
0017  * Commands that can be invoked by a job.
0018  */
0019 enum Command {
0020     CMD_HOST = '0', // 48
0021     CMD_CONNECT = '1', // 49
0022     CMD_DISCONNECT = '2', // 50
0023     CMD_WORKER_STATUS = '3', // 51
0024     CMD_NONE = 'A', // 65
0025     // Unused: 'B', // 66
0026     CMD_GET = 'C', // 67
0027     CMD_PUT = 'D', // 68
0028     CMD_STAT = 'E', // 69
0029     CMD_MIMETYPE = 'F', // 70
0030     CMD_LISTDIR = 'G', // 71
0031     CMD_MKDIR = 'H', // 72
0032     CMD_RENAME = 'I', // 73
0033     CMD_COPY = 'J', // 74
0034     CMD_DEL = 'K', // 75
0035     CMD_CHMOD = 'L', // 76
0036     CMD_SPECIAL = 'M', // 77
0037     CMD_SETMODIFICATIONTIME = 'N', // 78
0038     CMD_REPARSECONFIGURATION = 'O', // 79
0039     CMD_META_DATA = 'P', // 80
0040     CMD_SYMLINK = 'Q', // 81
0041     // Unused: 'R', // 82
0042     CMD_MESSAGEBOXANSWER = 'S', // 83
0043     CMD_RESUMEANSWER = 'T', // 84
0044     CMD_CONFIG = 'U', // 85
0045     // unused 'V', // 86
0046     CMD_SETLINKDEST = 'W', // 87
0047     CMD_OPEN = 'X', // 88
0048     CMD_CHOWN = 'Y', // 89
0049     CMD_READ = 'Z', // 90
0050     CMD_WRITE = 91,
0051     CMD_SEEK = 92,
0052     CMD_CLOSE = 93,
0053     CMD_HOST_INFO = 94,
0054     CMD_FILESYSTEMFREESPACE = 95,
0055     CMD_TRUNCATE = 96,
0056     CMD_SSLERRORANSWER,
0057     // Add new ones here once a release is done, to avoid breaking binary compatibility.
0058     // Note that protocol-specific commands shouldn't be added here, but should use special.
0059 };
0060 
0061 } // namespace
0062 
0063 #endif