File indexing completed on 2024-04-14 04:56:27

0001 /*
0002     The helper that mounts and unmounts shares.
0003 
0004     SPDX-FileCopyrightText: 2010-2022 Alexander Reinholdt <alexander.reinholdt@kdemail.net>
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #ifndef SMB4KMOUNTHELPER_H
0009 #define SMB4KMOUNTHELPER_H
0010 
0011 // Qt includes
0012 #include <QObject>
0013 
0014 // KDE includes
0015 #include <KAuth/ActionReply>
0016 
0017 using namespace KAuth;
0018 
0019 class Smb4KMountHelper : public QObject
0020 {
0021     Q_OBJECT
0022 
0023 public Q_SLOTS:
0024     /**
0025      * Mounts a CIFS/SMBFS share.
0026      */
0027     KAuth::ActionReply mount(const QVariantMap &args);
0028 
0029     /**
0030      * Unmounts a CIFS/SMBFS share.
0031      */
0032     KAuth::ActionReply unmount(const QVariantMap &args);
0033 };
0034 
0035 #endif