/***************************************************************************
                            kde_PartBase.h -  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.                       *
 *                                                                         *
 ***************************************************************************/

#ifndef KDE_PARTBASE
#define KDE_PARTBASE

#include <qtc/qtc_types.h>

#include <kdec/kde_types.h>

/**

  Base class for all parts.

 @short Base class for all parts.
 
*/

/** 
  Constructor.
   
*/
kde_PartBase * kde_new_PartBase();

/** 
  Destructor.
   
*/
void kde_del_PartBase( kde_PartBase* p );

/** 
  Internal method. Called by @ref KParts::Part to specify the parent object for plugin objects.

   
*/
void kde_PartBase_setPartObject(kde_PartBase* instPointer,qt_QObject * object);
qt_QObject * kde_PartBase_partObject(kde_PartBase* instPointer);

/** 
 Set the instance (@ref KInstance) for this part.

 Call this *first* in the inherited class constructor,
 because it loads the i18n catalogues.
   
*/
void kde_PartBase_setInstance(kde_PartBase* instPointer,kde_KInstance* instance);

/** 
 Set the instance (@ref KInstance) for this part.

 Call this *first* in the inherited class constructor,
 because it loads the i18n catalogues.
   
*/
void kde_PartBase_setInstance1(kde_PartBase* instPointer,kde_KInstance* instance, int loadPlugins);

#endif
