2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifndef nsgnomeshellservice_h____
|
|
|
|
#define nsgnomeshellservice_h____
|
|
|
|
|
|
|
|
#include "nsIShellService.h"
|
|
|
|
#include "nsStringAPI.h"
|
2012-07-23 14:24:03 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-07-23 14:24:03 -07:00
|
|
|
class nsGNOMEShellService MOZ_FINAL : public nsIShellService
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
public:
|
2011-10-17 07:59:28 -07:00
|
|
|
nsGNOMEShellService() : mCheckedThisSession(false), mAppIsInPath(false) { }
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSISHELLSERVICE
|
|
|
|
|
2014-06-02 05:08:24 -07:00
|
|
|
nsresult Init();
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
private:
|
|
|
|
~nsGNOMEShellService() {}
|
|
|
|
|
2014-06-02 05:08:21 -07:00
|
|
|
bool KeyMatchesAppName(const char *aKeyValue) const;
|
|
|
|
bool CheckHandlerMatchesAppName(const nsACString& handler) const;
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2014-06-02 05:08:21 -07:00
|
|
|
bool GetAppPathFromLauncher();
|
2011-09-28 23:19:26 -07:00
|
|
|
bool mCheckedThisSession;
|
|
|
|
bool mUseLocaleFilenames;
|
2007-03-22 10:30:00 -07:00
|
|
|
nsCString mAppPath;
|
2011-09-28 23:19:26 -07:00
|
|
|
bool mAppIsInPath;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // nsgnomeshellservice_h____
|