First checkin - Not yet part of build.
git-svn-id: svn://10.0.0.236/trunk@74303 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
26
mozilla/modules/appfilelocprovider/public/nsAppFileLocProviderCID.h
Executable file
26
mozilla/modules/appfilelocprovider/public/nsAppFileLocProviderCID.h
Executable file
@@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
#ifndef __nsAppFileLocProviderCID_h__
|
||||
|
||||
#define __nsAppFileLocProviderCID_h__
|
||||
|
||||
|
||||
|
||||
#include "nsIDirectoryService.h"
|
||||
|
||||
|
||||
|
||||
// {2f977d40-5485-11d4-87e2-0010a4e75ef2} -
|
||||
|
||||
#define NS_APPFILELOCATIONPROVIDER_CID \
|
||||
|
||||
{ 0x2f977d40, 0x5485, 0x11d4, { 0x87, 0xe2, 0x00, 0x10, 0xa4, 0xe7, 0x5e, 0xf2 } }
|
||||
|
||||
#define NS_APPFILELOCATIONPROVIDER_PROGID \
|
||||
|
||||
"component://netscape/nsAppFileLocationProvider"
|
||||
|
||||
|
||||
|
||||
#endif /* __nsAppFileLocProviderCID_h__ */
|
||||
|
||||
128
mozilla/modules/appfilelocprovider/public/nsAppFileLocationProvider.h
Executable file
128
mozilla/modules/appfilelocprovider/public/nsAppFileLocationProvider.h
Executable file
@@ -0,0 +1,128 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
|
||||
/*
|
||||
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
|
||||
*
|
||||
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
|
||||
* implied. See the License for the specific language governing
|
||||
|
||||
* rights and limitations under the License.
|
||||
|
||||
*
|
||||
|
||||
* The Original Code is Mozilla Communicator client code,
|
||||
|
||||
* released March 31, 1998.
|
||||
|
||||
*
|
||||
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
|
||||
* Corporation. Portions created by Netscape are
|
||||
|
||||
* Copyright (C) 2000 Netscape Communications Corporation. All
|
||||
|
||||
* Rights Reserved.
|
||||
|
||||
*
|
||||
|
||||
* Contributor(s):
|
||||
|
||||
* Conrad Carlen <conrad@ingress.com>
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "nsIDirectoryService.h"
|
||||
|
||||
#include "nsILocalFile.h"
|
||||
|
||||
|
||||
|
||||
class nsIAtom;
|
||||
|
||||
class nsIFile;
|
||||
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
|
||||
// class nsAppFileLocationProvider
|
||||
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
|
||||
class nsAppFileLocationProvider : public nsIDirectoryServiceProvider
|
||||
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
nsAppFileLocationProvider();
|
||||
|
||||
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
NS_DECL_NSIDIRECTORYSERVICEPROVIDER
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
virtual ~nsAppFileLocationProvider();
|
||||
|
||||
|
||||
|
||||
NS_METHOD CloneMozBinDirectory(nsILocalFile **aLocalFile);
|
||||
|
||||
|
||||
|
||||
static PRInt32 sInstanceCount;
|
||||
|
||||
|
||||
|
||||
static nsIAtom* sApp_PrefDefaultsFolder50;
|
||||
|
||||
static nsIAtom* sApp_ProfileDefaultsFolder50;
|
||||
|
||||
static nsIAtom* sApp_ProfileDefaultsNoLocFolder50;
|
||||
|
||||
|
||||
|
||||
static nsIAtom* sApp_DefaultUserProfileRoot50;
|
||||
|
||||
|
||||
|
||||
static nsIAtom* sApp_ResDirectory;
|
||||
|
||||
static nsIAtom* sApp_DefaultsFolder50;
|
||||
|
||||
static nsIAtom* sApp_ChromeDirectory;
|
||||
|
||||
static nsIAtom* sApp_PluginsDirectory;
|
||||
|
||||
|
||||
|
||||
static nsIAtom* sApp_SearchDirectory50;
|
||||
|
||||
|
||||
|
||||
nsCOMPtr<nsILocalFile> mMozBinDirectory;
|
||||
|
||||
};
|
||||
|
||||
94
mozilla/modules/appfilelocprovider/src/nsAppFileLocProviderModule.cpp
Executable file
94
mozilla/modules/appfilelocprovider/src/nsAppFileLocProviderModule.cpp
Executable file
@@ -0,0 +1,94 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
|
||||
/*
|
||||
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
|
||||
*
|
||||
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
|
||||
* implied. See the License for the specific language governing
|
||||
|
||||
* rights and limitations under the License.
|
||||
|
||||
*
|
||||
|
||||
* The Original Code is Mozilla Communicator client code,
|
||||
|
||||
* released March 31, 1998.
|
||||
|
||||
*
|
||||
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
|
||||
* Corporation. Portions created by Netscape are
|
||||
|
||||
* Copyright (C) 2000 Netscape Communications Corporation. All
|
||||
|
||||
* Rights Reserved.
|
||||
|
||||
*
|
||||
|
||||
* Contributor(s):
|
||||
|
||||
* Conrad Carlen <conrad@ingress.com>
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "nsIModule.h"
|
||||
|
||||
#include "nsIGenericFactory.h"
|
||||
|
||||
|
||||
|
||||
#include "nsAppFileLocProviderCID.h"
|
||||
|
||||
#include "nsAppFileLocationProvider.h"
|
||||
|
||||
|
||||
|
||||
// Factory Constructors
|
||||
|
||||
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAppFileLocationProvider)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Component Table
|
||||
|
||||
|
||||
|
||||
static nsModuleComponentInfo components[] =
|
||||
|
||||
{
|
||||
|
||||
{ "AppFileLocationProvider Component", NS_APPFILELOCATIONPROVIDER_CID,
|
||||
|
||||
NS_APPFILELOCATIONPROVIDER_PROGID, nsAppFileLocationProviderConstructor }
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// NSGetModule implementation.
|
||||
|
||||
|
||||
|
||||
NS_IMPL_NSGETMODULE("AppFileLocationProvider Module", components)
|
||||
|
||||
1288
mozilla/modules/appfilelocprovider/src/nsAppFileLocationProvider.cpp
Executable file
1288
mozilla/modules/appfilelocprovider/src/nsAppFileLocationProvider.cpp
Executable file
File diff suppressed because it is too large
Load Diff
1288
mozilla/xpcom/io/nsAppFileLocationProvider.cpp
Executable file
1288
mozilla/xpcom/io/nsAppFileLocationProvider.cpp
Executable file
File diff suppressed because it is too large
Load Diff
128
mozilla/xpcom/io/nsAppFileLocationProvider.h
Executable file
128
mozilla/xpcom/io/nsAppFileLocationProvider.h
Executable file
@@ -0,0 +1,128 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
|
||||
/*
|
||||
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
|
||||
*
|
||||
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
|
||||
* implied. See the License for the specific language governing
|
||||
|
||||
* rights and limitations under the License.
|
||||
|
||||
*
|
||||
|
||||
* The Original Code is Mozilla Communicator client code,
|
||||
|
||||
* released March 31, 1998.
|
||||
|
||||
*
|
||||
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
|
||||
* Corporation. Portions created by Netscape are
|
||||
|
||||
* Copyright (C) 2000 Netscape Communications Corporation. All
|
||||
|
||||
* Rights Reserved.
|
||||
|
||||
*
|
||||
|
||||
* Contributor(s):
|
||||
|
||||
* Conrad Carlen <conrad@ingress.com>
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "nsIDirectoryService.h"
|
||||
|
||||
#include "nsILocalFile.h"
|
||||
|
||||
|
||||
|
||||
class nsIAtom;
|
||||
|
||||
class nsIFile;
|
||||
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
|
||||
// class nsAppFileLocationProvider
|
||||
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
|
||||
class nsAppFileLocationProvider : public nsIDirectoryServiceProvider
|
||||
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
nsAppFileLocationProvider();
|
||||
|
||||
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
NS_DECL_NSIDIRECTORYSERVICEPROVIDER
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
virtual ~nsAppFileLocationProvider();
|
||||
|
||||
|
||||
|
||||
NS_METHOD CloneMozBinDirectory(nsILocalFile **aLocalFile);
|
||||
|
||||
|
||||
|
||||
static PRInt32 sInstanceCount;
|
||||
|
||||
|
||||
|
||||
static nsIAtom* sApp_PrefDefaultsFolder50;
|
||||
|
||||
static nsIAtom* sApp_ProfileDefaultsFolder50;
|
||||
|
||||
static nsIAtom* sApp_ProfileDefaultsNoLocFolder50;
|
||||
|
||||
|
||||
|
||||
static nsIAtom* sApp_DefaultUserProfileRoot50;
|
||||
|
||||
|
||||
|
||||
static nsIAtom* sApp_ResDirectory;
|
||||
|
||||
static nsIAtom* sApp_DefaultsFolder50;
|
||||
|
||||
static nsIAtom* sApp_ChromeDirectory;
|
||||
|
||||
static nsIAtom* sApp_PluginsDirectory;
|
||||
|
||||
|
||||
|
||||
static nsIAtom* sApp_SearchDirectory50;
|
||||
|
||||
|
||||
|
||||
nsCOMPtr<nsILocalFile> mMozBinDirectory;
|
||||
|
||||
};
|
||||
|
||||
26
mozilla/xpfe/appfilelocprovider/public/nsAppFileLocProviderCID.h
Executable file
26
mozilla/xpfe/appfilelocprovider/public/nsAppFileLocProviderCID.h
Executable file
@@ -0,0 +1,26 @@
|
||||
|
||||
|
||||
#ifndef __nsAppFileLocProviderCID_h__
|
||||
|
||||
#define __nsAppFileLocProviderCID_h__
|
||||
|
||||
|
||||
|
||||
#include "nsIDirectoryService.h"
|
||||
|
||||
|
||||
|
||||
// {2f977d40-5485-11d4-87e2-0010a4e75ef2} -
|
||||
|
||||
#define NS_APPFILELOCATIONPROVIDER_CID \
|
||||
|
||||
{ 0x2f977d40, 0x5485, 0x11d4, { 0x87, 0xe2, 0x00, 0x10, 0xa4, 0xe7, 0x5e, 0xf2 } }
|
||||
|
||||
#define NS_APPFILELOCATIONPROVIDER_PROGID \
|
||||
|
||||
"component://netscape/nsAppFileLocationProvider"
|
||||
|
||||
|
||||
|
||||
#endif /* __nsAppFileLocProviderCID_h__ */
|
||||
|
||||
128
mozilla/xpfe/appfilelocprovider/public/nsAppFileLocationProvider.h
Executable file
128
mozilla/xpfe/appfilelocprovider/public/nsAppFileLocationProvider.h
Executable file
@@ -0,0 +1,128 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
|
||||
/*
|
||||
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
|
||||
*
|
||||
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
|
||||
* implied. See the License for the specific language governing
|
||||
|
||||
* rights and limitations under the License.
|
||||
|
||||
*
|
||||
|
||||
* The Original Code is Mozilla Communicator client code,
|
||||
|
||||
* released March 31, 1998.
|
||||
|
||||
*
|
||||
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
|
||||
* Corporation. Portions created by Netscape are
|
||||
|
||||
* Copyright (C) 2000 Netscape Communications Corporation. All
|
||||
|
||||
* Rights Reserved.
|
||||
|
||||
*
|
||||
|
||||
* Contributor(s):
|
||||
|
||||
* Conrad Carlen <conrad@ingress.com>
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "nsIDirectoryService.h"
|
||||
|
||||
#include "nsILocalFile.h"
|
||||
|
||||
|
||||
|
||||
class nsIAtom;
|
||||
|
||||
class nsIFile;
|
||||
|
||||
|
||||
|
||||
//*****************************************************************************
|
||||
|
||||
// class nsAppFileLocationProvider
|
||||
|
||||
//*****************************************************************************
|
||||
|
||||
|
||||
|
||||
class nsAppFileLocationProvider : public nsIDirectoryServiceProvider
|
||||
|
||||
{
|
||||
|
||||
public:
|
||||
|
||||
nsAppFileLocationProvider();
|
||||
|
||||
|
||||
|
||||
NS_DECL_ISUPPORTS
|
||||
|
||||
NS_DECL_NSIDIRECTORYSERVICEPROVIDER
|
||||
|
||||
|
||||
|
||||
protected:
|
||||
|
||||
virtual ~nsAppFileLocationProvider();
|
||||
|
||||
|
||||
|
||||
NS_METHOD CloneMozBinDirectory(nsILocalFile **aLocalFile);
|
||||
|
||||
|
||||
|
||||
static PRInt32 sInstanceCount;
|
||||
|
||||
|
||||
|
||||
static nsIAtom* sApp_PrefDefaultsFolder50;
|
||||
|
||||
static nsIAtom* sApp_ProfileDefaultsFolder50;
|
||||
|
||||
static nsIAtom* sApp_ProfileDefaultsNoLocFolder50;
|
||||
|
||||
|
||||
|
||||
static nsIAtom* sApp_DefaultUserProfileRoot50;
|
||||
|
||||
|
||||
|
||||
static nsIAtom* sApp_ResDirectory;
|
||||
|
||||
static nsIAtom* sApp_DefaultsFolder50;
|
||||
|
||||
static nsIAtom* sApp_ChromeDirectory;
|
||||
|
||||
static nsIAtom* sApp_PluginsDirectory;
|
||||
|
||||
|
||||
|
||||
static nsIAtom* sApp_SearchDirectory50;
|
||||
|
||||
|
||||
|
||||
nsCOMPtr<nsILocalFile> mMozBinDirectory;
|
||||
|
||||
};
|
||||
|
||||
94
mozilla/xpfe/appfilelocprovider/src/nsAppFileLocProviderModule.cpp
Executable file
94
mozilla/xpfe/appfilelocprovider/src/nsAppFileLocProviderModule.cpp
Executable file
@@ -0,0 +1,94 @@
|
||||
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
||||
|
||||
/*
|
||||
|
||||
* The contents of this file are subject to the Netscape Public
|
||||
|
||||
* License Version 1.1 (the "License"); you may not use this file
|
||||
|
||||
* except in compliance with the License. You may obtain a copy of
|
||||
|
||||
* the License at http://www.mozilla.org/NPL/
|
||||
|
||||
*
|
||||
|
||||
* Software distributed under the License is distributed on an "AS
|
||||
|
||||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
|
||||
|
||||
* implied. See the License for the specific language governing
|
||||
|
||||
* rights and limitations under the License.
|
||||
|
||||
*
|
||||
|
||||
* The Original Code is Mozilla Communicator client code,
|
||||
|
||||
* released March 31, 1998.
|
||||
|
||||
*
|
||||
|
||||
* The Initial Developer of the Original Code is Netscape Communications
|
||||
|
||||
* Corporation. Portions created by Netscape are
|
||||
|
||||
* Copyright (C) 2000 Netscape Communications Corporation. All
|
||||
|
||||
* Rights Reserved.
|
||||
|
||||
*
|
||||
|
||||
* Contributor(s):
|
||||
|
||||
* Conrad Carlen <conrad@ingress.com>
|
||||
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "nsIModule.h"
|
||||
|
||||
#include "nsIGenericFactory.h"
|
||||
|
||||
|
||||
|
||||
#include "nsAppFileLocProviderCID.h"
|
||||
|
||||
#include "nsAppFileLocationProvider.h"
|
||||
|
||||
|
||||
|
||||
// Factory Constructors
|
||||
|
||||
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(nsAppFileLocationProvider)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Component Table
|
||||
|
||||
|
||||
|
||||
static nsModuleComponentInfo components[] =
|
||||
|
||||
{
|
||||
|
||||
{ "AppFileLocationProvider Component", NS_APPFILELOCATIONPROVIDER_CID,
|
||||
|
||||
NS_APPFILELOCATIONPROVIDER_PROGID, nsAppFileLocationProviderConstructor }
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// NSGetModule implementation.
|
||||
|
||||
|
||||
|
||||
NS_IMPL_NSGETMODULE("AppFileLocationProvider Module", components)
|
||||
|
||||
1288
mozilla/xpfe/appfilelocprovider/src/nsAppFileLocationProvider.cpp
Executable file
1288
mozilla/xpfe/appfilelocprovider/src/nsAppFileLocationProvider.cpp
Executable file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user