xref: /haiku/src/apps/cortex/InfoView/ConnectionInfoView.h (revision 893988af824e65e49e55f517b157db8386e8002b)
1 // ConnectionInfoView.h (Cortex/InfoView)
2 //
3 // * PURPOSE
4 //   Display connection-specific info in the InfoWindow.
5 //   This is: source, destination and format.
6 //
7 // * HISTORY
8 //   c.lenz		5nov99		Begun
9 //
10 
11 #ifndef __ConnectionInfoView_H__
12 #define __ConnectionInfoView_H__
13 
14 #include "InfoView.h"
15 
16 #include <MediaDefs.h>
17 
18 #include "cortex_defs.h"
19 __BEGIN_CORTEX_NAMESPACE
20 
21 // NodeManager
22 class Connection;
23 
24 class ConnectionInfoView : public InfoView
25 {
26 
27 public:					// *** ctor/dtor
28 
29 						ConnectionInfoView(
30 							const Connection &connection);
31 
32 	virtual				~ConnectionInfoView();
33 
34 private:				// *** internal operations
35 
36 	// adds media_format related fields to the view
37 	// (wildcard-aware)
38 	void				_addFormatFields(
39 							const media_format &format);
40 
41 public:					// *** BView impl
42 
43 	// notify InfoWindowManager
44 	virtual void		DetachedFromWindow();
45 
46 private:				// *** data members
47 
48 	media_source		m_source;
49 
50 	media_destination	m_destination;
51 };
52 
53 __END_CORTEX_NAMESPACE
54 #endif /* __ConnectionInfoView_H__ */
55