Show invite menu in wlm chat window immediately
[kdenetwork.git] / kget / ui / transferdetails.h
blobe7cde2fb6f9fb45afd022cfbe0df61360f191019
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.
9 */
11 #ifndef TRANSFERDETAILS_H
12 #define TRANSFERDETAILS_H
14 #include <QWidget>
16 #include "core/observer.h"
17 #include "core/transferhandler.h"
18 #include "core/plugin/transferfactory.h"
20 class QLabel;
21 class QProgressBar;
22 class QVBoxLayout;
24 class TransferDetails : public QWidget, public TransferObserver
26 Q_OBJECT
27 public:
28 TransferDetails(TransferHandler * transfer);
29 ~TransferDetails();
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);
35 private:
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;
49 #endif