1 /***************************************************************************
3 * This program is free software; you can redistribute it and/or modify *
4 * it under the terms of the GNU General Public License as published by *
5 * the Free Software Foundation; either version 2 of the License, or *
6 * (at your option) any later version. *
8 * Copyright (C) 2007 by Javier Goday <jgoday@gmail.com>
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . *
19 ***************************************************************************/
24 #include "transfergraph.h"
28 #define MAX_DOWNLOADS_PER_PAGE 5
38 class BarChart
: public TransferGraph
43 BarChart(Plasma::Applet
*parent
);
46 void setTransfers(const QVariantMap
&transfers
);
59 Plasma::BoxLayout
*m_layout
;
60 Plasma::BoxLayout
*m_pagerLayout
;
61 Plasma::PushButton
*m_nextPageButton
;
62 Plasma::PushButton
*m_previousPageButton
;
63 Plasma::Label
*m_totalSizeLabel
;
64 Plasma::Label
*m_pageLabel
;
65 QMap
<QString
, Plasma::ProgressBar
*> m_progressBars
;