home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / include / shr_str.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.3 KB  |  71 lines

  1. /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. /*
  20.  * shr_str.h
  21.  * ---------
  22.  *
  23.  * Error codes that are shared by more than one module of
  24.  * Netscape Navigator. This file is probably a temporary
  25.  * workaround until we can get a more sophisticated sharing
  26.  * mechanism in place.
  27.  *
  28.  * Codes are represented as fixed numbers, not offsets off
  29.  * of a base, to avoid namespace collision.
  30.  * 
  31.  */
  32.  
  33. #ifndef SHR_STR_H
  34. #define SHR_STR_H
  35.  
  36. #define MK_OUT_OF_MEMORY                -207
  37. #define MK_UNABLE_TO_OPEN_FILE          -223
  38. #define MK_DISK_FULL                    -250
  39. #define MK_UNABLE_TO_OPEN_TMP_FILE      -253
  40. #define MK_MIME_NO_RECIPIENTS           -267
  41. #define MK_NNTP_SERVER_NOT_CONFIGURED   -307
  42. #define MK_UNABLE_TO_DELETE_FILE        -327
  43.  
  44. #define MK_MSG_DELIV_MAIL               15412
  45. #define MK_MSG_DELIV_NEWS               15414
  46. #define MK_MSG_SAVE_AS                  15483
  47. #define MK_MSG_NO_HEADERS               15528
  48. #define MK_MSG_MIME_MAC_FILE            15530
  49. #define MK_MSG_CANT_OPEN                15540
  50. #define XP_MSG_UNKNOWN                  15572
  51. #define XP_EDIT_NEW_DOC_NAME            15629
  52.  
  53. #define XP_ALERT_TITLE_STRING           -7956
  54. #define XP_SEC_SHOWCERT                 -7963
  55. #define XP_SEC_SHOWORDER                -7962
  56.  
  57.  
  58. #ifdef XP_WIN
  59.  
  60. /* for Winsock defined error codes */
  61. #include "winsock.h"
  62.  
  63. #define XP_ERRNO_ECONNREFUSED           WSAECONNREFUSED
  64. #define XP_ERRNO_EIO                    WSAECONNREFUSED
  65. #define XP_ERRNO_EISCONN                WSAEISCONN
  66. #define XP_ERRNO_EWOULDBLOCK            EWOULDBLOCK
  67.  
  68. #endif /* XP_WIN */
  69.  
  70. #endif
  71.