/***************************************************************************
                            kde_KFileOpenWithHandler.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_KFILEOPENWITHHANDLER
#define KDE_KFILEOPENWITHHANDLER

#include <qtc/qtc_types.h>

#include <kdec/kde_types.h>

/**

 This class handles the displayOpenWithDialog call, made by KRun
 when it has no idea what to do with a URL.
 It displays the open-with dialog box.

 If you use KRun you _need_ to create an instance of KFileOpenWithHandler
 (except if you can make sure you only use it for executables or
  Type=Application desktop files)

 
 @short 
 This class handles the displayOpenWithDialog call, made by KRun
 when it has no idea what to do with a URL.
*/
kde_KFileOpenWithHandler * kde_new_KFileOpenWithHandler();
void kde_del_KFileOpenWithHandler( kde_KFileOpenWithHandler* p );

/** 
 Opens an open-with dialog box for @p urls

*/
int kde_KFileOpenWithHandler_displayOpenWithDialog(kde_KFileOpenWithHandler* instPointer,kde_KURLList* urls);

#endif
