File indexing completed on 2025-01-05 04:36:20

0001 /*
0002  * SPDX-FileCopyrightText: 2020 David Barchiesi <david@barchie.si>
0003  *
0004  * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 #ifndef GDRIVEPROPERTIESPLUGIN_H
0008 #define GDRIVEPROPERTIESPLUGIN_H
0009 
0010 #include <KPropertiesDialog>
0011 #include <KPropertiesDialogPlugin>
0012 
0013 #include "ui_gdrivepropertiesplugin.h"
0014 
0015 class GDrivePropertiesPlugin : public KPropertiesDialogPlugin
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit GDrivePropertiesPlugin(QObject *parent, const QList<QVariant> &args);
0020     ~GDrivePropertiesPlugin() override = default;
0021 
0022 private:
0023     QWidget m_widget;
0024     Ui::GDrivePropertiesWidget m_ui;
0025     KFileItem m_item;
0026 
0027     void showEntryDetails(const KIO::UDSEntry &entry);
0028 
0029 private Q_SLOTS:
0030     void statJobFinished(KJob *job);
0031 };
0032 
0033 #endif // GDRIVEPROPERTIESPLUGIN_H