• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdeutils
  • Sitemap
  • Contact Us
 

ark

bkError.h

Go to the documentation of this file.
00001 /******************************* LICENSE **************************************
00002 * Any code in this file may be redistributed or modified under the terms of
00003 * the GNU General Public License as published by the Free Software 
00004 * Foundation; version 2 of the license.
00005 ****************************** END LICENSE ***********************************/
00006 
00007 /******************************************************************************
00008 * Author:
00009 * Andrew Smith, http://littlesvr.ca/misc/contactandrew.php
00010 *
00011 * Copyright 2005-2007 Andrew Smith <andrew-smith@mail.ru>
00012 *
00013 * Contributors:
00014 * 
00015 ******************************************************************************/
00016 
00017 #ifndef BKERROR_H
00018 #define BKERROR_H
00019 /******************************************************************************
00020 * errnum.h
00021 * this file contains #defined ints for return codes (errors and warnings)
00022 * */
00023 
00024 /* error codes in between these numbers */
00025 #define BKERROR_MAX_ID                           -1001
00026 #define BKERROR_MIN_ID                           -10000
00027 
00028 /* warning codes in between these numbers */
00029 #define BKWARNING_MAX_ID                         -10001
00030 #define BKWARNING_MIN_ID                         -20000
00031 
00032 /* #define IS_ERROR(number)   ( (((number) >= BKERROR_MIN_ID) && ((number) <= BKERROR_MAX_ID)) ? true : false )
00033 * #define IS_WARNING(number) ( (((number) >= BKWARNING_MIN_ID) && ((number) <= BKWARNING_MAX_ID)) ? true : false )*/
00034 
00035 #define BKERROR_READ_GENERIC                     -1001
00036 #define BKERROR_READ_GENERIC_TEXT                "Failed to read expected number of bytes"
00037 #define BKERROR_DIR_NOT_FOUND_ON_IMAGE           -1002
00038 #define BKERROR_DIR_NOT_FOUND_ON_IMAGE_TEXT      "Directory not found on image"
00039 #define BKERROR_MAX_NAME_LENGTH_EXCEEDED         -1003
00040 #define BKERROR_MAX_NAME_LENGTH_EXCEEDED_TEXT    "Maximum file/directory name length exceeded"
00041 #define BKERROR_STAT_FAILED                      -1004
00042 #define BKERROR_STAT_FAILED_TEXT                 "Failed to stat file/directory"
00043 #define BKERROR_TARGET_NOT_A_DIR                 -1005
00044 #define BKERROR_TARGET_NOT_A_DIR_TEXT            "Target not a directory (UI problem)"
00045 #define BKERROR_OUT_OF_MEMORY                    -1006
00046 #define BKERROR_OUT_OF_MEMORY_TEXT               "Out of memory"
00047 #define BKERROR_OPENDIR_FAILED                   -1007
00048 #define BKERROR_OPENDIR_FAILED_TEXT              "Failed to open directory for listing"
00049 #define BKERROR_EXOTIC                           -1008
00050 #define BKERROR_EXOTIC_TEXT                      "Some really exotic problem happened"                      
00051 #define BKERROR_FIXME                            -1009
00052 #define BKERROR_FIXME_TEXT                       "Incomplete/broken something that the author needs to fix, please report bug"
00053 #define BKERROR_FILE_NOT_FOUND_ON_IMAGE          -1010
00054 #define BKERROR_FILE_NOT_FOUND_ON_IMAGE_TEXT     "File not found on image"
00055 #define BKERROR_MKDIR_FAILED                     -1011
00056 #define BKERROR_MKDIR_FAILED_TEXT                "Failed to create directory on the filesystem"
00057 #define BKERROR_OPEN_WRITE_FAILED                -1012
00058 #define BKERROR_OPEN_WRITE_FAILED_TEXT           "Failed to open file on the filesystem for writing"
00059 #define BKERROR_WRITE_GENERIC                    -1013
00060 #define BKERROR_WRITE_GENERIC_TEXT               "Failed to write expected number of bytes (disk full?)"
00061 #define BKERROR_MANGLE_TOO_MANY_COL              -1014
00062 #define BKERROR_MANGLE_TOO_MANY_COL_TEXT         "Too many collisons while mangling filenames (too many files/directories with a similar name)"
00063 #define BKERROR_MISFORMED_PATH                   -1015
00064 #define BKERROR_MISFORMED_PATH_TEXT              "Misformed path"
00065 #define BKERROR_INVALID_UCS2                     -1016
00066 #define BKERROR_INVALID_UCS2_TEXT                "Invalid UCS-2 string"
00067 #define BKERROR_UNKNOWN_FILENAME_TYPE            -1017
00068 #define BKERROR_UNKNOWN_FILENAME_TYPE_TEXT       "Unknown filename type"
00069 #define BKERROR_RR_FILENAME_MISSING              -1018
00070 #define BKERROR_RR_FILENAME_MISSING_TEXT         "Rockridge filename missing when expected on image"
00071 #define BKERROR_VD_NOT_PRIMARY                   -1019
00072 #define BKERROR_VD_NOT_PRIMARY_TEXT              "First volume descriptor type not primary like ISO9660 requires"
00073 #define BKERROR_SANITY                           -1020
00074 #define BKERROR_SANITY_TEXT                      "Internal library failure (sanity check), please report bug"
00075 #define BKERROR_OPEN_READ_FAILED                 -1021
00076 #define BKERROR_OPEN_READ_FAILED_TEXT            "Failed to open file on the filesystem for reading"
00077 #define BKERROR_DIRNAME_NEED_TRAILING_SLASH      -1022
00078 #define BKERROR_DIRNAME_NEED_TRAILING_SLASH_TEXT "String specifying directory name must end with '/'"
00079 #define BKERROR_EXTRACT_ROOT                     -1023
00080 #define BKERROR_EXTRACT_ROOT_TEXT                "Extracting root of iso not allowed"
00081 #define BKERROR_DELETE_ROOT                      -1024
00082 #define BKERROR_DELETE_ROOT_TEXT                 "Deleting root of iso not allowed"
00083 #define BKERROR_DUPLICATE_ADD                    -1025
00084 #define BKERROR_DUPLICATE_ADD_TEXT               "Cannot add item because another item with the same name already exists in this directory"
00085 #define BKERROR_DUPLICATE_EXTRACT                -1026
00086 #define BKERROR_DUPLICATE_EXTRACT_TEXT           "Cannot extract item because another item with the same name already exists in this directory"
00087 #define BKERROR_NO_SPECIAL_FILES                 -1027
00088 #define BKERROR_NO_SPECIAL_FILES_TEXT            "Special files (device files and such) are not supported"
00089 #define BKERROR_NO_POSIX_PRESENT                 -1028
00090 #define BKERROR_NO_POSIX_PRESENT_TEXT            "No posix extensions found"
00091 #define BKERROR_EXTRACT_ABSENT_BOOT_RECORD       -1029
00092 #define BKERROR_EXTRACT_ABSENT_BOOT_RECORD_TEXT  "Cannot extract boot record because there is none on the image"
00093 #define BKERROR_EXTRACT_UNKNOWN_BOOT_MEDIA       -1030
00094 #define BKERROR_EXTRACT_UNKNOWN_BOOT_MEDIA_TEXT  "Unable to extract boot record of unknown media type"
00095 #define BKERROR_ADD_UNKNOWN_BOOT_MEDIA           -1031
00096 #define BKERROR_ADD_UNKNOWN_BOOT_MEDIA_TEXT      "Unable to add boot record with unknown media type"
00097 #define BKERROR_ADD_BOOT_RECORD_WRONG_SIZE       -1032
00098 #define BKERROR_ADD_BOOT_RECORD_WRONG_SIZE_TEXT  "Size of boot record on the filesystem does not match the size requested via the boot record type parameter"
00099 #define BKERROR_WRITE_BOOT_FILE_4                -1033
00100 #define BKERROR_WRITE_BOOT_FILE_4_TEXT           "Size of no emulation boot record visible on image must be divisible by 4 so i can do a checksum (invalid boot file?)"
00101 #define BKERROR_DUPLICATE_CREATE_DIR             -1034
00102 #define BKERROR_DUPLICATE_CREATE_DIR_TEXT        "Cannot create directory because another file or directory with the same name exists"
00103 #define BKERROR_NAME_INVALID_CHAR                -1035
00104 #define BKERROR_NAME_INVALID_CHAR_TEXT           "Name contains invalid character(s)"
00105 #define BKERROR_BLANK_NAME                       -1036
00106 #define BKERROR_BLANK_NAME_TEXT                  "Name cannot be blank"
00107 #define BKERROR_ADD_FILE_TOO_BIG                 -1037
00108 #define BKERROR_ADD_FILE_TOO_BIG_TEXT            "Cannot add file larger than 4294967295 bytes because the ISO filesystem does not support such large files"
00109 #define BKERROR_SAVE_OVERWRITE                   -1038
00110 #define BKERROR_SAVE_OVERWRITE_TEXT              "Cannot overwrite original image when saving"
00111 #define BKERROR_OPER_CANCELED_BY_USER            -1039
00112 #define BKERROR_OPER_CANCELED_BY_USER_TEXT       "You have canceled the operation"
00113 #define BKERROR_NOT_DIR_IN_PATH                  -1040
00114 #define BKERROR_NOT_DIR_IN_PATH_TEXT             "One of the names in the path is not a directory"
00115 #define BKERROR_WRONG_EXTRACT_FILE               -1041
00116 #define BKERROR_WRONG_EXTRACT_FILE_TEXT          "Tried to extract something that's not a file using the file extracting function"
00117 #define BKERROR_NOT_REG_FILE_FOR_BR              -1042
00118 #define BKERROR_NOT_REG_FILE_FOR_BR_TEXT         "Can only use a regular file as a boot record"
00119 #define BKERROR_WRITE_CACHE_OVERFLOWED           -1043
00120 #define BKERROR_WRITE_CACHE_OVERFLOWED_TEXT      "Write cache overflowed, please report bug"
00121 #define BKERROR_CREATE_SYMLINK_FAILED            -1044
00122 #define BKERROR_CREATE_SYMLINK_FAILED_TEXT       "Failed to create symbolic link"
00123 #define BKERROR_SYMLINK_TARGET_TOO_LONG          -1045
00124 #define BKERROR_SYMLINK_TARGET_TOO_LONG_TEXT     "Too many characters in target of a symbolic link"
00125 #define BKERROR_HARD_LINK_CALL_PARAMS            -1046
00126 #define BKERROR_HARD_LINK_CALL_PARAMS_TEXT       "Call to a hard link function with both a 0 offset and a NULL filename not allowed"
00127 #define BKERROR_NAME_INVALID                     -1047
00128 #define BKERROR_NAME_INVALID_TEXT                "Invalid file/directory name"
00129 #define BKERROR_RENAME_ROOT                      -1048
00130 #define BKERROR_RENAME_ROOT_TEXT                 "Cannot rename the root directory"
00131 #define BKERROR_ITEM_NOT_FOUND_ON_IMAGE          -1049
00132 #define BKERROR_ITEM_NOT_FOUND_ON_IMAGE_TEXT     "Item not found on image"
00133 #define BKERROR_DUPLICATE_RENAME                 -1050
00134 #define BKERROR_DUPLICATE_RENAME_TEXT            "Cannot rename item because another file or directory with the same name exists"
00135 #define BKERROR_GET_PERM_BAD_PARAM               -1051
00136 #define BKERROR_GET_PERM_BAD_PARAM_TEXT          "bk_get_permissions() called with NULL mode_t*"
00137 
00138 #define BKWARNING_OPER_PARTLY_FAILED             -10001
00139 #define BKWARNING_OPER_PARTLY_FAILED_TEXT        "Operation was only partially successful or perhaps completely unsuccessful"
00140 
00141 /* do not make up #defines with numbers lower then this */
00142 #define BKERROR_END                              -1000000
00143 #define BKERROR_END_TEXT                         "Double oops, unusable error number used"
00144 #endif

ark

Skip menu "ark"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members

kdeutils

Skip menu "kdeutils"
  • ark
  • kcalc
  • kcharselect
  • kdessh
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • okteta
  • printer-applet
  • superkaramba
  • sweeper
Generated for kdeutils by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal