2000-07-16 14:20:33 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2000-07-16 14:20:33 +00:00
|
|
|
|
|
|
|
#include "nsIDirectoryService.h"
|
2012-06-06 02:08:30 +00:00
|
|
|
#include "nsIFile.h"
|
2012-06-05 23:51:58 +00:00
|
|
|
#include "mozilla/Attributes.h"
|
2000-07-16 14:20:33 +00:00
|
|
|
|
|
|
|
class nsIFile;
|
|
|
|
|
|
|
|
//*****************************************************************************
|
|
|
|
// class nsAppFileLocationProvider
|
|
|
|
//*****************************************************************************
|
|
|
|
|
2012-06-05 23:51:58 +00:00
|
|
|
class nsAppFileLocationProvider MOZ_FINAL : public nsIDirectoryServiceProvider2
|
2000-07-16 14:20:33 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
nsAppFileLocationProvider();
|
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIDIRECTORYSERVICEPROVIDER
|
2001-11-02 15:29:57 +00:00
|
|
|
NS_DECL_NSIDIRECTORYSERVICEPROVIDER2
|
2000-07-16 14:20:33 +00:00
|
|
|
|
2004-01-15 06:14:18 +00:00
|
|
|
private:
|
|
|
|
~nsAppFileLocationProvider() {}
|
2000-07-16 14:20:33 +00:00
|
|
|
|
2004-01-15 06:14:18 +00:00
|
|
|
protected:
|
2012-06-06 02:08:30 +00:00
|
|
|
NS_METHOD CloneMozBinDirectory(nsIFile **aLocalFile);
|
2005-04-27 11:56:40 +00:00
|
|
|
/**
|
|
|
|
* Get the product directory. This is a user-specific directory for storing
|
|
|
|
* application settings (e.g. the Application Data directory on windows
|
|
|
|
* systems).
|
|
|
|
* @param aLocal If true, should try to get a directory that is only stored
|
|
|
|
* locally (ie not transferred with roaming profiles)
|
|
|
|
*/
|
2012-06-06 02:08:30 +00:00
|
|
|
NS_METHOD GetProductDirectory(nsIFile **aLocalFile,
|
2011-09-29 06:19:26 +00:00
|
|
|
bool aLocal = false);
|
2012-06-06 02:08:30 +00:00
|
|
|
NS_METHOD GetDefaultUserProfileRoot(nsIFile **aLocalFile,
|
2011-09-29 06:19:26 +00:00
|
|
|
bool aLocal = false);
|
2001-09-19 07:43:41 +00:00
|
|
|
|
2011-10-14 15:43:35 +00:00
|
|
|
#if defined(MOZ_WIDGET_COCOA)
|
2011-09-29 06:19:26 +00:00
|
|
|
static bool IsOSXLeopard();
|
2011-07-07 19:24:28 +00:00
|
|
|
#endif
|
|
|
|
|
2012-06-06 02:08:30 +00:00
|
|
|
nsCOMPtr<nsIFile> mMozBinDirectory;
|
2000-07-16 14:20:33 +00:00
|
|
|
};
|