Some fixes to connection manager.
[jenirok] / src / common / connectionmanager.h
index 34ec24c..b5a2c3c 100644 (file)
@@ -55,6 +55,7 @@ public:
     bool scanConnections(QList<Connection>& connections, ConnectionType type = NO_TYPE);
     Error error() const;
     static unsigned int const TIMEOUT = 15000;
+    static unsigned int const WAIT_AFTER_CONNECT = 400;
 
 protected:
     virtual void timerEvent(QTimerEvent* event);
@@ -65,6 +66,7 @@ private slots:
     void scanResult(const QDBusMessage& rep);
 
 private:
+    void sleep(unsigned int ms);
     bool waitSignal(bool* ready);
     bool stateReady_;
     bool connectionReady_;