/***************************************************************************
                            KNotifyClient.m -  description
                             -------------------
    begin                : Fri Mar  8 13:55:08 2002
    copyright            : (C) 2000-2002 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Fri Mar  8 13:55:08 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.                       *
 *                                                                         *
 ***************************************************************************/

#include <qtc/qt_QString.h>
#include <qtc/qt_QCString.h>
#include <kdec/kde_KNotifyClient.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/KNotifyClient.h>

@implementation  KNotifyClient

- (void *) qt
{
	return _qt;
}

- setQt: (void *) qt
{
	_qt = qt;
	return self;
}

- (BOOL) allocatedInObjcWorld
{
	return _allocatedInObjcWorld;
}

- setAllocatedInObjcWorld: (BOOL) yn
{
	_allocatedInObjcWorld = yn;
	return self;
}


- (BOOL) startDaemon
{
	return (BOOL) kde_KNotifyClient_startDaemon((kde_KNotifyClient *)[self qt]);
}

//- (BOOL) event: (NSString *)message text: (NSString *)text
//{
//static qt_QString * _qstring_text = 0L;
//static qt_QString * _qstring_message = 0L;
//	return (BOOL) kde_KNotifyClient_event((kde_KNotifyClient *)[self qt], (qt_QString *) [message toQString: &_qstring_message], (qt_QString *) [text toQString: &_qstring_text]);
//}

//- (BOOL) event: (NSString *)message
//{
//static qt_QString * _qstring_message = 0L;
//	return (BOOL) kde_KNotifyClient_event((kde_KNotifyClient *)[self qt], (qt_QString *) [message toQString: &_qstring_message], qt_QString_null());
//}

//- (BOOL) eventType: (int)event text: (NSString *)text
//{
//static qt_QString * _qstring_text = 0L;
//	return (BOOL) kde_KNotifyClient_event1((kde_KNotifyClient *)[self qt], (int)event, (qt_QString *) [text toQString: &_qstring_text]);
//}

//- (BOOL) eventType: (int)event
//{
//	return (BOOL) kde_KNotifyClient_event1((kde_KNotifyClient *)[self qt], (int)event, qt_QString_null());
//}

//- (BOOL) userEvent: (NSString *)text present: (int)present level: (int)level sound: (NSString *)sound file: (NSString *)file
//{
//static qt_QString * _qstring_file = 0L;
//static qt_QString * _qstring_sound = 0L;
//static qt_QString * _qstring_text = 0L;
//	return (BOOL) kde_KNotifyClient_userEvent((kde_KNotifyClient *)[self qt], (qt_QString *) [text toQString: &_qstring_text], (int)present, (int)level, (qt_QString *) [sound toQString: &_qstring_sound], (qt_QString *) [file toQString: &_qstring_file]);
//}

//- (BOOL) userEvent
//{
//	return (BOOL) kde_KNotifyClient_userEvent((kde_KNotifyClient *)[self qt], qt_QString_null(), [KNotifyClient Default], [KNotifyClient Default], qt_QString_null(), qt_QString_null());
//}

//- beep: (NSString *)reason
//{
//static qt_QString * _qstring_reason = 0L;
//	kde_KNotifyClient_beep((kde_KNotifyClient *)[self qt], (qt_QString *) [reason toQString: &_qstring_reason]);
//	return self;
//}

//- beep
//{
//	kde_KNotifyClient_beep((kde_KNotifyClient *)[self qt], qt_QString_null());
//	return self;
//}

//- (int) getPresentation: (NSString *)eventname
//{
//static qt_QString * _qstring_eventname = 0L;
//	return (int) kde_KNotifyClient_getPresentation((kde_KNotifyClient *)[self qt], (qt_QString *) [eventname toQString: &_qstring_eventname]);
//}

//- (NSString *) getFile: (NSString *)eventname present: (int)present
//{
//static qt_QString * _qstring = 0L;
//static qt_QString * _qstring_eventname = 0L;
//	_qstring = kde_KNotifyClient_getFile((kde_KNotifyClient *)[self qt], (qt_QString *) [eventname toQString: &_qstring_eventname], (int)present);
//	return [NSString fromQString: _qstring];
//}

//- (int) getDefaultPresentation: (NSString *)eventname
//{
//static qt_QString * _qstring_eventname = 0L;
//	return (int) kde_KNotifyClient_getDefaultPresentation((kde_KNotifyClient *)[self qt], (qt_QString *) [eventname toQString: &_qstring_eventname]);
//}

//- (NSString *) getDefaultFile: (NSString *)eventname present: (int)present
//{
//static qt_QString * _qstring = 0L;
//static qt_QString * _qstring_eventname = 0L;
//	_qstring = kde_KNotifyClient_getDefaultFile((kde_KNotifyClient *)[self qt], (qt_QString *) [eventname toQString: &_qstring_eventname], (int)present);
//	return [NSString fromQString: _qstring];
//}

//- (KInstance*) instance
//{
//	return (KInstance*) [QtSupport objectForQtKey: kde_KNotifyClient_instance((kde_KNotifyClient *)[self qt]) withClass: [KInstance class] allocatedInObjcWorld: YES];
//}

+ (int) Default
{
	return (int) KNOTIFYCLIENT_Default;
}

+ (int) None
{
	return (int) KNOTIFYCLIENT_None;
}

+ (int) Sound
{
	return (int) KNOTIFYCLIENT_Sound;
}

+ (int) Messagebox
{
	return (int) KNOTIFYCLIENT_Messagebox;
}

+ (int) Logfile
{
	return (int) KNOTIFYCLIENT_Logfile;
}

+ (int) Stderr
{
	return (int) KNOTIFYCLIENT_Stderr;
}

+ (int) Notification
{
	return (int) KNOTIFYCLIENT_Notification;
}

+ (int) Warning
{
	return (int) KNOTIFYCLIENT_Warning;
}

+ (int) Error
{
	return (int) KNOTIFYCLIENT_Error;
}

+ (int) Catastrophe
{
	return (int) KNOTIFYCLIENT_Catastrophe;
}

+ (int) cannotOpenFile
{
	return (int) KNOTIFYCLIENT_cannotOpenFile;
}

+ (int) notification
{
	return (int) KNOTIFYCLIENT_notification;
}

+ (int) warning
{
	return (int) KNOTIFYCLIENT_warning;
}

+ (int) fatalError
{
	return (int) KNOTIFYCLIENT_fatalError;
}

+ (int) catastrophe
{
	return (int) KNOTIFYCLIENT_catastrophe;
}

@end
