Back to index

lightning-sunbird  0.9+nobinonly
nsIInternetConfigService.idl
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is Mozilla Communicator client code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 2000
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either of the GNU General Public License Version 2 or later (the "GPL"),
00026  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00027  * in which case the provisions of the GPL or the LGPL are applicable instead
00028  * of those above. If you wish to allow use of your version of this file only
00029  * under the terms of either the GPL or the LGPL, and not to allow others to
00030  * use your version of this file under the terms of the MPL, indicate your
00031  * decision by deleting the provisions above and replace them with the notice
00032  * and other provisions required by the GPL or the LGPL. If you do not delete
00033  * the provisions above, a recipient may use your version of this file under
00034  * the terms of any one of the MPL, the GPL or the LGPL.
00035  *
00036  * ***** END LICENSE BLOCK ***** */
00037 
00038 #include "nsISupports.idl"
00039 
00040 interface nsIMIMEInfo;
00041 interface nsIURL;
00042 
00043 %{C++
00044 
00045 #include <Files.h>
00046 
00047 #define NS_INTERNETCONFIGSERVICE_CONTRACTID \
00048 "@mozilla.org/mac/internet-config-service;1"
00049 
00050 %}
00051 
00052 native FSSpec(FSSpec);
00053 [ptr] native FSSpecPtr(FSSpec);
00054 
00055 [scriptable, uuid(9B8B9D80-5F4F-11D4-9696-0060083A0BCF)]
00056 interface nsIInternetConfigService : nsISupports
00057 {
00058   const unsigned long eICColor_WebBackgroundColour = 1;
00059   const unsigned long eICColor_WebReadColor = 2;
00060   const unsigned long eICColor_WebTextColor = 3;
00061   const unsigned long eICColor_WebUnreadColor = 4;
00062   const unsigned long eICBoolean_WebUnderlineLinks = 11;
00063   const unsigned long eICString_WWWHomePage = 101;
00064   const unsigned long eICString_WebSearchPagePrefs = 102;
00065   const unsigned long eICString_MacSearchHost = 103;
00066   const unsigned long eICString_FTPHost = 121;
00067   const unsigned long eICBoolean_UsePassiveFTP = 122;
00068   const unsigned long eICBoolean_UseFTPProxy = 123;      const unsigned long eICString_FTPProxyUser = 124; 
00069   const unsigned long eICString_FTPProxyAccount = 125;   const unsigned long eICString_FTPProxyHost = 126;
00070   const unsigned long eICString_FTPProxyPassword = 127;
00071   const unsigned long eICBoolean_UseHTTPProxy = 130;     const unsigned long eICString_HTTPProxyHost = 131;
00072   const unsigned long eICString_LDAPSearchbase = 201;    const unsigned long eICString_LDAPServer = 202;
00073   const unsigned long eICString_SMTPHost = 221;
00074   const unsigned long eICString_Email = 222;
00075   const unsigned long eICString_MailAccount = 223;       const unsigned long eICString_MailPassword = 224;
00076   const unsigned long eICText_MailHeaders = 225;         const unsigned long eICText_Signature = 226;
00077   const unsigned long eICBoolean_NewMailDialog = 231;
00078   const unsigned long eICBoolean_NewMailFlashIcon = 232;
00079   const unsigned long eICBoolean_NewMailPlaySound = 233; const unsigned long eICString_NewMailSoundName = 234;
00080   const unsigned long eICString_NNTPHost = 241;
00081   const unsigned long eICString_NewsAuthUsername = 242;  const unsigned long eICString_NewsAuthPassword = 243;
00082   const unsigned long eICText_NewsHeaders = 244;
00083   const unsigned long eICString_InfoMacPreferred = 245;
00084   const unsigned long eICString_Organization = 251;      const unsigned long eICString_RealName = 252;
00085   const unsigned long eICText_SnailMailAddress = 253;
00086   const unsigned long eICString_QuotingString = 254;
00087   const unsigned long eICString_GopherHost = 301;
00088   const unsigned long eICBoolean_UseGopherProxy = 302;   const unsigned long eICString_GopherProxy = 303;
00089   const unsigned long eICBoolean_UseSocks = 321;         const unsigned long eICString_SocksHost = 322;
00090   const unsigned long eICString_TelnetHost = 331;
00091   const unsigned long eICString_IRCHost = 341;
00092   const unsigned long eICString_NTPHost = 351;
00093   const unsigned long eICString_WAISGateway = 381;
00094   const unsigned long eICString_FingerHost = 382;        const unsigned long eICText_Plan = 383;
00095   const unsigned long eICString_WhoisHost = 384;
00096   const unsigned long eICString_PhHost = 385;
00097   const unsigned long eICString_ArchiePreferred = 386;
00098   const unsigned long eICString_UMichPreferred = 391;
00099 
00100   const unsigned long eIICMapFlag_BinaryMask            = 1;  /* file should be transfered in binary as opposed to text mode*/
00101   const unsigned long eIICMapFlag_ResourceForkMask      = 2;  /* the resource fork of the file is significant*/
00102   const unsigned long eIICMapFlag_DataForkMask          = 4;  /* the data fork of the file is significant*/
00103   const unsigned long eIICMapFlag_PostMask              = 8;  /* post process using post fields*/
00104   const unsigned long eIICMapFlag_NotIncomingMask       = 16; /* ignore this mapping for incoming files*/
00105   const unsigned long eIICMapFlag_NotOutgoingMask       = 32; /* ignore this mapping for outgoing files*/
00106 
00107 
00108   void launchURL(in string url);
00109   
00110   boolean hasMappingForMIMEType(in string mimetype);
00111   
00112   boolean hasProtocolHandler(in string protocol);
00113   
00114   // pass in a mime type or a file extension.....
00115   void fillInMIMEInfo(in string mimetype, in string aFileExtension, out nsIMIMEInfo mimeinfo);
00116   
00117   void getMIMEInfoFromExtension(in string aFileExt, out nsIMIMEInfo mimeinfo);
00118   
00119   void getMIMEInfoFromTypeCreator(in PRUint32 aType, in PRUint32 aCreator, in string aFileExt, out nsIMIMEInfo mimeInfo);
00120   
00121   //Return a File Mapping for the specified file. If no mapping found, return -1.
00122   [noscript] long getFileMappingFlags(in FSSpecPtr fsspec, in boolean lookupByExtensionFirst);
00123   
00124   [noscript] void getDownloadFolder(out FSSpec fsspec);
00125   
00126   ACString getString(in unsigned long keyenum);
00127 
00128   unsigned long getColor(in unsigned long keyenum);
00129 
00130   boolean getBoolean(in unsigned long keyenum);
00131 };