michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsgnomeshellservice_h____ michael@0: #define nsgnomeshellservice_h____ michael@0: michael@0: #include "nsIShellService.h" michael@0: #include "nsStringAPI.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: class nsGNOMEShellService MOZ_FINAL : public nsIShellService michael@0: { michael@0: public: michael@0: nsGNOMEShellService() : mCheckedThisSession(false), mAppIsInPath(false) { } michael@0: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSISHELLSERVICE michael@0: michael@0: nsresult Init() NS_HIDDEN; michael@0: michael@0: private: michael@0: ~nsGNOMEShellService() {} michael@0: michael@0: NS_HIDDEN_(bool) KeyMatchesAppName(const char *aKeyValue) const; michael@0: NS_HIDDEN_(bool) CheckHandlerMatchesAppName(const nsACString& handler) const; michael@0: michael@0: NS_HIDDEN_(bool) GetAppPathFromLauncher(); michael@0: bool mCheckedThisSession; michael@0: bool mUseLocaleFilenames; michael@0: nsCString mAppPath; michael@0: bool mAppIsInPath; michael@0: }; michael@0: michael@0: #endif // nsgnomeshellservice_h____