Bug 795397 - Click-to-play blocklisting: respect the "plugins" permission. r=josh...
[gecko.git] / toolkit / xre / nsQAppInstance.h
blob1efea31abfed922ba9a4841d4f69b5efe4598e82
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef nsQAppInstance_h
8 #define nsQAppInstance_h
10 // declared in nsAppRunner.cpp
11 extern int gArgc;
12 extern char **gArgv;
14 class QApplication;
15 class MComponentData;
16 class nsQAppInstance
18 public:
19 static void AddRef(int& aArgc = gArgc,
20 char** aArgv = gArgv,
21 bool aDefaultProcess = false);
22 static void Release(void);
24 private:
25 static QApplication *sQAppInstance;
26 static MComponentData* sMComponentData;
27 static int sQAppRefCount;
30 #endif /* nsQAppInstance_h */