1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef _TOOLS_INETDEF_HXX 25 #define _TOOLS_INETDEF_HXX 26 27 //============================================================================ 28 #if defined WNT 29 #define TOOLS_INETDEF_OS "Win32" 30 #elif defined OS2 31 #define TOOLS_INETDEF_OS "OS/2" 32 #elif defined UNX 33 #if defined AIX 34 #define TOOLS_INETDEF_OS "AIX" 35 #elif defined HPUX 36 #define TOOLS_INETDEF_OS "HP/UX" 37 #elif defined SOLARIS && defined SPARC 38 #define TOOLS_INETDEF_OS "Solaris Sparc" 39 #elif defined SOLARIS && defined INTEL 40 #define TOOLS_INETDEF_OS "Solaris x86" 41 #elif defined SCO 42 #define TOOLS_INETDEF_OS "SCO" 43 #elif defined NETBSD && defined X86 44 #define TOOLS_INETDEF_OS "NETBSD x86" 45 #elif defined NETBSD && defined ARM32 46 #define TOOLS_INETDEF_OS "NETBSD ARM32" 47 #elif defined NETBSD && defined SPARC 48 #define TOOLS_INETDEF_OS "NETBSD Sparc" 49 #elif defined LINUX && defined X86 50 #define TOOLS_INETDEF_OS "Linux" 51 #elif defined FREEBSD && defined X86 52 #define TOOLS_INETDEF_OS "FreeBSD/i386" 53 #elif defined FREEBSD && defined X86_64 54 #define TOOLS_INETDEF_OS "FreeBSD/amd64" 55 #elif defined SINIX 56 #define TOOLS_INETDEF_OS "SINIX" 57 #else // AIX, HPUX, SOLARIS, ... 58 #define TOOLS_INETDEF_OS "Unix" 59 #endif // AIX, HPUX, SOLARIS, ... 60 #else // WNT, ... 61 #define TOOLS_INETDEF_OS "unknown OS" 62 #endif // WN, ... 63 64 #define TOOLS_INETDEF_PRODUCT "StarOffice/5.2" 65 #define TOOLS_INETDEF_MOZILLA "Mozilla/3.0" 66 67 #define INET_PRODUCTNAME TOOLS_INETDEF_PRODUCT " (" TOOLS_INETDEF_OS ")" 68 #define INET_DEF_CALLERNAME TOOLS_INETDEF_MOZILLA " (compatible; " \ 69 TOOLS_INETDEF_PRODUCT "; " TOOLS_INETDEF_OS ")" 70 71 //============================================================================ 72 // The following definitions seem obsolete and might get removed in future. 73 74 #define INET_PERS_CERT_HOMEPAGE "http://www.stardivision.de/certs.html" 75 #define INET_PERS_CERT_HOMEPAGE_INT \ 76 "http://www.stardivision.de/certs/certs##.html" 77 // the above definitions are only used in svx/source/options/optinet2.cxx 78 79 #if defined __RSC 80 #define INET_UNDEFINED 0 81 #define INET_NAME_RESOLVE_START 1 82 #define INET_NAME_RESOLVE_ERROR 2 83 #define INET_NAME_RESOLVE_SUCCESS 3 84 #define INET_CONNECT_START 4 85 #define INET_CONNECT_ERROR 5 86 #define INET_CONNECT_SUCCESS 6 87 #define INET_WRITE_START 7 88 #define INET_WRITE_STATUS 8 89 #define INET_WRITE_ERROR 9 90 #define INET_WRITE_SUCCESS 10 91 #define INET_READ_START 11 92 #define INET_READ_STATUS 12 93 #define INET_READ_ERROR 13 94 #define INET_READ_SUCCESS 14 95 #define INET_CLOSING_CONNECTION 15 96 #define INET_CONNECTION_CLOSED 16 97 #define INET_REQUEST_CANCELED 17 98 #define INET_CONNECTION_CANCELED 18 99 #define INET_SESSION_CANCELED 19 100 #define INET_AUTHENTICATION 20 101 #define INET_OFFLINE_ERROR 21 102 #define INET_PROXY_AUTHENTICATION 22 103 #endif // __RSC 104 // the above definitions are only used in sfx2/source/doc/doc.src 105 106 #endif // _TOOLS_INETDEF_HXX 107 108