/***************************************************************************
                            kdbgstream.java -  description
                             -------------------
    begin                : Fri Nov 15 11:45:52 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Fri Nov 15 11:45:52 2002, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library 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.koala;

import org.kde.qt.*;
import java.util.*;
import java.lang.Error;

/**

 kdbgstream is a text stream that allows you to print debug messages.
 Using the overloaded "<<" operator you can send messages. Usually 
 you do not create the kdbgstream yourself, but use {@link #kdDebug}
 {@link #kdWarning}, {@link #kdError} or {@link kdFatal} to obtain one.

 Example:
 <pre>
    int i = 5;
    kdDebug() << "The value of i is " << i << endl;
 </pre>

 @short *
 kdbgstream is a text stream that allows you to print debug messages.
*/
public class  kdbgstream implements QtSupport {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected kdbgstream(Class dummy){}

	private native void newkdbgstream( int _area, int _level, boolean _print);

/** 

   
*/
	public kdbgstream( int _area, int _level, boolean _print) {
		newkdbgstream( _area, _level, _print);
	}
	private native void newkdbgstream( int _area, int _level);
	public kdbgstream( int _area, int _level) {
		newkdbgstream( _area, _level);
	}
	private native void newkdbgstream( String initialString, int _area, int _level, boolean _print);
	public kdbgstream( String initialString, int _area, int _level, boolean _print) {
		newkdbgstream( initialString, _area, _level, _print);
	}
	private native void newkdbgstream( String initialString, int _area, int _level);
	public kdbgstream( String initialString, int _area, int _level) {
		newkdbgstream( initialString, _area, _level);
	}
//	private native void newkdbgstream( Kdbgstream str);
//	public kdbgstream( Kdbgstream str) {
//		newkdbgstream( str);
//	}
//	private native void newkdbgstream( Kdbgstream str);
//	public kdbgstream( Kdbgstream str) {
//		newkdbgstream( str);
//	}
	protected native void finalize() throws InternalError;
	public native void dispose();
	public native boolean isDisposed();

/** 
 Flushes the output.
     
*/
	public native void flush();
}
