BPicture: Fix archive constructor.
[haiku.git] / src / kits / app / Server.cpp
blob614c5628f62514bb78da42cad658e87ea29f1734
1 /*
2 * Copyright 2005-2015, Haiku.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Axel Dörfler, axeld@pinc-software.de
7 * Ingo Weinhold <bonefish@cs.tu-berlin.de>
8 */
11 #include <Server.h>
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);
33 status_t
34 BServer::InitGUIContext()
36 if (fGUIContextInitialized)
37 return B_OK;
39 status_t error = _InitGUIContext();
40 fGUIContextInitialized = (error == B_OK);
41 return error;