Giter Site home page Giter Site logo

odata-bb10's Introduction

odatabb10

Open Data Protocol (OData version 4.0) library for BlackBerry 10 (BB10) Cascades apps. This library makes it easy to build native BB10 apps that consume OData services.
For information about OData, refer to http://www.odata.org/

Features

  • Create/read/update/delete entities
  • Bind operation
  • Create/read/update/delete navigation links
  • Format switching(JSON, ATOM)
  • Filtering support for System Query Options: $filter, $count, $orderby, $skip, $top and $search. Just use the filterModel() function with a map of key : value pairs for each query option.

Building this Sample

Import both OData and TestHarness projects into your NDK workspace. The OData project is the library itself and TestHarness is a simple application that shows how you might use the OData library.

Requirements

  • BlackBerry Cascades Native SDK + QDE
  • A BlackBerry 10 Device or Simulator

Build the Application

  1. In order to utilize the writeback functionality of OData you need a writeable source. Visit this link ( http://services.odata.org/V4/(S(readwrite))/OData/OData.svc/ ) to generate a private sandbox to edit. Copy the generated url in the address bar and then place it in the marked location in TestHarness/src/applicationui.cpp. It should look like this http://services.odata.org/V4/(S(xxxxxxxxxxxxxxxxxxxxxxxx))/OData/OData.svc/ where the x's are a set of random letters and numbers.

  2. From the QDE build the application for the target you need.

  3. Deploy to the target.

How to use For Your Own Application

To integrate into your app:

  • Add this to your .pro file
CONFIG += odata
  • If your project is not in the same folder as the odata library, edit your Makefile
QMAKEFEATURES = <path to odata library project>
  • Option 2. You can simply copy the src/ directory from the OData project into a folder in your project and directly build this library into your project. You may need to add the QtNetwork library to your includes/LIBs if you are not using it already.

odata-bb10's People

Contributors

ebourne avatar pelegri avatar timwindsor avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.