Fix crash if key bindings specified in profile cannot be found. Improve
[personal-kdebase.git] / apps / lib / konq / konq_menuactions_p.h
blob8645bdbeb016f485be9087f93804c9e6a72657be
1 /* This file is part of the KDE project
2 Copyright (C) 1998-2007 David Faure <faure@kde.org>
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 Boston, MA 02110-1301, USA.
20 #ifndef KONQ_MENUACTIONS_P_H
21 #define KONQ_MENUACTIONS_P_H
23 #include "konq_popupmenuinformation.h"
24 #include <kfileitem.h>
25 #include <kactioncollection.h>
26 #include <QActionGroup>
27 #include <QObject>
28 #include <kserviceaction.h>
29 #include <kservice.h>
31 typedef QList<KServiceAction> ServiceList;
33 class KonqMenuActionsPrivate : public QObject
35 Q_OBJECT
36 public:
37 KonqMenuActionsPrivate();
39 int insertServicesSubmenus(const QMap<QString, ServiceList>& list, QMenu* menu, bool isBuiltin);
40 int insertServices(const ServiceList& list, QMenu* menu, bool isBuiltin);
42 private Q_SLOTS:
43 // For servicemenus
44 void slotExecuteService(QAction* act);
45 // For "open with" applications
46 void slotRunApplication(QAction* act);
47 void slotOpenWithDialog();
49 public:
50 KonqPopupMenuInformation m_info;
51 QActionGroup m_executeServiceActionGroup;
52 QActionGroup m_runApplicationActionGroup;
53 KActionCollection m_ownActions; // TODO connect to statusbar for help on actions
56 Q_DECLARE_METATYPE(KService::Ptr)
57 Q_DECLARE_METATYPE(KServiceAction)
59 #endif /* KONQ_MENUACTIONS_P_H */