Bug 1943650 - Command-line --help output misformatted after --dbus-service. r=emilio
[gecko.git] / toolkit / components / remote / nsXRemoteServer.h
blob405bafe7892c990e9fbfd80689357713d6124853
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim:expandtab:shiftwidth=2:tabstop=8:
3 */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #ifndef NSXREMOTESERVER_H
9 #define NSXREMOTESERVER_H
11 #include "nsString.h"
12 #include "nsRemoteServer.h"
13 #include "nsUnixRemoteServer.h"
15 #include <X11/Xlib.h>
16 #include <X11/X.h>
18 /**
19 Base class for GTK/Qt remote service
21 class nsXRemoteServer : public nsRemoteServer, public nsUnixRemoteServer {
22 protected:
23 nsXRemoteServer();
24 bool HandleNewProperty(Window aWindowId, Display* aDisplay, Time aEventTime,
25 Atom aChangedAtom);
26 void XRemoteBaseStartup(const char* aAppName, const char* aProfileName);
27 void HandleCommandsFor(Window aWindowId);
29 private:
30 void EnsureAtoms();
32 nsCString mAppName;
33 nsCString mProfileName;
35 static Atom sMozVersionAtom;
36 static Atom sMozLockAtom;
37 static Atom sMozResponseAtom;
38 static Atom sMozUserAtom;
39 static Atom sMozProfileAtom;
40 static Atom sMozProgramAtom;
41 static Atom sMozCommandLineAtom;
44 #endif // NSXREMOTESERVER_H