File indexing completed on 2024-04-14 14:20:15
0001 /* This file is part of the KDE libraries 0002 Copyright (c) 2007 Tobias Koenig <tokoe@kde.org> 0003 0004 This library is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU Library General Public 0006 License version 2 as published by the Free Software Foundation. 0007 0008 This library is distributed in the hope that it will be useful, 0009 but WITHOUT ANY WARRANTY; without even the implied warranty of 0010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0011 Library General Public License for more details. 0012 0013 You should have received a copy of the GNU Library General Public License 0014 along with this library; see the file COPYING.LIB. If not, write to 0015 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0016 Boston, MA 02110-1301, USA. 0017 */ 0018 0019 #ifndef KACTION_P_H 0020 #define KACTION_P_H 0021 0022 #include "kaction.h" 0023 #include "kglobalaccel.h" 0024 #include <kshortcut.h> 0025 #include <QCoreApplication> 0026 0027 class KAction; 0028 0029 namespace KAuth 0030 { 0031 class ObjectDecorator; 0032 } 0033 0034 class KActionPrivate 0035 { 0036 public: 0037 KActionPrivate() 0038 : q(nullptr), decorator(nullptr) 0039 { 0040 } 0041 0042 void slotTriggered(); 0043 void _k_emitActionGlobalShortcutChanged(QAction *action, const QKeySequence &seq); 0044 void authStatusChanged(KAuth::Action::AuthStatus status); 0045 0046 void init(KAction *q_ptr); 0047 0048 KAction *q; 0049 0050 KAuth::ObjectDecorator *decorator; 0051 }; 0052 0053 #endif