• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

marble

  • sources
  • kde-4.14
  • kdeedu
  • marble
  • src
  • plugins
  • render
  • twitter
twitter/jsonparser.h
Go to the documentation of this file.
1 //
2 // This file is part of the Marble Virtual Globe.
3 //
4 // This program is free software licensed under the GNU LGPL. You can
5 // find a copy of this license in LICENSE.txt in the top directory of
6 // the source code.
7 //
8 // Copyright 2008 Shashank Singh <shashank.personal@gmail.com>
9 //
10 
11 #ifndef JSONPARSER_H
12 #define JSONPARSER_H
13 
14 #include <QtScript>
15 #include <QList>
16 #include <QObject>
17 #include <QDebug>
18 #include <QScriptValue>
19 #include <QScriptEngine>
29 struct twitterDataStructure
30 {
31 //defining the only parts that are required ,, all oher fields are hence left
32  QString user;
33  QString location;
34  QString text;
35 };
36 
37 struct googleMapDataStructure
38 {
39  qreal lat;
40  qreal lon;
41 };
42 
43 class jsonParser
44 {
45 
46 public:
47  jsonParser();
48 
49  ~jsonParser();
50 
51  twitterDataStructure parseObjectOnPosition(const QString &content, int requiredObjectPosition); //for parsing single object
52 
53  QList<twitterDataStructure> parseAllObjects(const QString &content, int numberOfObjects); //for parsing a list objects
54 
55  googleMapDataStructure geoCodingAPIparseObject(QString content);//google geocoding api parser
56 
57 private:
58  QList <twitterDataStructure> parsedJsonOutput;
59 
60  twitterDataStructure dataStorage;
61 
62  QScriptEngine myEngine;
63 
64 };
65 
66 
67 #endif
jsonParser::geoCodingAPIparseObject
googleMapDataStructure geoCodingAPIparseObject(QString content)
Definition: twitter/jsonparser.cpp:61
twitterDataStructure::text
QString text
Definition: twitter/jsonparser.h:34
jsonParser::~jsonParser
~jsonParser()
Definition: panoramio/jsonparser.cpp:20
QScriptEngine
twitterDataStructure::location
QString location
Definition: twitter/jsonparser.h:33
googleMapDataStructure::lat
qreal lat
Definition: twitter/jsonparser.h:39
twitterDataStructure
This is a generic class built up for parsing Json that is JavaScript Object Notification FIXME: the c...
Definition: twitter/jsonparser.h:29
QString
QList< twitterDataStructure >
twitterDataStructure::user
QString user
Definition: twitter/jsonparser.h:32
googleMapDataStructure::lon
qreal lon
Definition: twitter/jsonparser.h:40
jsonParser::parseObjectOnPosition
panoramioDataStructure parseObjectOnPosition(const QString &content, int requiredObjectPosition)
Definition: panoramio/jsonparser.cpp:24
jsonParser
Definition: panoramio/jsonparser.h:46
jsonParser::parseAllObjects
QList< panoramioDataStructure > parseAllObjects(const QString &content, int number)
Definition: panoramio/jsonparser.cpp:88
jsonParser::jsonParser
jsonParser()
Definition: panoramio/jsonparser.cpp:14
googleMapDataStructure
Definition: twitter/jsonparser.h:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

marble

Skip menu "marble"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal