2 * Copyright 2005-2015, Haiku.
3 * Distributed under the terms of the MIT License.
6 * Axel Dörfler, axeld@pinc-software.de
7 * Ingo Weinhold <bonefish@cs.tu-berlin.de>
14 BServer::BServer(const char* signature
, bool initGUI
, status_t
*error
)
16 BApplication(signature
, NULL
, -1, initGUI
, error
),
17 fGUIContextInitialized(false)
19 fGUIContextInitialized
= initGUI
&& (error
== NULL
|| *error
== B_OK
);
23 BServer::BServer(const char* signature
, const char* looperName
, port_id port
,
24 bool initGUI
, status_t
*error
)
26 BApplication(signature
, looperName
, port
, initGUI
, error
),
27 fGUIContextInitialized(false)
29 fGUIContextInitialized
= initGUI
&& (error
== NULL
|| *error
== B_OK
);
34 BServer::InitGUIContext()
36 if (fGUIContextInitialized
)
39 status_t error
= _InitGUIContext();
40 fGUIContextInitialized
= (error
== B_OK
);