/***************************************************************************
                            kde_KTipDatabase.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_KTipDatabase.h"
}

#include <ktip.h>

class KTipDatabaseBridge : public KTipDatabase
{
public:
	KTipDatabaseBridge(const QString& tipFile) : KTipDatabase(tipFile) {}
};

kde_KTipDatabase * kde_new_KTipDatabase(qt_QString * tipFile){
	return (kde_KTipDatabase *) new KTipDatabaseBridge((QString&)* (QString*)tipFile);
}
qt_QString * kde_KTipDatabase_tip( kde_KTipDatabase* instPointer){
	return (qt_QString *)new QString(((KTipDatabaseBridge*)instPointer)->tip());
}
void kde_KTipDatabase_nextTip( kde_KTipDatabase* instPointer){
	((KTipDatabaseBridge*)instPointer)->nextTip();
	return;
}
void kde_KTipDatabase_prevTip( kde_KTipDatabase* instPointer){
	((KTipDatabaseBridge*)instPointer)->prevTip();
	return;
}
