1 // LoggingConsumerAddOn.h 2 // e.moon 11jun99 3 // 4 // PURPOSE 5 // Quickie AddOn class for the LoggingConsumer node. 6 // 7 8 #ifndef __LoggingConsumerAddOn_H__ 9 #define __LoggingConsumerAddOn_H__ 10 11 #include <MediaAddOn.h> 12 13 // -------------------------------------------------------- // 14 15 class LoggingConsumerAddOn : 16 public BMediaAddOn { 17 typedef BMediaAddOn _inherited; 18 19 public: // ctor/dtor 20 virtual ~LoggingConsumerAddOn(); 21 explicit LoggingConsumerAddOn(image_id image); 22 23 public: // BMediaAddOn impl 24 virtual status_t InitCheck( 25 const char** out_failure_text); 26 virtual int32 CountFlavors(); 27 virtual status_t GetFlavorAt( 28 int32 n, 29 const flavor_info ** out_info); 30 virtual BMediaNode * InstantiateNodeFor( 31 const flavor_info * info, 32 BMessage * config, 33 status_t * out_error); 34 virtual status_t GetConfigurationFor( 35 BMediaNode * your_node, 36 BMessage * into_message); 37 38 virtual bool WantsAutoStart() { return false; } 39 virtual status_t AutoStart( 40 int in_count, 41 BMediaNode ** out_node, 42 int32 * out_internal_id, 43 bool * out_has_more) { return B_OK; } 44 }; 45 46 #endif /*__LoggingConsumerAddOn_H__*/ 47