/***************************************************************************
                            qt_QDns.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library 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.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "qt_QDns.h"
}

#include <qdns.h>

class QDnsBridge : public QDns
{
public:
	QDnsBridge() : QDns() {}
	QDnsBridge(const QString& label, RecordType rr) : QDns(label, rr) {}
	QDnsBridge(const QHostAddress& address, RecordType rr) : QDns(address, rr) {}
	~QDnsBridge() {}
	void protected_connectNotify(const char* signal) {
		QDns::connectNotify(signal);
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "childEvent", arg1, "QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "customEvent", arg1, "QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (Qt_EventDelegate == 0L || !(*Qt_EventDelegate)(this, "timerEvent", arg1, "QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
};

qt_QDns * qt_new_QDns(){
	return (qt_QDns *) new QDnsBridge();
}
qt_QDns * qt_new_QDns1(qt_QString * label, int rr){
	return (qt_QDns *) new QDnsBridge((QString&)* (QString*)label, (QDns::RecordType)rr);
}
qt_QDns * qt_new_QDns2(qt_QHostAddress* address, int rr){
	return (qt_QDns *) new QDnsBridge((QHostAddress&)* (QHostAddress*)address, (QDns::RecordType)rr);
}
void qt_del_QDns( qt_QDns* p ){
	delete (QDnsBridge*) p;
}
void qt_QDns_setLabel( qt_QDns* instPointer,qt_QString * label){
	((QDnsBridge*)instPointer)->setLabel((QString&)* (QString*)label);
	return;
}
void qt_QDns_setLabel1( qt_QDns* instPointer,qt_QHostAddress* address){
	((QDnsBridge*)instPointer)->setLabel((QHostAddress&)* (QHostAddress*)address);
	return;
}
qt_QString * qt_QDns_label( qt_QDns* instPointer){
	return (qt_QString *)new QString(((QDnsBridge*)instPointer)->label());
}
void qt_QDns_setRecordType( qt_QDns* instPointer,int rr){
	((QDnsBridge*)instPointer)->setRecordType((QDns::RecordType)rr);
	return;
}
int qt_QDns_recordType( qt_QDns* instPointer){
	return (int) ((QDnsBridge*)instPointer)->recordType();
}
int qt_QDns_isWorking( qt_QDns* instPointer){
	return (int) ((QDnsBridge*)instPointer)->isWorking();
}
qt_QStringList* qt_QDns_hostNames( qt_QDns* instPointer){
	return (qt_QStringList*)new QStringList(((QDnsBridge*)instPointer)->hostNames());
}
qt_QStringList* qt_QDns_texts( qt_QDns* instPointer){
	return (qt_QStringList*)new QStringList(((QDnsBridge*)instPointer)->texts());
}
qt_QString * qt_QDns_canonicalName( qt_QDns* instPointer){
	return (qt_QString *)new QString(((QDnsBridge*)instPointer)->canonicalName());
}
qt_QStringList* qt_QDns_qualifiedNames( qt_QDns* instPointer){
	return (qt_QStringList*)new QStringList(((QDnsBridge*)instPointer)->qualifiedNames());
}
void qt_QDns_connectNotify( qt_QDns* instPointer,char* signal){
	((QDnsBridge*)instPointer)->protected_connectNotify((char*)signal);
	return;
}
