/***************************************************************************
                            kde_KDEDesktopMimeType.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_KDEDESKTOPMIMETYPE
#define KDE_KDEDESKTOPMIMETYPE

#include <qtc/qtc_types.h>

#include <kdec/kde_types.h>

/**


 @short Mimetype for a .desktop file
 Handles mount/umount icon, and user-defined properties.
*/
#define KDEDESKTOPMIMETYPE_ST_MOUNT	0
#define KDEDESKTOPMIMETYPE_ST_UNMOUNT	1
#define KDEDESKTOPMIMETYPE_ST_USER_DEFINED	2
kde_KDEDesktopMimeType * kde_new_KDEDesktopMimeType(kde_KDesktopFile* config);
kde_KDEDesktopMimeType * kde_new_KDEDesktopMimeType1(qt_QDataStream * _str, int offset);
qt_QString * kde_KDEDesktopMimeType_icon(kde_KDEDesktopMimeType* instPointer,qt_QString * _url, int _is_local);
qt_QString * kde_KDEDesktopMimeType_icon1(kde_KDEDesktopMimeType* instPointer,kde_KURL* _url, int _is_local);
qt_QPixmap * kde_KDEDesktopMimeType_pixmap(kde_KDEDesktopMimeType* instPointer,kde_KURL* _url, int _group, int _force_size, int _state, qt_QString* _path);
qt_QString * kde_KDEDesktopMimeType_comment(kde_KDEDesktopMimeType* instPointer,qt_QString * _url, int _is_local);
qt_QString * kde_KDEDesktopMimeType_comment1(kde_KDEDesktopMimeType* instPointer,kde_KURL* _url, int _is_local);

/** 

   
*/
//void kde_KDEDesktopMimeType_executeService( qt_QString * _path, kde_KDEDesktopMimeType_Service* _service);

/** 
 Execute @p service on the list of @p urls
   
*/
//void kde_KDEDesktopMimeType_executeService1( kde_KURLList* urls, kde_KDEDesktopMimeType_Service* service);

/** 
 Invokes the default action for the desktop entry. If the desktop
 entry is not local, then only false is returned. Otherwise we
 would create a security problem. Only types Link and Mimetype
 could be followed.

*/
long kde_KDEDesktopMimeType_run( kde_KURL* _url, int _is_local);
qt_QPixmap * kde_KDEDesktopMimeType_pixmap1(kde_KDEDesktopMimeType* instPointer,int a, int b, int c, qt_QString* d);
//long kde_KDEDesktopMimeType_runFSDevice( kde_KURL* _url, kde_KSimpleConfig* cfg);
//long kde_KDEDesktopMimeType_runApplication( kde_KURL* _url, qt_QString * _serviceFile);
//long kde_KDEDesktopMimeType_runLink( kde_KURL* _url, kde_KSimpleConfig* cfg);
//long kde_KDEDesktopMimeType_runMimeType( kde_KURL* _url, kde_KSimpleConfig* cfg);

#endif
