#include <QObject>

class Reconnect;
class QTimer;
class QEvent;

class BackendConnectionManager : public QObject
{
    Q_OBJECT

  public:
    BackendConnectionManager();
    ~BackendConnectionManager();

    virtual void customEvent(QEvent*);

  protected slots:
    void ReconnectToBackend(void);

  protected:
    Reconnect *m_reconnecting;
    QTimer    *m_reconnect_timer;
    bool       m_first_time;
};
