#ifndef _MLTPP_CONSUMER_H_
#define _MLTPP_CONSUMER_H_
+#include "config.h"
+
#include <framework/mlt.h>
#include "MltService.h"
namespace Mlt
{
class Service;
+ class Profile;
- class Consumer : public Service
+ class MLTPP_DECLSPEC Consumer : public Service
{
private:
- bool destroy;
mlt_consumer instance;
public:
- Consumer( char *id, char *service = NULL );
+ Consumer( );
+ Consumer( Profile& profile );
+ Consumer( Profile& profile, const char *id , const char *service = NULL );
+ Consumer( Service &consumer );
Consumer( Consumer &consumer );
Consumer( mlt_consumer consumer );
virtual ~Consumer( );
virtual mlt_consumer get_consumer( );
mlt_service get_service( );
- int connect( Service &service );
+ virtual int connect( Service &service );
+ int run( );
int start( );
+ void purge( );
int stop( );
- int is_stopped( );
+ bool is_stopped( );
};
}