File indexing completed on 2024-10-06 09:39:13
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_SLAVE_STATUS = '3', // 51 0024 CMD_SLAVE_CONNECT = '4', // 52 0025 CMD_SLAVE_HOLD = '5', // 53 0026 CMD_NONE = 'A', // 65 0027 CMD_TESTDIR = 'B', // 66 TODO KF6 REMOVE 0028 CMD_GET = 'C', // 67 0029 CMD_PUT = 'D', // 68 0030 CMD_STAT = 'E', // 69 0031 CMD_MIMETYPE = 'F', // 70 0032 CMD_LISTDIR = 'G', // 71 0033 CMD_MKDIR = 'H', // 72 0034 CMD_RENAME = 'I', // 73 0035 CMD_COPY = 'J', // 74 0036 CMD_DEL = 'K', // 75 0037 CMD_CHMOD = 'L', // 76 0038 CMD_SPECIAL = 'M', // 77 0039 CMD_SETMODIFICATIONTIME = 'N', // 78 0040 CMD_REPARSECONFIGURATION = 'O', // 79 0041 CMD_META_DATA = 'P', // 80 0042 CMD_SYMLINK = 'Q', // 81 0043 CMD_SUBURL = 'R', // 82 Inform the worker about the URL it is streaming on. TODO KF6 REMOVE 0044 CMD_MESSAGEBOXANSWER = 'S', // 83 0045 CMD_RESUMEANSWER = 'T', // 84 0046 CMD_CONFIG = 'U', // 85 0047 CMD_MULTI_GET = 'V', // 86 0048 CMD_SETLINKDEST = 'W', // 87 0049 CMD_OPEN = 'X', // 88 0050 CMD_CHOWN = 'Y', // 89 0051 CMD_READ = 'Z', // 90 0052 CMD_WRITE = 91, 0053 CMD_SEEK = 92, 0054 CMD_CLOSE = 93, 0055 CMD_HOST_INFO = 94, 0056 CMD_FILESYSTEMFREESPACE = 95, 0057 CMD_TRUNCATE = 96, 0058 // Add new ones here once a release is done, to avoid breaking binary compatibility. 0059 // Note that protocol-specific commands shouldn't be added here, but should use special. 0060 }; 0061 0062 } // namespace 0063 0064 #endif