/***************************************************************************
                            KIPC.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_KIPC.h>
#include <kdeobjc/KDESupport.h>
#include <kdeobjc/KIPC.h>

@implementation  KIPC

- (void *) qt
{
	return _qt;
}

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

- (BOOL) allocatedInObjcWorld
{
	return _allocatedInObjcWorld;
}

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


+ sendMessage: (int)msg w: (unsigned int)w data: (int)data
{
	kde_KIPC_sendMessage((int)msg, (unsigned int)w, (int)data);
	return self;
}

+ sendMessage: (int)msg w: (unsigned int)w 
{
	kde_KIPC_sendMessage((int)msg, (unsigned int)w, 0);
	return self;
}

+ sendMessageAll: (int)msg data: (int)data
{
	kde_KIPC_sendMessageAll((int)msg, (int)data);
	return self;
}

+ sendMessageAll: (int)msg 
{
	kde_KIPC_sendMessageAll((int)msg, 0);
	return self;
}

+ (int) PaletteChanged
{
	return (int) KIPC_PaletteChanged;
}

+ (int) FontChanged
{
	return (int) KIPC_FontChanged;
}

+ (int) StyleChanged
{
	return (int) KIPC_StyleChanged;
}

+ (int) BackgroundChanged
{
	return (int) KIPC_BackgroundChanged;
}

+ (int) SettingsChanged
{
	return (int) KIPC_SettingsChanged;
}

+ (int) IconChanged
{
	return (int) KIPC_IconChanged;
}

+ (int) ToolbarStyleChanged
{
	return (int) KIPC_ToolbarStyleChanged;
}

+ (int) UserMessage
{
	return (int) KIPC_UserMessage;
}

@end
