setWindowTitle(tr("List view"));
this->hide();
- m_facebookAuthenticator = new FacebookAuthentication(this);
- connect(m_facebookAuthenticator, SIGNAL(credentialsReady()), this, SLOT(loginOK()));
- connect(m_facebookAuthenticator, SIGNAL(userExit()), this, SLOT(loginScreenClosed()));
- m_facebookAuthenticator->start();
+ //m_facebookAuthenticator = new FacebookAuthentication(this);
+ //connect(m_facebookAuthenticator, SIGNAL(credentialsReady(FacebookCredentials)), this, SLOT(loginOK()));
+ //connect(m_facebookAuthenticator, SIGNAL(userExit()), this, SLOT(loginScreenClosed()));
+ // m_facebookAuthenticator->start();
m_locationDialog = new UpdateLocationDialog(this);
connect(m_listViewScreen->m_personalInfo,SIGNAL(launchMessageUpdate()),
m_networkManager = new QNetworkAccessManager;
m_situareService = new SituareService(this,m_networkManager);
+
+ connect(this, SIGNAL(userLocationReady(User*)),
+ m_mapViewScreen, SLOT(userLocationReady(User*)));
+ connect(this, SIGNAL(friendsLocationsReady(QList<User*>&)),
+ m_mapViewScreen, SLOT(friendsLocationsReady(QList<User*>&)));
}
MainWindow::~MainWindow()
{
qDebug() << __PRETTY_FUNCTION__ << m_loggedIn;
m_loggedIn = true;
- m_facebookAuthenticator->close();
+ //m_facebookAuthenticator->close();
}
+
+//void MainWindow::userLocationReady(User &user)
+//{
+// emit userLocationReady(user);
+//}
+//
+//void MainWindow::friendsLocationsReady(QList<User *>friendsList)
+//{
+// emit friendsLocationsReady(friendsList);
+//}
+