haiku/src/kits/app/DesktopLink.cpp

39 lines
537 B
C++

/*
* Copyright 2006-2009, Haiku Inc.
* Distributed under the terms of the MIT License.
*
* Authors:
* Axel Dörfler, axeld@pinc-software.de
*/
#include <DesktopLink.h>
#include <AppMisc.h>
#include <ServerProtocol.h>
namespace BPrivate {
DesktopLink::DesktopLink()
{
create_desktop_connection(this, "desktop reply", 1);
}
DesktopLink::~DesktopLink()
{
delete_port(fReceiver->Port());
}
status_t
DesktopLink::InitCheck() const
{
return fReceiver->Port() < B_OK ? fReceiver->Port() : B_OK;
}
} // namespace BPrivate