2014-06-30 08:39:45 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
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 nsMacUtilsImpl_h___
|
|
|
|
#define nsMacUtilsImpl_h___
|
|
|
|
|
|
|
|
#include "nsIMacUtils.h"
|
2010-07-15 19:32:00 -07:00
|
|
|
#include "nsString.h"
|
2012-06-05 16:51:58 -07:00
|
|
|
#include "mozilla/Attributes.h"
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-06-05 16:51:58 -07:00
|
|
|
class nsMacUtilsImpl MOZ_FINAL : public nsIMacUtils
|
2007-03-22 10:30:00 -07:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
NS_DECL_ISUPPORTS
|
|
|
|
NS_DECL_NSIMACUTILS
|
|
|
|
|
2014-05-13 10:41:38 -07:00
|
|
|
nsMacUtilsImpl()
|
|
|
|
{
|
|
|
|
}
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
private:
|
2014-05-13 10:41:38 -07:00
|
|
|
~nsMacUtilsImpl()
|
|
|
|
{
|
|
|
|
}
|
2010-07-15 19:32:00 -07:00
|
|
|
|
2014-05-13 10:41:38 -07:00
|
|
|
nsresult GetArchString(nsAString& aArchString);
|
2010-07-15 19:32:00 -07:00
|
|
|
|
|
|
|
// A string containing a "-" delimited list of architectures
|
|
|
|
// in our binary.
|
|
|
|
nsString mBinaryArchs;
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
// Global singleton service
|
|
|
|
// 697BD3FD-43E5-41CE-AD5E-C339175C0818
|
|
|
|
#define NS_MACUTILSIMPL_CID \
|
|
|
|
{0x697BD3FD, 0x43E5, 0x41CE, {0xAD, 0x5E, 0xC3, 0x39, 0x17, 0x5C, 0x08, 0x18}}
|
|
|
|
#define NS_MACUTILSIMPL_CONTRACTID "@mozilla.org/xpcom/mac-utils;1"
|
|
|
|
|
|
|
|
#endif /* nsMacUtilsImpl_h___ */
|