~ubuntu-branches/ubuntu/gutsy/kde4libs/gutsy

« back to all changes in this revision

Viewing changes to kjsembed/kjsembed/test/QPaintDevice_bind.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-02-21 11:00:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070221110012-6kw8khr9knv6lmg1
Tags: 3.80.3-0ubuntu1
New upstream unstable release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "QPaintDevice_bind.h"
 
2
#include <qPaintDevice.h>
 
3
#include <object_binding.h>
 
4
#include <value_binding.h>
 
5
 
 
6
 
 
7
using namespace KJSEmbed;
 
8
 
 
9
const KJS::ClassInfo QPaintDeviceBinding::info = { "QPaintDevice", 0, 0, 0 };
 
10
QPaintDeviceBinding::QPaintDeviceBinding( KJS::ExecState *exec, QPaintDevice *value )
 
11
   : ObjectBinding<QPaintDevice>(exec, value)
 
12
{
 
13
    StaticBinding::publish(exec, this, QPaintDeviceData::methods() );
 
14
    StaticBinding::publish(exec, this, VariantFactory::methods() );
 
15
}
 
16
 
 
17
 
 
18
namespace QPaintDeviceNS
 
19
{
 
20
}
 
21
 
 
22
const Enumerator KJSEmbed::QPaintDeviceData::p_enums[] = {{0, 0 }};
 
23
 
 
24
NO_STATICS( KJSEmbed::QPaintDeviceData )
 
25
const Constructor KJSEmbed::QPaintDeviceData::p_constructor = 
 
26
{"QPaintDevice", 0, KJS::DontDelete|KJS::ReadOnly, &QPaintDeviceData::ctorMethod, p_statics, p_enums, KJSEmbed::QPaintDeviceData::p_methods };
 
27
KJS::JSObject *KJSEmbed::QPaintDeviceData::ctorMethod( KJS::ExecState *exec, const KJS::List &args )
 
28
{
 
29
    if (args.size() == 0 )
 
30
        return new KJSEmbed::QPaintDeviceBinding(exec, new QPaintDevice);
 
31
 
 
32
    return KJS::throwError(exec, KJS::SyntaxError, "Syntax error in parameter list for QPaintDevice");
 
33
}
 
34
 
 
35
const Method KJSEmbed::QPaintDeviceData::p_methods[] = 
 
36
{
 
37
    {0, 0, 0, 0 }
 
38
};
 
39