Back to index

lightning-sunbird  0.9+nobinonly
nsAppDirectoryServiceDefs.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; 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.org 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  *   Conrad Carlen conrad@ingress.com
00024  *
00025  * Alternatively, the contents of this file may be used under the terms of
00026  * either of the GNU General Public License Version 2 or later (the "GPL"),
00027  * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00028  * in which case the provisions of the GPL or the LGPL are applicable instead
00029  * of those above. If you wish to allow use of your version of this file only
00030  * under the terms of either the GPL or the LGPL, and not to allow others to
00031  * use your version of this file under the terms of the MPL, indicate your
00032  * decision by deleting the provisions above and replace them with the notice
00033  * and other provisions required by the GPL or the LGPL. If you do not delete
00034  * the provisions above, a recipient may use your version of this file under
00035  * the terms of any one of the MPL, the GPL or the LGPL.
00036  *
00037  * ***** END LICENSE BLOCK ***** */
00038  
00039 #ifndef nsAppDirectoryServiceDefs_h___
00040 #define nsAppDirectoryServiceDefs_h___
00041 
00042 //========================================================================================
00043 //
00044 // Defines property names for directories available from standard nsIDirectoryServiceProviders.
00045 // These keys are not guaranteed to exist because the nsIDirectoryServiceProviders which
00046 // provide them are optional.
00047 //
00048 // Keys whose definition ends in "DIR" or "FILE" return a single nsIFile (or subclass).
00049 // Keys whose definition ends in "LIST" return an nsISimpleEnumerator which enumerates a
00050 // list of file objects.
00051 //
00052 // System and XPCOM level properties are defined in nsDirectoryServiceDefs.h.
00053 //
00054 //========================================================================================
00055 
00056 
00057 // --------------------------------------------------------------------------------------
00058 // Files and directories which exist on a per-product basis
00059 // --------------------------------------------------------------------------------------
00060 
00061 #define NS_APP_APPLICATION_REGISTRY_FILE        "AppRegF"
00062 #define NS_APP_APPLICATION_REGISTRY_DIR         "AppRegD"
00063 
00064 #define NS_APP_DEFAULTS_50_DIR                  "DefRt"         // The root dir of all defaults dirs
00065 #define NS_APP_PREF_DEFAULTS_50_DIR             "PrfDef"
00066 #define NS_APP_PROFILE_DEFAULTS_50_DIR          "profDef"       // The profile defaults of the "current"
00067                                                                 // locale. Should be first choice.
00068 #define NS_APP_PROFILE_DEFAULTS_NLOC_50_DIR     "ProfDefNoLoc"  // The profile defaults of the "default"
00069                                                                 // installed locale. Second choice
00070                                                                 // when above is not available.
00071                                                                                                                        
00072 #define NS_APP_USER_PROFILES_ROOT_DIR           "DefProfRt"     // The dir where user profile dirs live.
00073 #define NS_APP_USER_PROFILES_LOCAL_ROOT_DIR     "DefProfLRt"  // The dir where user profile temp dirs live.
00074 
00075 #define NS_APP_RES_DIR                          "ARes"
00076 #define NS_APP_CHROME_DIR                       "AChrom"
00077 #define NS_APP_PLUGINS_DIR                      "APlugns"       // Deprecated - use NS_APP_PLUGINS_DIR_LIST
00078 #define NS_APP_SEARCH_DIR                       "SrchPlugns"
00079 
00080 #define NS_APP_CHROME_DIR_LIST                  "AChromDL"
00081 #define NS_APP_PLUGINS_DIR_LIST                 "APluginsDL"
00082 #define NS_APP_SEARCH_DIR_LIST                  "SrchPluginsDL"
00083 
00084 // --------------------------------------------------------------------------------------
00085 // Files and directories which exist on a per-profile basis
00086 // These locations are typically provided by the profile mgr
00087 // --------------------------------------------------------------------------------------
00088 
00089 // In a shared profile environment, prefixing a profile-relative
00090 // key with NS_SHARED returns a location that is shared by
00091 // other users of the profile. Without this prefix, the consumer
00092 // has exclusive access to this location.
00093  
00094 #define NS_SHARED                               "SHARED"
00095 
00096 #define NS_APP_PREFS_50_DIR                     "PrefD"         // Directory which contains user prefs       
00097 #define NS_APP_PREFS_50_FILE                    "PrefF"
00098 #define NS_APP_PREFS_DEFAULTS_DIR_LIST          "PrefDL"
00099 #define NS_APP_PREFS_OVERRIDE_DIR               "PrefDOverride" // Directory for per-profile defaults
00100         
00101 #define NS_APP_USER_PROFILE_50_DIR              "ProfD"
00102 #define NS_APP_USER_PROFILE_LOCAL_50_DIR        "ProfLD"
00103         
00104 #define NS_APP_USER_CHROME_DIR                  "UChrm"
00105 #define NS_APP_USER_SEARCH_DIR                  "UsrSrchPlugns"
00106          
00107 #define NS_APP_LOCALSTORE_50_FILE               "LclSt"
00108 #define NS_APP_HISTORY_50_FILE                  "UHist"
00109 #define NS_APP_USER_PANELS_50_FILE              "UPnls"
00110 #define NS_APP_USER_MIMETYPES_50_FILE           "UMimTyp"
00111 #define NS_APP_CACHE_PARENT_DIR                 "cachePDir"
00112 
00113 #define NS_APP_BOOKMARKS_50_FILE                "BMarks"
00114 
00115 #define NS_APP_DOWNLOADS_50_FILE                "DLoads"
00116          
00117 #define NS_APP_SEARCH_50_FILE                   "SrchF"
00118          
00119 #define NS_APP_MAIL_50_DIR                      "MailD"
00120 #define NS_APP_IMAP_MAIL_50_DIR                 "IMapMD"
00121 #define NS_APP_NEWS_50_DIR                      "NewsD"
00122 #define NS_APP_MESSENGER_FOLDER_CACHE_50_DIR    "MFCaD"
00123 
00124 #define NS_APP_INSTALL_CLEANUP_DIR              "XPIClnupD"  //location of xpicleanup.dat xpicleanup.exe 
00125 
00126 #define NS_APP_STORAGE_50_FILE                  "UStor" // sqlite database used as mozStorage profile db
00127 #endif