~ubuntu-branches/ubuntu/precise/me-tv/precise-proposed

« back to all changes in this revision

Viewing changes to src/engine.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Lamothe
  • Date: 2008-02-12 21:56:59 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080212215659-g3u4v9iz8wzxu2cd
Tags: 0.5.17-1
New upstream release (Closes: #464922)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 * Copyright (C) 2007 Michael Lamothe
 
2
 * Copyright (C) 2008 Michael Lamothe
 
3
 *
 
4
 * This file is part of Me TV
3
5
 *
4
6
 * This program is free software; you can redistribute it and/or modify
5
7
 * it under the terms of the GNU General Public License as published by
21
23
 
22
24
#include <gtk/gtk.h>
23
25
#include <gdk/gdkx.h>
24
 
#include <glibmm/ustring.h>
 
26
#include "string.hh"
25
27
#include "io.h"
26
28
 
 
29
#define ENGINE_DUAL_LANGUAGE_DISABLE    0
 
30
#define ENGINE_DUAL_LANGUAGE_LEFT               1
 
31
#define ENGINE_DUAL_LANGUAGE_RIGHT              2
 
32
 
27
33
class Engine
28
34
{
29
35
public:
30
36
        Engine();
31
37
        virtual ~Engine();
32
38
        
33
 
        virtual void write(const void* buffer, unsigned int length) = 0;
 
39
        virtual void write(const gchar* buffer, gsize length) = 0;
34
40
        virtual void open() = 0;
35
41
        virtual void close() = 0;
36
42
        virtual void expose() = 0;
37
43
        virtual void mute(gboolean state) = 0;
38
 
        virtual void set_audio_channel(int channel) = 0;
39
 
        virtual void set_subtitle_channel(int channel) = 0;
 
44
        virtual void set_audio_channel(gint channel) = 0;
 
45
        virtual void set_subtitle_channel(gint channel) = 0;
 
46
        virtual void set_dual_language_state(gint state) = 0;
40
47
};
41
48
 
42
49
#endif