jce-manager/main/jceWidgets/jcestatusbar.h

54 lines
747 B
C
Raw Normal View History

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
2014-10-13 13:00:58 +00:00
2014-10-12 19:19:43 +00:00
public:
enum jceProgressStatus
{
Ready,
Disconnected,
Connecting,
Connected,
LoggedIn,
Sending,
Recieving,
Inserting,
2014-10-12 22:14:26 +00:00
Done,
2014-10-13 13:00:58 +00:00
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:
2014-10-13 13:00:58 +00:00
QProgressBar * progressBar;
QLabel *iconButtomStatusLabel;
2014-10-12 19:19:43 +00:00
};
#endif // JCESTATUSBAR_H