Revision 6c16478e4f64e3397f8e1f32b7953c965189cd7d authored by Matthew Noorenberghe on 06 December 2014, 00:38:06 UTC, committed by Matthew Noorenberghe on 06 December 2014, 00:38:06 UTC
--HG--
extra : rebase_source : b1cd92e0fa2fa2b27dc03b3524b172f442cdf50e
extra : histedit_source : d20a4a39ba5a8bb0d62263d00ec1ff982fe1d2b4
1 parent 52f2889
Raw File
nsQAppInstance.h
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set ts=8 et sw=2 tw=80: */
/* 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 nsQAppInstance_h
#define nsQAppInstance_h

// declared in nsAppRunner.cpp
extern int    gArgc;
extern char **gArgv;

class QGuiApplication;
class nsQAppInstance
{
public:
  static void AddRef(int& aArgc = gArgc,
                     char** aArgv = gArgv,
                     bool aDefaultProcess = false);
  static void Release(void);

private:
  static QGuiApplication *sQAppInstance;
  static int sQAppRefCount;
};

#endif /* nsQAppInstance_h */
back to top