2014-10-12 19:19:43 +00:00
|
|
|
#ifndef JCESTATUSBAR_H
|
|
|
|
#define JCESTATUSBAR_H
|
|
|
|
|
|
|
|
|
2014-10-12 22:14:26 +00:00
|
|
|
#include <QDebug>
|
2014-10-12 19:19:43 +00:00
|
|
|
#include <QStatusBar>
|
|
|
|
#include <QProgressBar>
|
|
|
|
#include <QLabel>
|
|
|
|
|
|
|
|
#define STATUS_ICON_HEIGH 35
|
|
|
|
|
|
|
|
class jceStatusBar : public QStatusBar
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
|
|
|
|
enum jceProgressStatus
|
|
|
|
{
|
|
|
|
Ready,
|
|
|
|
Disconnected,
|
|
|
|
Connecting,
|
|
|
|
Connected,
|
|
|
|
LoggedIn,
|
|
|
|
Sending,
|
|
|
|
Recieving,
|
|
|
|
Inserting,
|
2014-10-12 22:14:26 +00:00
|
|
|
Done,
|
|
|
|
ERROR
|
2014-10-12 19:19:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
jceStatusBar(QWidget *parent = 0);
|
|
|
|
|
|
|
|
void setIconConnectionStatus(jceProgressStatus update);
|
|
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void progressHasPacket(int num);
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void setProgressValue(int val);
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void addValueToProgressBar(int value);
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
|
|
QProgressBar * progressBar;
|
|
|
|
QLabel *iconButtomStatusLabel;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // JCESTATUSBAR_H
|