Cleaned up obsolete code from the engine engine
authorKaj Wallin <kaj.wallin@ixonos.com>
Wed, 28 Apr 2010 09:53:56 +0000 (12:53 +0300)
committerKaj Wallin <kaj.wallin@ixonos.com>
Wed, 28 Apr 2010 09:53:56 +0000 (12:53 +0300)
Reviewed by:

src/engine/engine.cpp
src/engine/engine.h

index 54ab250..c11a171 100644 (file)
@@ -31,7 +31,6 @@ SituareEngine::SituareEngine(QMainWindow *parent)
     m_networkManager = new QNetworkAccessManager;
     m_situareService = new SituareService(this,m_networkManager);
 
-    m_loggedIn = false;
     m_facebookAuthenticator = new FacebookAuthentication();
 
     connect(m_facebookAuthenticator, SIGNAL(credentialsReady(FacebookCredentials)),
@@ -43,7 +42,7 @@ SituareEngine::SituareEngine(QMainWindow *parent)
     connect(m_situareService, SIGNAL(reverseGeoReady(QString)), m_ui, SIGNAL(reverseGeoReady(QString)));
     connect(m_ui, SIGNAL(statusUpdate(QString,bool)), this, SLOT(requestUpdateLocation(QString,bool)));
 
-    start();
+   m_facebookAuthenticator->start();
 }
 
 SituareEngine::~SituareEngine()
@@ -52,16 +51,10 @@ SituareEngine::~SituareEngine()
     delete m_ui;
 }
 
-void SituareEngine::start()
-{
-    m_facebookAuthenticator->start();
-}
-
 void SituareEngine::loginOk()
 
 {
     qDebug() << __PRETTY_FUNCTION__;
-    m_loggedIn = true;
     m_facebookAuthenticator->hide();
     m_ui->show();
     m_situareService->fetchLocations(); // request user locations
index 9e81a86..7df9a3a 100644 (file)
@@ -59,10 +59,6 @@ public:
  * MEMBER FUNCTIONS AND SLOTS
  ******************************************************************************/
 public:
-    /**
-    * @brief Function to start engine component
-    */
-    void start();
 
 public slots:
 
@@ -92,15 +88,6 @@ public slots:
  * SIGNALS
  ******************************************************************************/
 signals:
-    /**
-    * @brief Signal that is emitted when UI must be showed
-    */
-    void engine_showMainWindow();
-
-    /**
-    * @brief Signal that is emitted when UI must be closed
-    */
-    void engine_closeMainWindow();
 
 /*******************************************************************************
  * DATA MEMBERS
@@ -110,7 +97,6 @@ private:
     FacebookAuthentication *m_facebookAuthenticator; ///< Instance for facebook authenticator
     QNetworkAccessManager *m_networkManager; ///< NetworkManager that is passed on to SituareService
     SituareService *m_situareService; ///< Instance of the situare server communication service
-    bool m_loggedIn; ///< Boolean value to indicate whether login has been successfull or not
 };
 
 #endif // ENGINE_H