1/*
2 * Copyright 2005, Waldemar Kornewald <wkornew@gmx.net>
3 * Distributed under the terms of the MIT License.
4 */
5
6#include "ConnectionWindow.h"
7
8#include <Application.h>
9#include <String.h>
10
11
12ConnectionWindow::ConnectionWindow(BRect frame, const BString& interfaceName)
13	: BWindow(frame, "", B_TITLED_WINDOW, B_NOT_RESIZABLE | B_NOT_ZOOMABLE,
14		B_ALL_WORKSPACES)
15{
16	BString title("Connecting to ");
17	title << "\"" << interfaceName << "\"...";
18	SetTitle(title.String());
19	fConnectionView = new ConnectionView(Bounds(), interfaceName);
20	AddChild(fConnectionView);
21}
22
23
24bool
25ConnectionWindow::QuitRequested()
26{
27	fConnectionView->CleanUp();
28	be_app->PostMessage(B_QUIT_REQUESTED);
29
30	return true;
31}
32