You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

widget.h 853B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef WIDGET_H
  2. #define WIDGET_H
  3. #include <QWidget>
  4. #include <QProcess>
  5. #include <QMessageBox>
  6. #include <QPushButton>
  7. #include "intrabocal.h"
  8. #include "epimafia.h"
  9. namespace Ui {
  10. class Widget;
  11. }
  12. class Widget : public QWidget
  13. {
  14. Q_OBJECT
  15. public:
  16. explicit Widget(QWidget *parent = 0);
  17. ~Widget();
  18. protected:
  19. void paintEvent(QPaintEvent *);
  20. public slots:
  21. void search(bool badLogin = false);
  22. void loadUsers();
  23. void askStartUsrMgr();
  24. void startUsrMgr();
  25. private slots:
  26. void intraError(IntraBocal::Error e);
  27. void intraLogged();
  28. void intraSearchFinished(QList<QList<QString> > users);
  29. void resizeToMin();
  30. void processFinished(int);
  31. private:
  32. Ui::Widget *ui;
  33. IntraBocal* m_intra;
  34. EpiUsers m_users;
  35. int m_currentUser;
  36. void clearLayout(QLayout *layout);
  37. };
  38. #endif // WIDGET_H