git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13415 a95241bf-73f2-0310-859d-f6bbb57e9c96
30 lines
598 B
C++
30 lines
598 B
C++
/*
|
|
* Copyright 2005, Haiku.
|
|
* Distributed under the terms of the MIT License.
|
|
*
|
|
* Authors:
|
|
* Ingo Weinhold <[email protected]>
|
|
*/
|
|
|
|
#include <Server.h>
|
|
|
|
// constructor
|
|
BServer::BServer(const char* signature, bool initGUI, status_t *error)
|
|
: BApplication(signature, initGUI, error),
|
|
fGUIContextInitialized(false)
|
|
{
|
|
fGUIContextInitialized = (initGUI && (!error || *error == B_OK));
|
|
}
|
|
|
|
// InitGUIContext
|
|
status_t
|
|
BServer::InitGUIContext()
|
|
{
|
|
if (fGUIContextInitialized)
|
|
return B_OK;
|
|
|
|
status_t error = _InitGUIContext();
|
|
fGUIContextInitialized = (error == B_OK);
|
|
return error;
|
|
}
|