/***************************************************************************
                            qt_QSessionManager.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_QSessionManager.h"
}

#include <qsessionmanager.h>

qt_QString * qt_QSessionManager_sessionId( qt_QSessionManager* instPointer){
	return (qt_QString *)new QString(((QSessionManager*)instPointer)->sessionId());
}
void* qt_QSessionManager_handle( qt_QSessionManager* instPointer){
	return (void*) ((QSessionManager*)instPointer)->handle();
}
int qt_QSessionManager_allowsInteraction( qt_QSessionManager* instPointer){
	return (int) ((QSessionManager*)instPointer)->allowsInteraction();
}
int qt_QSessionManager_allowsErrorInteraction( qt_QSessionManager* instPointer){
	return (int) ((QSessionManager*)instPointer)->allowsErrorInteraction();
}
void qt_QSessionManager_release( qt_QSessionManager* instPointer){
	((QSessionManager*)instPointer)->release();
	return;
}
void qt_QSessionManager_cancel( qt_QSessionManager* instPointer){
	((QSessionManager*)instPointer)->cancel();
	return;
}
void qt_QSessionManager_setRestartHint( qt_QSessionManager* instPointer,int arg1){
	((QSessionManager*)instPointer)->setRestartHint((QSessionManager::RestartHint)arg1);
	return;
}
int qt_QSessionManager_restartHint( qt_QSessionManager* instPointer){
	return (int) ((QSessionManager*)instPointer)->restartHint();
}
void qt_QSessionManager_setRestartCommand( qt_QSessionManager* instPointer,qt_QStringList* arg1){
	((QSessionManager*)instPointer)->setRestartCommand((QStringList&)* (QStringList*)arg1);
	return;
}
qt_QStringList* qt_QSessionManager_restartCommand( qt_QSessionManager* instPointer){
	return (qt_QStringList*)new QStringList(((QSessionManager*)instPointer)->restartCommand());
}
void qt_QSessionManager_setDiscardCommand( qt_QSessionManager* instPointer,qt_QStringList* arg1){
	((QSessionManager*)instPointer)->setDiscardCommand((QStringList&)* (QStringList*)arg1);
	return;
}
qt_QStringList* qt_QSessionManager_discardCommand( qt_QSessionManager* instPointer){
	return (qt_QStringList*)new QStringList(((QSessionManager*)instPointer)->discardCommand());
}
void qt_QSessionManager_setManagerProperty( qt_QSessionManager* instPointer,qt_QString * name, qt_QString * value){
	((QSessionManager*)instPointer)->setManagerProperty((QString&)* (QString*)name, (QString&)* (QString*)value);
	return;
}
void qt_QSessionManager_setManagerProperty1( qt_QSessionManager* instPointer,qt_QString * name, qt_QStringList* value){
	((QSessionManager*)instPointer)->setManagerProperty((QString&)* (QString*)name, (QStringList&)* (QStringList*)value);
	return;
}
int qt_QSessionManager_isPhase2( qt_QSessionManager* instPointer){
	return (int) ((QSessionManager*)instPointer)->isPhase2();
}
void qt_QSessionManager_requestPhase2( qt_QSessionManager* instPointer){
	((QSessionManager*)instPointer)->requestPhase2();
	return;
}
