/***************************************************************************
                            kde_KSSLSettings.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_KSSLSettings.h"
}

#include <ksslsettings.h>

class KSSLSettingsBridge : public KSSLSettings
{
public:
	KSSLSettingsBridge(bool readConfig) : KSSLSettings(readConfig) {}
	~KSSLSettingsBridge() {}
};

kde_KSSLSettings * kde_new_KSSLSettings(int readConfig){
	return (kde_KSSLSettings *) new KSSLSettingsBridge((bool)readConfig);
}
void kde_del_KSSLSettings( kde_KSSLSettings* p ){
	delete (KSSLSettingsBridge*) p;
}
int kde_KSSLSettings_sslv2( kde_KSSLSettings* instPointer){
	return (int) ((KSSLSettingsBridge*)instPointer)->sslv2();
}
int kde_KSSLSettings_sslv3( kde_KSSLSettings* instPointer){
	return (int) ((KSSLSettingsBridge*)instPointer)->sslv3();
}
int kde_KSSLSettings_tlsv1( kde_KSSLSettings* instPointer){
	return (int) ((KSSLSettingsBridge*)instPointer)->tlsv1();
}
int kde_KSSLSettings_warnOnEnter( kde_KSSLSettings* instPointer){
	return (int) ((KSSLSettingsBridge*)instPointer)->warnOnEnter();
}
int kde_KSSLSettings_warnOnUnencrypted( kde_KSSLSettings* instPointer){
	return (int) ((KSSLSettingsBridge*)instPointer)->warnOnUnencrypted();
}
void kde_KSSLSettings_setWarnOnUnencrypted( kde_KSSLSettings* instPointer,int x){
	((KSSLSettingsBridge*)instPointer)->setWarnOnUnencrypted((bool)x);
	return;
}
int kde_KSSLSettings_warnOnLeave( kde_KSSLSettings* instPointer){
	return (int) ((KSSLSettingsBridge*)instPointer)->warnOnLeave();
}
int kde_KSSLSettings_warnOnMixed( kde_KSSLSettings* instPointer){
	return (int) ((KSSLSettingsBridge*)instPointer)->warnOnMixed();
}
int kde_KSSLSettings_warnOnSelfSigned( kde_KSSLSettings* instPointer){
	return (int) ((KSSLSettingsBridge*)instPointer)->warnOnSelfSigned();
}
int kde_KSSLSettings_warnOnRevoked( kde_KSSLSettings* instPointer){
	return (int) ((KSSLSettingsBridge*)instPointer)->warnOnRevoked();
}
int kde_KSSLSettings_warnOnExpired( kde_KSSLSettings* instPointer){
	return (int) ((KSSLSettingsBridge*)instPointer)->warnOnExpired();
}
int kde_KSSLSettings_useEGD( kde_KSSLSettings* instPointer){
	return (int) ((KSSLSettingsBridge*)instPointer)->useEGD();
}
int kde_KSSLSettings_useEFile( kde_KSSLSettings* instPointer){
	return (int) ((KSSLSettingsBridge*)instPointer)->useEFile();
}
void kde_KSSLSettings_setTLSv1( kde_KSSLSettings* instPointer,int enabled){
	((KSSLSettingsBridge*)instPointer)->setTLSv1((bool)enabled);
	return;
}
void kde_KSSLSettings_setSSLv2( kde_KSSLSettings* instPointer,int enabled){
	((KSSLSettingsBridge*)instPointer)->setSSLv2((bool)enabled);
	return;
}
void kde_KSSLSettings_setSSLv3( kde_KSSLSettings* instPointer,int enabled){
	((KSSLSettingsBridge*)instPointer)->setSSLv3((bool)enabled);
	return;
}
int kde_KSSLSettings_autoSendX509( kde_KSSLSettings* instPointer){
	return (int) ((KSSLSettingsBridge*)instPointer)->autoSendX509();
}
int kde_KSSLSettings_promptSendX509( kde_KSSLSettings* instPointer){
	return (int) ((KSSLSettingsBridge*)instPointer)->promptSendX509();
}
qt_QString * kde_KSSLSettings_getCipherList( kde_KSSLSettings* instPointer){
	return (qt_QString *)new QString(((KSSLSettingsBridge*)instPointer)->getCipherList());
}
qt_QString * kde_KSSLSettings_getEGDPath( kde_KSSLSettings* instPointer){
	return (qt_QString *) ( QString *)&((KSSLSettingsBridge*)instPointer)->getEGDPath();
}
void kde_KSSLSettings_load( kde_KSSLSettings* instPointer){
	((KSSLSettingsBridge*)instPointer)->load();
	return;
}
void kde_KSSLSettings_defaults( kde_KSSLSettings* instPointer){
	((KSSLSettingsBridge*)instPointer)->defaults();
	return;
}
void kde_KSSLSettings_save( kde_KSSLSettings* instPointer){
	((KSSLSettingsBridge*)instPointer)->save();
	return;
}
