1/*
2 * Copyright 2005, Haiku.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Ingo Weinhold <bonefish@cs.tu-berlin.de>
7 */
8
9#include <Server.h>
10
11// constructor
12BServer::BServer(const char* signature, bool initGUI, status_t *error)
13	: BApplication(signature, initGUI, error),
14	  fGUIContextInitialized(false)
15{
16	fGUIContextInitialized = (initGUI && (!error || *error == B_OK));
17}
18
19// InitGUIContext
20status_t
21BServer::InitGUIContext()
22{
23	if (fGUIContextInitialized)
24		return B_OK;
25
26	status_t error = _InitGUIContext();
27	fGUIContextInitialized = (error == B_OK);
28	return error;
29}
30