File indexing completed on 2024-04-28 04:50:03

0001 /*
0002     SPDX-FileCopyrightText: 2009-2011 Michal Malek <michalm@jabster.pl>
0003     SPDX-FileCopyrightText: 2010 Dario Freddi <drf@kde.org>
0004     SPDX-FileCopyrightText: 1998-2009 Sebastian Trueg <trueg@k3b.org>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later
0007 */
0008 
0009 #ifndef K3BHELPER_H
0010 #define K3BHELPER_H
0011 
0012 #include <QObject>
0013 
0014 #include <KAuth/ActionReply>
0015 
0016 using namespace KAuth;
0017 
0018 namespace K3b {
0019  
0020 class Helper : public QObject
0021 {
0022     Q_OBJECT
0023 
0024 public:
0025     Helper();
0026 
0027 public slots:
0028     /**
0029      * Updates permissions of devices and programs
0030      * @param burningGroup name of the burning group. If not set burning group will not be used
0031      * @param devices list of devices which will have updated permissions
0032      * @param programs list of the programs which will have updated permissions. Each element
0033      *                 of the list is a @see K3b::HelperProgramItem object
0034      */
0035     ActionReply updatepermissions( QVariantMap args );
0036 
0037     /**
0038      * Adds user to a specified group
0039      * @param groupName name of the group
0040      * @param userName name of the user
0041      */
0042     ActionReply addtogroup( QVariantMap args );
0043 };
0044 
0045 } // namespace K3b
0046  
0047 #endif // K3BHELPER_H