1 /* This file is part of the KDE project
3 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
4 * 1999 Lars Knoll <knoll@kde.org>
5 * 1999 Antti Koivisto <koivisto@kde.org>
6 * 2000 Simon Hausmann <hausmann@kde.org>
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public License
19 * along with this library; see the file COPYING.LIB. If not, write to
20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
23 #ifndef __khtml_run_h__
24 #define __khtml_run_h__
26 #include <kparts/browserrun.h>
29 #include <kparts/browserextension.h>
38 class KHTMLRun
: public KParts::BrowserRun
42 KHTMLRun( KHTMLPart
*part
, khtml::ChildFrame
*child
, const KUrl
&url
,
43 const KParts::OpenUrlArguments
& args
,
44 const KParts::BrowserArguments
&browserArgs
,
45 bool hideErrorDialog
);
47 virtual void foundMimeType( const QString
&mimetype
);
48 virtual void handleError( KJob
* job
);
50 //KHTMLPart *htmlPart() const;
53 virtual void save( const KUrl
& url
, const QString
& suggestedFilename
);
54 bool askSave( const KUrl
& url
, KService::Ptr offer
, const QString
& mimeType
, const QString
& suggestedFilename
);
57 khtml::ChildFrame
*m_child
;