00001 #include <QObject> 00002 00003 class Reconnect; 00004 class QTimer; 00005 class QEvent; 00006 00007 class BackendConnectionManager : public QObject 00008 { 00009 Q_OBJECT 00010 00011 public: 00012 BackendConnectionManager(); 00013 ~BackendConnectionManager(); 00014 00015 virtual void customEvent(QEvent*); 00016 00017 protected slots: 00018 void ReconnectToBackend(void); 00019 00020 protected: 00021 Reconnect *m_reconnecting; 00022 QTimer *m_reconnect_timer; 00023 bool m_first_time; 00024 };