1 /* This file is part of the KDE project
3 Copyright (C) 2005 Dario Massarin <nekkar@libero.it>
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
11 #ifndef TRANSFERDETAILS_H
12 #define TRANSFERDETAILS_H
16 #include "core/observer.h"
17 #include "core/transferhandler.h"
18 #include "core/plugin/transferfactory.h"
24 class TransferDetails
: public QWidget
, public TransferObserver
28 TransferDetails(TransferHandler
* transfer
);
31 void transferChangedEvent(TransferHandler
* transfer
);
33 // gets the generic details widget if the transfer factory doesn't override it
34 static QWidget
*detailsWidget(TransferHandler
*transfer
);
36 TransferHandler
* m_transfer
;
37 QVBoxLayout
* m_layout
;
38 QWidget
* m_genericWidget
;
39 QWidget
* m_detailsWidget
;
41 QLabel
* m_statusPixmapLabel
;
42 QLabel
* m_statusTextLabel
;
43 QLabel
* m_completedLabel
;
44 QLabel
* m_speedLabel
;
45 QLabel
* m_remainingTimeLabel
;
46 QProgressBar
* m_progressBar
;