Playlist support (basic) and download progress dialogs
[groove] / grooveprogressbar.cpp
1 #include "grooveprogressbar.h"
2 #include "qmaemo5rotator.h"
3 grooveProgressBar::grooveProgressBar(QWidget *parent) :
4     QDialog(parent)
5 {
6     bar = new QProgressBar();
7     bar->setMaximum(100);
8     bar->setValue(0);
9     lay = new QHBoxLayout();
10     lay->addWidget(bar);
11     this->setLayout(lay);
12     this->setWindowTitle("Downloading /  Buffering");
13     //rot = new QMaemo5Rotator(QMaemo5Rotator::AutomaticBehavior,this);
14 }
15 void grooveProgressBar::setMaximum(int maximum)
16 {
17     bar->setMaximum(maximum);
18 }
19 int grooveProgressBar::maximum()
20 {
21    return bar->maximum();
22 }
23
24 void grooveProgressBar::setValue(int position)
25 {
26     bar->setValue(position);
27 }