equal
deleted
inserted
replaced
10 #include <smfprovider.h> |
10 #include <smfprovider.h> |
11 #include <QMessageBox> |
11 #include <QMessageBox> |
12 #include <QDebug> |
12 #include <QDebug> |
13 #include "ImageDownload.h" |
13 #include "ImageDownload.h" |
14 |
14 |
15 static int tab = 0; |
15 //static int tab = 0; |
16 |
16 |
17 HomeView::HomeView(QString aHeadName): |
17 HomeView::HomeView(QString aHeadName): |
18 iHeadName(aHeadName) |
18 iHeadName(aHeadName) |
19 { |
19 { |
20 //m_providerList = NULL; |
20 //m_providerList = NULL; |
218 } |
218 } |
219 |
219 |
220 |
220 |
221 void HomeView::friendsAvailable(SmfContactList* friendsList, SmfError error, SmfResultPage resultPage) |
221 void HomeView::friendsAvailable(SmfContactList* friendsList, SmfError error, SmfResultPage resultPage) |
222 { |
222 { |
|
223 Q_UNUSED(resultPage) |
223 qDebug()<<"Inside HomeView::friendsAvailable()"; |
224 qDebug()<<"Inside HomeView::friendsAvailable()"; |
224 |
225 |
225 m_friendsList = friendsList; |
226 m_friendsList = friendsList; |
226 if(error) |
227 if(error) |
227 { |
228 { |
233 QMessageBox::information(m_mainWindow,"Error",errStr,QMessageBox::Ok); |
234 QMessageBox::information(m_mainWindow,"Error",errStr,QMessageBox::Ok); |
234 return; |
235 return; |
235 } |
236 } |
236 |
237 |
237 //display friends description |
238 //display friends description |
238 int count = 0; |
|
239 qDebug()<<"Number of friends retrieved = "<<friendsList->count(); |
239 qDebug()<<"Number of friends retrieved = "<<friendsList->count(); |
240 if(friendsList->count() == 0) |
240 if(friendsList->count() == 0) |
241 { |
241 { |
242 QString smferrString("No Friends"); |
242 QString smferrString("No Friends"); |
243 QMessageBox::information(m_mainWindow,"No Friends",smferrString,QMessageBox::Ok); |
243 QMessageBox::information(m_mainWindow,"No Friends",smferrString,QMessageBox::Ok); |
420 QMessageBox::information(m_mainWindow,"Error",errStr,QMessageBox::Ok); |
420 QMessageBox::information(m_mainWindow,"Error",errStr,QMessageBox::Ok); |
421 return; |
421 return; |
422 } |
422 } |
423 |
423 |
424 //display posts details |
424 //display posts details |
425 int count = 0; |
|
426 qDebug()<<"Number of posts retrieved = "<<postsList->count(); |
425 qDebug()<<"Number of posts retrieved = "<<postsList->count(); |
427 if(postsList->count() == 0) |
426 if(postsList->count() == 0) |
428 { |
427 { |
429 QString smferrString("No Posts"); |
428 QString smferrString("No Posts"); |
430 QMessageBox::information(m_mainWindow,"No Posts",smferrString,QMessageBox::Ok); |
429 QMessageBox::information(m_mainWindow,"No Posts",smferrString,QMessageBox::Ok); |
517 QMessageBox::information(m_mainWindow,"Error",errStr,QMessageBox::Ok); |
516 QMessageBox::information(m_mainWindow,"Error",errStr,QMessageBox::Ok); |
518 return; |
517 return; |
519 } |
518 } |
520 |
519 |
521 //display album details |
520 //display album details |
522 int count = 0; |
|
523 qDebug()<<"Number of albums retrieved = "<<albums->count(); |
521 qDebug()<<"Number of albums retrieved = "<<albums->count(); |
524 if(albums->count() == 0) |
522 if(albums->count() == 0) |
525 { |
523 { |
526 QString smferrString("No Albums"); |
524 QString smferrString("No Albums"); |
527 QMessageBox::information(m_mainWindow,"No Albums",smferrString,QMessageBox::Ok); |
525 QMessageBox::information(m_mainWindow,"No Albums",smferrString,QMessageBox::Ok); |
585 } |
583 } |
586 |
584 |
587 |
585 |
588 void HomeView::activitiesAvailable(SmfActivityEntryList* activitiesList, SmfError error, SmfResultPage resultPage) |
586 void HomeView::activitiesAvailable(SmfActivityEntryList* activitiesList, SmfError error, SmfResultPage resultPage) |
589 { |
587 { |
|
588 Q_UNUSED(resultPage) |
590 qDebug()<<"Inside HomeView::activitiesAvailable()"; |
589 qDebug()<<"Inside HomeView::activitiesAvailable()"; |
591 |
590 |
592 m_activitiesList = activitiesList; |
591 m_activitiesList = activitiesList; |
593 qDebug()<<"Number of activities retrieved = "<<activitiesList->count(); |
592 qDebug()<<"Number of activities retrieved = "<<activitiesList->count(); |
594 if(error) |
593 if(error) |
601 QMessageBox::information(m_mainWindow,"Error",errStr,QMessageBox::Ok); |
600 QMessageBox::information(m_mainWindow,"Error",errStr,QMessageBox::Ok); |
602 return; |
601 return; |
603 } |
602 } |
604 |
603 |
605 //display activity description |
604 //display activity description |
606 int count = 0; |
|
607 qDebug()<<"Number of activities retrieved = "<<activitiesList->count(); |
605 qDebug()<<"Number of activities retrieved = "<<activitiesList->count(); |
608 |
606 |
609 if(activitiesList->count() == 0) |
607 if(activitiesList->count() == 0) |
610 { |
608 { |
611 QString smferrString("No Recent Activities"); |
609 QString smferrString("No Recent Activities"); |
691 } |
689 } |
692 |
690 |
693 |
691 |
694 void HomeView::picturesAvailable(SmfPictureList* picList, SmfError error, SmfResultPage resultPage) |
692 void HomeView::picturesAvailable(SmfPictureList* picList, SmfError error, SmfResultPage resultPage) |
695 { |
693 { |
|
694 Q_UNUSED(resultPage) |
696 qDebug()<<"Inside HomeView::picturesAvailable()"; |
695 qDebug()<<"Inside HomeView::picturesAvailable()"; |
697 |
696 |
698 m_picList = picList; |
697 m_picList = picList; |
699 if(error) |
698 if(error) |
700 { |
699 { |
706 QMessageBox::information(m_mainWindow,"Error",errStr,QMessageBox::Ok); |
705 QMessageBox::information(m_mainWindow,"Error",errStr,QMessageBox::Ok); |
707 return; |
706 return; |
708 } |
707 } |
709 |
708 |
710 //display pic description |
709 //display pic description |
711 int count = 0; |
|
712 qDebug()<<"Number of pic retrieved = "<<picList->count(); |
710 qDebug()<<"Number of pic retrieved = "<<picList->count(); |
713 |
711 |
714 QMap<QString, QUrl> urlMap; |
712 QMap<QString, QUrl> urlMap; |
715 foreach(SmfPicture pic, *picList) |
713 foreach(SmfPicture pic, *picList) |
716 { |
714 { |