2010-03-30 15:34:37 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04: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/. */
|
2010-03-30 15:34:37 +04:00
|
|
|
|
|
|
|
#ifndef nsQAppInstance_h
|
|
|
|
#define nsQAppInstance_h
|
|
|
|
|
2011-10-18 04:53:37 +04:00
|
|
|
// declared in nsAppRunner.cpp
|
|
|
|
extern int gArgc;
|
|
|
|
extern char **gArgv;
|
2010-03-30 15:34:37 +04:00
|
|
|
|
2014-02-21 06:09:02 +04:00
|
|
|
class QGuiApplication;
|
2010-07-29 05:05:08 +04:00
|
|
|
class nsQAppInstance
|
2010-03-30 15:34:37 +04:00
|
|
|
{
|
|
|
|
public:
|
2011-10-18 04:53:37 +04:00
|
|
|
static void AddRef(int& aArgc = gArgc,
|
|
|
|
char** aArgv = gArgv,
|
|
|
|
bool aDefaultProcess = false);
|
2010-03-30 15:34:37 +04:00
|
|
|
static void Release(void);
|
|
|
|
|
|
|
|
private:
|
2014-02-21 06:09:02 +04:00
|
|
|
static QGuiApplication *sQAppInstance;
|
2010-03-30 15:34:37 +04:00
|
|
|
static int sQAppRefCount;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsQAppInstance_h */
|