File indexing completed on 2024-10-13 07:27:48
0001 /* This file is part of the KDE project 0002 0003 Copyright (C) 2005 Dario Massarin <nekkar@libero.it> 0004 0005 This program is free software; you can redistribute it and/or 0006 modify it under the terms of the GNU General Public 0007 License as published by the Free Software Foundation; either 0008 version 2 of the License, or (at your option) any later version. 0009 */ 0010 0011 #ifndef TRANSFERDETAILS_H 0012 #define TRANSFERDETAILS_H 0013 0014 #include <QWidget> 0015 0016 #include "core/plugin/transferfactory.h" 0017 #include "core/transferhandler.h" 0018 #include "ui_transferdetailsfrm.h" 0019 0020 class QVBoxLayout; 0021 0022 class TransferDetails : public QWidget 0023 { 0024 Q_OBJECT 0025 public: 0026 TransferDetails(TransferHandler *transfer); 0027 ~TransferDetails() override; 0028 0029 // gets the generic details widget if the transfer factory doesn't override it 0030 static QWidget *detailsWidget(TransferHandler *transfer); 0031 0032 public Q_SLOTS: 0033 void slotTransferChanged(TransferHandler *transfer, TransferHandler::ChangesFlags flags); 0034 0035 private: 0036 TransferHandler *m_transfer = nullptr; 0037 QVBoxLayout *m_layout = nullptr; 0038 QWidget *m_genericWidget = nullptr; 0039 0040 Ui::TransferDetailsFrm frm; 0041 }; 0042 0043 #endif