1 // EndPointInfoView.h (Cortex/InfoView) 2 // 3 // * PURPOSE 4 // Display input/output related info in the InfoWindow. 5 // Very similar to ConnectionInfoView, only that this 6 // views is prepared to handle wildcard values in the 7 // media_format (a connection should never have to!) 8 // 9 // * HISTORY 10 // c.lenz 14nov99 Begun 11 // 12 13 #ifndef __EndPointInfoView_H__ 14 #define __EndPointInfoView_H__ 15 16 #include "InfoView.h" 17 18 // Media Kit 19 #include <MediaDefs.h> 20 21 #include "cortex_defs.h" 22 __BEGIN_CORTEX_NAMESPACE 23 24 class EndPointInfoView : 25 public InfoView { 26 27 public: // *** ctor/dtor 28 29 // creates an InfoView for a media_input. adds source 30 // and destination fields, then calls _addFormatFields 31 EndPointInfoView( 32 const media_input &input); 33 34 // creates an InfoView for a media_output. adds source 35 // and destination fields, then calls _addFormatFields 36 EndPointInfoView( 37 const media_output &output); 38 39 virtual ~EndPointInfoView(); 40 41 public: // *** BView impl 42 43 // notify InfoWindowManager 44 virtual void DetachedFromWindow(); 45 46 private: // *** internal operations 47 48 // adds media_format related fields to the view 49 // (wildcard-aware) 50 void _addFormatFields( 51 const media_format &format); 52 53 private: // *** data members 54 55 // true if media_output 56 bool m_output; 57 58 int32 m_port; 59 60 int32 m_id; 61 }; 62 63 __END_CORTEX_NAMESPACE 64 #endif /* __EndPointInfoView_H__ */ 65