serverstatuswidget.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #ifndef SERVERSTATUSWIDGET_H
  2. #define SERVERSTATUSWIDGET_H
  3. #include <QWidget>
  4. #include <QTimer>
  5. #include <QByteArray>
  6. #include "models/downloader.h"
  7. namespace Ui {
  8. class ServerStatusWidget;
  9. }
  10. class ServerStatusWidget : public QWidget
  11. {
  12. Q_OBJECT
  13. public:
  14. explicit ServerStatusWidget(QWidget *parent = 0);
  15. ~ServerStatusWidget();
  16. public slots:
  17. void updateFontsSizes();
  18. signals:
  19. void showServersTooltip(QString tooltip);
  20. void showNoTooltip();
  21. protected:
  22. void resizeEvent(QResizeEvent *event) override;
  23. virtual void leaveEvent(QEvent * event) override;
  24. virtual void enterEvent(QEvent * event) override;
  25. public slots:
  26. void updateServerStatus();
  27. private slots:
  28. void updateStatus();
  29. void updateTechWorksMessage();
  30. private:
  31. QString server_status_tooltip_ = "Информация о состоянии серверов загружается...";
  32. QTimer update_timer;
  33. Downloader status_downloader;
  34. QByteArray status_data;
  35. Downloader tech_work_message_downloader;
  36. QByteArray tech_work_message_data;
  37. const QString open_color = "color: rgb(0, 170, 0);";
  38. const QString closed_color = "color: rgb(255, 0, 0);";
  39. private:
  40. const QStringList servers_list = {"Anor",
  41. "Arkenstone",
  42. "Belegaer",
  43. "Brandywine",
  44. "Bullroarer",
  45. "Crickhollow",
  46. "Evernight",
  47. "Gladden",
  48. "Gwaihir",
  49. "Ithil",
  50. "Landroval",
  51. "Laurelin",
  52. "Sirannon"};
  53. Ui::ServerStatusWidget *ui;
  54. bool servers_disabled;
  55. };
  56. #endif // SERVERSTATUSWIDGET_H
PANIC: session(release): write data/sessions/1/e/1e64a0d2cc854dc5: no space left on device

PANIC

session(release): write data/sessions/1/e/1e64a0d2cc854dc5: no space left on device
github.com/go-macaron/session@v0.0.0-20190805070824-1a3cdc6f5659/session.go:199 (0x8b2934)
gopkg.in/macaron.v1@v1.3.9/context.go:79 (0x83d0a0)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/context.go:112 (0x84fdb5)
gopkg.in/macaron.v1@v1.3.9/recovery.go:161 (0x84fda8)
gopkg.in/macaron.v1@v1.3.9/logger.go:40 (0x840c73)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:157 (0x80ab07)
github.com/go-macaron/inject@v0.0.0-20160627170012-d8a0b8677191/inject.go:135 (0x80a8a8)
gopkg.in/macaron.v1@v1.3.9/context.go:121 (0x83d1f8)
gopkg.in/macaron.v1@v1.3.9/router.go:187 (0x850fc6)
gopkg.in/macaron.v1@v1.3.9/router.go:303 (0x8493e5)
gopkg.in/macaron.v1@v1.3.9/macaron.go:220 (0x841fca)
net/http/server.go:2836 (0x7a79b2)
net/http/server.go:1924 (0x7a341b)
runtime/asm_amd64.s:1373 (0x46f9f0)