/***************************************************************************
                            QMetaObject.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.qt;

import java.util.*;
import java.lang.Error;

/**

 $Id: QMetaObject.java,v 1.4 2001/11/22 00:50:27 rdale Exp $

 Definition of QObject class

 Created : 930418

 Copyright (C) 1992-2000 Trolltech AS.  All rights reserved.

 This file is part of the kernel module of the Qt GUI Toolkit.

 This file may be distributed under the terms of the Q Public License
 as defined by Trolltech AS of Norway and appearing in the file
 LICENSE.QPL included in the packaging of this file.

 This file may be distributed and/or modified under the terms of the
 GNU General Public License version 2 as published by the Free Software
 Foundation and appearing in the file LICENSE.GPL included in the
 packaging of this file.

 Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
 licenses may use this file in accordance with the Qt Commercial License
 Agreement provided with the Software.

 This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
 WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

 See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
   information about Qt Commercial License Agreements.
 See http://www.trolltech.com/qpl/ for QPL licensing information.
 See http://www.trolltech.com/gpl/ for GPL licensing information.

 Contact info@trolltech.com if any conditions of this licensing are
 not clear to you.


 @short 
* $Id:  qt/qobject.
*/
public class  QMetaObject implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected QMetaObject(Class dummy){}

	private native void newQMetaObject( String class_name, QMetaObject superclass, QMetaData slot_data, int n_slots, QMetaData signal_data, int n_signals, QMetaProperty prop_data, int n_props, QMetaEnum enum_data, int n_enums, QClassInfo class_info, int n_info);
	public QMetaObject( String class_name, QMetaObject superclass, QMetaData slot_data, int n_slots, QMetaData signal_data, int n_signals, QMetaProperty prop_data, int n_props, QMetaEnum enum_data, int n_enums, QClassInfo class_info, int n_info) {
		newQMetaObject( class_name, superclass, slot_data, n_slots, signal_data, n_signals, prop_data, n_props, enum_data, n_enums, class_info, n_info);
	}
	protected native void finalize() throws InternalError;
	public native String className();
	public native String superClassName();
	public native QMetaObject superClass();
	public native boolean inherits( String clname);
	public native int numSlots( boolean superClass);
	public native int numSlots();
	public native int numSignals( boolean superClass);
	public native int numSignals();
	public native int findSlot( String arg1, boolean superClass);
	public native int findSlot( String arg1);
	public native int findSignal( String arg1, boolean superClass);
	public native int findSignal( String arg1);
	public native QMetaData slot( int index, boolean superClass);
	public native QMetaData slot( int index);
	public native QMetaData signal( int index, boolean superClass);
	public native QMetaData signal( int index);
	public native ArrayList slotNames( boolean superClass);
	public native ArrayList signalNames( boolean superClass);
	public native int slotOffset();
	public native int signalOffset();
	public native int propertyOffset();
	public native int numClassInfo( boolean superClass);
	public native int numClassInfo();
	public native QClassInfo classInfo( int index, boolean superClass);
	public native QClassInfo classInfo( int index);
	public native String classInfo( String name, boolean superClass);
	public native QMetaProperty property( int index, boolean superClass);
	public native QMetaProperty property( int index);
	public native int findProperty( String name, boolean superClass);
	public native int findProperty( String name);
	public native int indexOfProperty( QMetaProperty arg1, boolean superClass);
	public native int indexOfProperty( QMetaProperty arg1);
	public native QMetaProperty resolveProperty( QMetaProperty arg1);
	public native int resolveProperty( int arg1);
	public native ArrayList propertyNames( boolean superClass);
	public native int numProperties( boolean superClass);
	public native int numProperties();
	public native QMetaEnum enumerator( String name, boolean superClass);
	public native QMetaEnum enumerator( String name);
//	public static native QMetaObject new_metaobject( String arg1, QMetaObject arg2, QMetaData const, int arg3, QMetaData const, int arg4, QMetaProperty prop_data, int n_props, QMetaEnum enum_data, int n_enums, QClassInfo class_info, int n_info);
	public static native QMetaObject metaObject( String class_name);
}
