/***************************************************************************
                            kde_DCOPRef.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, 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 "kde_DCOPRef.h"
}

#include <dcopref.h>

class DCOPRefBridge : public DCOPRef
{
public:
	DCOPRefBridge() : DCOPRef() {}
	DCOPRefBridge(const DCOPRef& ref) : DCOPRef(ref) {}
	DCOPRefBridge(const QCString& app, const QCString& obj) : DCOPRef(app, obj) {}
	DCOPRefBridge(DCOPObject* object) : DCOPRef(object) {}
	DCOPRefBridge(const QCString& app, const QCString& obj, const QCString& type) : DCOPRef(app, obj, type) {}
};

kde_DCOPRef * kde_new_DCOPRef(){
	return (kde_DCOPRef *) new DCOPRefBridge();
}
kde_DCOPRef * kde_new_DCOPRef1(kde_DCOPRef* ref){
	return (kde_DCOPRef *) new DCOPRefBridge((DCOPRef&)* (DCOPRef*)ref);
}
kde_DCOPRef * kde_new_DCOPRef2(qt_QCString* app, qt_QCString* obj){
	return (kde_DCOPRef *) new DCOPRefBridge((QCString&)* (QCString*)app, (QCString&)* (QCString*)obj);
}
kde_DCOPRef * kde_new_DCOPRef3(kde_DCOPObject* object){
	return (kde_DCOPRef *) new DCOPRefBridge((DCOPObject*)object);
}
kde_DCOPRef * kde_new_DCOPRef4(qt_QCString* app, qt_QCString* obj, qt_QCString* type){
	return (kde_DCOPRef *) new DCOPRefBridge((QCString&)* (QCString*)app, (QCString&)* (QCString*)obj, (QCString&)* (QCString*)type);
}
int kde_DCOPRef_isNull( kde_DCOPRef* instPointer){
	return (int) ((DCOPRefBridge*)instPointer)->isNull();
}
qt_QCString* kde_DCOPRef_app( kde_DCOPRef* instPointer){
	return (qt_QCString*)new QCString(((DCOPRefBridge*)instPointer)->app());
}
qt_QCString* kde_DCOPRef_object( kde_DCOPRef* instPointer){
	return (qt_QCString*)new QCString(((DCOPRefBridge*)instPointer)->object());
}
qt_QCString* kde_DCOPRef_type( kde_DCOPRef* instPointer){
	return (qt_QCString*)new QCString(((DCOPRefBridge*)instPointer)->type());
}
void kde_DCOPRef_setRef( kde_DCOPRef* instPointer,qt_QCString* app, qt_QCString* obj){
	((DCOPRefBridge*)instPointer)->setRef((QCString&)* (QCString*)app, (QCString&)* (QCString*)obj);
	return;
}
void kde_DCOPRef_setRef1( kde_DCOPRef* instPointer,qt_QCString* app, qt_QCString* obj, qt_QCString* type){
	((DCOPRefBridge*)instPointer)->setRef((QCString&)* (QCString*)app, (QCString&)* (QCString*)obj, (QCString&)* (QCString*)type);
	return;
}
void kde_DCOPRef_clear( kde_DCOPRef* instPointer){
	((DCOPRefBridge*)instPointer)->clear();
	return;
}
