1/*
2 * Copyright (c) 1999-2000, Eric Moon.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 *
9 * 1. Redistributions of source code must retain the above copyright
10 *    notice, this list of conditions, and the following disclaimer.
11 *
12 * 2. Redistributions in binary form must reproduce the above copyright
13 *    notice, this list of conditions, and the following disclaimer in the
14 *    documentation and/or other materials provided with the distribution.
15 *
16 * 3. The name of the author may not be used to endorse or promote products
17 *    derived from this software without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR
20 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21 * OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
23 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
26 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
27 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */
30
31
32// ConnectionInfoView.h (Cortex/InfoView)
33//
34// * PURPOSE
35//   Display connection-specific info in the InfoWindow.
36//   This is: source, destination and format.
37//
38// * HISTORY
39//   c.lenz		5nov99		Begun
40//
41
42#ifndef __ConnectionInfoView_H__
43#define __ConnectionInfoView_H__
44
45#include "InfoView.h"
46
47#include <MediaDefs.h>
48
49#include "cortex_defs.h"
50__BEGIN_CORTEX_NAMESPACE
51
52// NodeManager
53class Connection;
54
55class ConnectionInfoView : public InfoView
56{
57
58public:					// *** ctor/dtor
59
60						ConnectionInfoView(
61							const Connection &connection);
62
63	virtual				~ConnectionInfoView();
64
65private:				// *** internal operations
66
67	// adds media_format related fields to the view
68	// (wildcard-aware)
69	void				_addFormatFields(
70							const media_format &format);
71
72public:					// *** BView impl
73
74	// notify InfoWindowManager
75	virtual void		DetachedFromWindow();
76
77private:				// *** data members
78
79	media_source		m_source;
80
81	media_destination	m_destination;
82};
83
84__END_CORTEX_NAMESPACE
85#endif /* __ConnectionInfoView_H__ */
86