suite/shell/src/nsGNOMEShellService.h
author Philipp Kewisch <mozilla@kewis.ch>
Mon, 26 Feb 2018 13:30:06 +0100
changeset 59352 c7fe8ceb6756fbf210ebb9a62c142660bfc11173
parent 48611 e0b1fb0cdc2930373a2b694b913f33e62db1ff80
permissions -rw-r--r--
Bug 1439275 - Enable cak locale for Thunderbird. r=me MozReview-Commit-ID: AQgCsfQ8PLK

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* 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/. */

#ifndef nsgnomeshellservice_h____
#define nsgnomeshellservice_h____

#include "nsShellService.h"
#include "nsString.h"
#include "mozilla/Attributes.h"
#include "nsSuiteCID.h"

struct ProtocolAssociation;

class nsGNOMEShellService final : public nsIShellService
{
public:
  nsGNOMEShellService() : mCheckedThisSessionClient(false) { }

  NS_DECL_ISUPPORTS
  NS_DECL_NSISHELLSERVICE

  nsresult Init();

private:
  ~nsGNOMEShellService() {}
  bool HandlerMatchesAppName(const char* aHandler);

  nsCString mAppPath;
  bool mAppIsInPath;
  bool mUseLocaleFilenames;
  bool mCheckedThisSessionClient;
};

#endif // nsgnomeshellservice_h____