xref: /haiku/src/apps/cortex/InfoView/DormantNodeInfoView.h (revision c90684742e7361651849be4116d0e5de3a817194)
1 // DormantNodeInfoView.h (Cortex/InfoView)
2 //
3 // * PURPOSE
4 //   An InfoView variant for dormant MediaNodes. Accepts
5 //   a dormant_node_info struct in the constructor and
6 //   tries to aquire the corresponding dormant_flavor_info
7 //   from the BMediaRoster.
8 //
9 // * HISTORY
10 //   c.lenz		5nov99		Begun
11 //
12 
13 #ifndef __DormantNodeInfoView_H__
14 #define __DormantNodeInfoView_H__
15 
16 #include "InfoView.h"
17 
18 #include "cortex_defs.h"
19 
20 
21 struct dormant_node_info;
22 
23 __BEGIN_CORTEX_NAMESPACE
24 
25 class NodeRef;
26 
27 class DormantNodeInfoView :
28 	public InfoView {
29 
30 public:					// *** ctor/dtor
31 
32 	// add fields relevant for dormant MediaNodes (like
33 	// AddOn-ID, input/output formats etc.)
34 						DormantNodeInfoView(
35 							const dormant_node_info &info);
36 
37 	virtual				~DormantNodeInfoView();
38 
39 public:					// *** BView impl
40 
41 	// notify InfoWindowManager
42 	virtual void		DetachedFromWindow();
43 
44 private:				// *** data members
45 
46 	int32				m_addOnID;
47 
48 	int32				m_flavorID;
49 };
50 
51 __END_CORTEX_NAMESPACE
52 #endif /* __DormantNodeInfoView_H__ */
53