/***************************************************************************
                            kde_KOpenWithDlg.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_KOPENWITHDLG
#define KDE_KOPENWITHDLG

#include <qtc/qtc_types.h>

#include <kdec/kde_types.h>

/**

 "Open with" dialog box.
 Used automatically by KRun, and used by libkonq.

 @author David Faure <faure@kde.org>
 
 @short 
 "Open with" dialog box.
*/

/** 
 Create a dialog that asks for a application to open a given
 URL(s) with.

*/
kde_KOpenWithDlg * kde_new_KOpenWithDlg(kde_KURLList* urls, qt_QWidget * parent);

/** 
 Create a dialog that asks for a application to open a given
 URL(s) with.

*/
kde_KOpenWithDlg * kde_new_KOpenWithDlg1(kde_KURLList* urls, qt_QString * text, qt_QString * value, qt_QWidget * parent);

/** 
 Create a dialog to select a service for a given service type.
 Note that this dialog doesn't apply to URLs.

*/
kde_KOpenWithDlg * kde_new_KOpenWithDlg2(qt_QString * serviceType, qt_QString * value, qt_QWidget * parent);

/** 
 Destructor
     
*/
void kde_del_KOpenWithDlg( kde_KOpenWithDlg* p );

/** 

*/
qt_QString * kde_KOpenWithDlg_text(kde_KOpenWithDlg* instPointer);

/** 

*/
//kde_KService_Ptr* kde_KOpenWithDlg_service(kde_KOpenWithDlg* instPointer);

/** 
 The slot for clearing the edit widget
    
*/
void kde_KOpenWithDlg_slotClear(kde_KOpenWithDlg* instPointer);
void kde_KOpenWithDlg_slotSelected(kde_KOpenWithDlg* instPointer,qt_QString * _name, qt_QString * _exec);
void kde_KOpenWithDlg_slotHighlighted(kde_KOpenWithDlg* instPointer,qt_QString * _name, qt_QString * _exec);
void kde_KOpenWithDlg_slotTextChanged(kde_KOpenWithDlg* instPointer);
void kde_KOpenWithDlg_slotTerminalToggled(kde_KOpenWithDlg* instPointer,int arg1);
void kde_KOpenWithDlg_slotDbClick(kde_KOpenWithDlg* instPointer);
void kde_KOpenWithDlg_slotOK(kde_KOpenWithDlg* instPointer);

/** 
 Determine service type from URLs
     
*/
void kde_KOpenWithDlg_setServiceType(kde_KOpenWithDlg* instPointer,kde_KURLList* _urls);

/** 
 Create a dialog that asks for a application to open a given
 URL(s) with.

*/
void kde_KOpenWithDlg_init(kde_KOpenWithDlg* instPointer,qt_QString * text, qt_QString * value);

/** 
 Reimplemented from QDialog::accept() to save history of the combobox
     
*/
void kde_KOpenWithDlg_accept(kde_KOpenWithDlg* instPointer);

#endif
