1 /* This file is part of the KDE project
2 Copyright 2000 Simon Hausmann <hausmann@kde.org>
3 Copyright 2000, 2006 David Faure <faure@kde.org>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; see the file COPYING. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
21 #ifndef __KonqMainWindowAdaptor_h__
22 #define __KonqMainWindowAdaptor_h__
24 // !!! Don't regenerate this file, I don't want to lose the method documentation
25 // Use qdbuscpp2xml KonqMainWindowAdaptor.h > org.kde.Konqueror.MainWindow.xml
26 // if you change the API.
28 #include <QtDBus/QtDBus>
33 * DBUS interface for a konqueror main window
35 class KonqMainWindowAdaptor
: public QDBusAbstractAdaptor
38 Q_CLASSINFO("D-Bus Interface", "org.kde.Konqueror.MainWindow")
42 explicit KonqMainWindowAdaptor( KonqMainWindow
* mainWindow
);
43 ~KonqMainWindowAdaptor();
48 * Open a url in this window
49 * @param url the url to open
50 * @param tempFile whether to delete the file after use, usually this is false
52 void openUrl( const QString
& url
, bool tempFile
);
54 * Open a url in a new tab in this window
55 * @param url the url to open
56 * @param tempFile whether to delete the file after use, usually this is false
58 void newTab( const QString
& url
, bool tempFile
);
60 void newTabASN( const QString
& url
, const QByteArray
& startup_id
, bool tempFile
);
62 void splitViewHorizontally();
63 void splitViewVertically();
66 * Reloads the current view.
71 * @return reference to the current KonqView
73 QDBusObjectPath
currentView();
75 * @return reference to the current part
77 QDBusObjectPath
currentPart();
79 QDBusObjectPath
view(int viewNumber
);
81 QDBusObjectPath
part(int partNumber
);
85 KonqMainWindow
* m_pMainWindow
;