[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/marble/src/plugins/render/twitter
From:       Shashank Singh <shashank.personal () gmail ! com>
Date:       2009-02-05 14:00:51
Message-ID: 1233842451.189207.4546.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 921676 by ssingh:

now twitter plugin is using GeoDataCoordinates for it's lattitudes and
longitudes


 M  +5 -3      twitterPlugin.cpp  
 M  +9 -9      twitterPlugin.h  


--- trunk/KDE/kdeedu/marble/src/plugins/render/twitter/twitterPlugin.cpp \
#921675:921676 @@ -93,7 +93,9 @@
 
     if (/*privateFlagForRenderingTwitts >= */1) {
         for (int counter = 0;counter < 4;counter++);
-            /*painter->drawAnnotation(twitsWithLocation[counter].location,
+painter->drawAnnotation(GeoDataCoordinates(0.0,0.0),"hiiiiiiiiii");            
+
+/*painter->drawAnnotation(twitsWithLocation[counter].location,
 				    parsedData[counter].user + " said \n"
 				    + parsedData[counter].text,
 				    QSize(140, 140) ;*/
@@ -133,8 +135,8 @@
 
 void twitterPlugin::findLatLonOfStreetAddress(QString streetAddress)
 {
-    m_downloadManager->addJob("http://maps.google.com/maps/geo?q=" + streetAddress + \
"&output=json&key=ABQIAAAASD_v8YRzG0tBD18730KjmRTxoHoIpYL45xcSRJH0O7cH64DuXRT7rQeRcgCLAhjkteQ8vkWAATM_JQ", \
                streetAddress, streetAddress);
-    qDebug() << "twitter added Geo Coding job for " << streetAddress;
+//    m_downloadManager->addJob("http://maps.google.com/maps/geo?q=" + streetAddress \
+ "&output=json&key=ABQIAAAASD_v8YRzG0tBD18730KjmRTxoHoIpYL45xcSRJH0O7cH64DuXRT7rQeRcgCLAhjkteQ8vkWAATM_JQ", \
streetAddress, streetAddress); +//    qDebug() << "twitter added Geo Coding job for " \
<< streetAddress;  }
 
 void twitterPlugin::slotGeoCodingReplyRecieved(QString relativeUrlString, QString \
                id)
--- trunk/KDE/kdeedu/marble/src/plugins/render/twitter/twitterPlugin.h #921675:921676
@@ -19,9 +19,9 @@
 #include <QtCore/QObject>
 #include <QFile>
 #include <QTextStream>
-//#include "../lib/HttpDownloadManager.h"
-//#include "../lib/CacheStoragePolicy.h"
-//#include "jsonparser.h"
+#include "../lib/HttpDownloadManager.h"
+#include "../lib/CacheStoragePolicy.h"
+#include "jsonparser.h"
 #include "MarbleRenderPlugin.h"
 #include "MarbleDirs.h"
 #include "GeoPainter.h"
@@ -34,10 +34,10 @@
  * @short The class that specifies the a simple panormaio plugin
  *
  */
-/*struct twitterStructure {
+struct twitterStructure {
     QString twitter ;
     GeoDataCoordinates location;
-};*/
+};
 
 class twitterPlugin : public MarbleRenderPlugin
 {
@@ -74,19 +74,19 @@
 public slots:
     void slotJsonDownloadComplete(QString , QString);   //completed download of json \
                reply fom panoramio
     void slotGeoCodingReplyRecieved(QString , QString);   //completed download of \
                image
-
+*/
 signals:
     void statusMessageForImageDownloadingProcess(QString);
 private:
     CacheStoragePolicy *m_storagePolicy;
     HttpDownloadManager *m_downloadManager;
     jsonParser twitterJsonParser;
-    void downloadtwitter(int, int, qreal, qreal, qreal, qreal);
+ //   void downloadtwitter(int, int, qreal, qreal, qreal, qreal);
     QList <twitterStructure > twitsWithLocation;//this list will hold pointers to \
TWITT we have downloaded successfully figured out :)  QList <twitterDataStructure> \
                parsedData;
-    void findLatLonOfStreetAddress(QString streetAddress);
+ //   void findLatLonOfStreetAddress(QString streetAddress);
     int privateFlagForRenderingTwitts;//this flag is one when globe has an Image  \
                (downloaded or already there in cache)
-*/
+
 };
 
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic