~ubuntu-branches/ubuntu/oneiric/kdebindings/oneiric

« back to all changes in this revision

Viewing changes to ruby/qtruby/modules/phonon/phononhandlers.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Philip Muskovac
  • Date: 2010-12-07 00:10:46 UTC
  • mfrom: (1.1.42 upstream)
  • Revision ID: james.westby@ubuntu.com-20101207001046-h9gf2h54ym29tgui
Tags: 4:4.5.85-0ubuntu1
* New upstream beta release
* Disable libqwt-ruby1.8 and qwt files in libqt4-ruby1.8.examples
* Add libqtdeclarative-ruby1.8, libsmokeqt3support4-3,
  libsmokeqtdeclarative4-3 and libsmokeqthelp4-3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                          phononhandlers.cpp  -  Phonon specific marshallers
 
3
                             -------------------
 
4
    begin                : Sat Jun 28 2008
 
5
    copyright            : (C) 2008 by Richard Dale
 
6
    email                : richard.j.dale@gmail.com
 
7
 ***************************************************************************/
 
8
 
 
9
/***************************************************************************
 
10
 *                                                                         *
 
11
 *   This program is free software; you can redistribute it and/or modify  *
 
12
 *   it under the terms of the GNU General Public License as published by  *
 
13
 *   the Free Software Foundation; either version 2 of the License, or     *
 
14
 *   (at your option) any later version.                                   *
 
15
 *                                                                         *
 
16
 ***************************************************************************/
 
17
 
 
18
#include <ruby.h>
 
19
 
 
20
#include <qtruby.h>
 
21
#include <smokeruby.h>
 
22
#include <marshall_macros.h>
 
23
 
 
24
#include <phonon/effectparameter.h>
 
25
#include <phonon/mediasource.h>
 
26
#include <phonon/path.h>
 
27
 
 
28
DEF_LIST_MARSHALLER( PhononEffectList, QList<Phonon::Effect*>, Phonon::Effect )
 
29
 
 
30
DEF_VALUELIST_MARSHALLER( PhononAudioChannelDescriptionList, QList<Phonon::AudioChannelDescription>, Phonon::AudioChannelDescription )
 
31
DEF_VALUELIST_MARSHALLER( PhononEffectParameterList, QList<Phonon::EffectParameter>, Phonon::EffectParameter )
 
32
DEF_VALUELIST_MARSHALLER( PhononMediaSourceList, QList<Phonon::MediaSource>, Phonon::MediaSource )
 
33
DEF_VALUELIST_MARSHALLER( PhononPathList, QList<Phonon::Path>, Phonon::Path )
 
34
DEF_VALUELIST_MARSHALLER( PhononSubtitleDescriptionList, QList<Phonon::SubtitleDescription>, Phonon::SubtitleDescription )
 
35
 
 
36
TypeHandler Phonon_handlers[] = {
 
37
    { "QList<Phonon::AudioChannelDescription>", marshall_PhononAudioChannelDescriptionList },
 
38
    { "QList<Phonon::Effect*>", marshall_PhononEffectList },
 
39
    { "QList<Phonon::EffectParameter>", marshall_PhononEffectParameterList },
 
40
    { "QList<Phonon::MediaSource>", marshall_PhononMediaSourceList },
 
41
    { "QList<Phonon::MediaSource>&", marshall_PhononMediaSourceList },
 
42
    { "QList<Phonon::Path>", marshall_PhononPathList },
 
43
    { "QList<Phonon::SubtitleDescription>", marshall_PhononSubtitleDescriptionList },
 
44
//  "QList<QExplicitlySharedDataPointer<Phonon::ObjectDescriptionData> >"
 
45
//  "QList<QExplicitlySharedDataPointer<Phonon::ObjectDescriptionData> >&"
 
46
    { 0, 0 }
 
47
};