Contents

About the Author

About the Technical Reviewers

Acknowledgments

Introduction

images Chapter 1: Getting Started

Cascades Programming Model

QML

Signals and Slots

Cascades Application Bootstrap Process

Parent-Child Ownership

Native SDK Setup

Momentics IDE

API Levels

QNX System Information Perspective

Summary

images Chapter 2: QML and JavaScript

Syntax Basics

QML Documents

Import Statements

Object Declarations

QML Basic Types

Creating a Custom Control

XMLHttpRequest Example

SCalc, the Small Calculator

Project Structure

Summary

images Chapter 3: C++, Qt, and Cascades

C++ OOP 101

C++ Class

C++ Inheritance

Polymorphism

Qt Object Model

Meta-Object Compiler (MOC)

QObject

QVariant

Qt Container Classes

Smart Pointers

Exposing C++ Objects to QML

QDeclarativePropertyMap

Exposing QObjects

Model-View-Controller

Application Delegate

QThread

Summary

images Chapter 4: Controls

Control

Containers and Layouts

StackLayout

AbsoluteLayout

DockLayout

Text Controls

Text Styles

Label

TextField

TextArea

Button

Slider

ImageView

Selection Controls

Option

DropDown

RadioGroup

SegmentedControl

Pickers

FilePicker

DateTimePicker

CheckBox and ToggleButton

CheckBox

ToggleButton

ScrollView

System Dialogs, Prompts, and Toasts

SystemDialog

SystemPrompt

SystemToast

Summary

images Chapter 5: Application Structure

Application Templates

Tabbed Pane Template

Navigation Pane Template

List View Template

Defining the Application Structure

Action Bar

Single Page Applications

Attached Objects

Dynamic QML Components

Multiple Page Applications

Summary

images Chapter 6: ListView and DataModel

List Views

ListItemComponent Definition

Detecting Selection

Layout

Creating Visuals in C++

Data Models

Index Paths

Standard Data Models

GroupDataModel

Mapping Item Types

Implementing a Custom Data Model

Updating Data Items with Cascades Controls

Summary

images Chapter 7: HTTP Networking

Qt Networking Classes

QNetworkAccessManager

QNetworkRequest

QNetworkReply

HTTP Networking Examples

HTTP GET

HTTP POST

Handling an HTTP Redirect

Handling Authentication

Weather2

Application Design

Creating the UI

Adding the C++ Implementation

Summary

images Chapter 8: Personal Information Management APIs

Personal Information Management

PIM APIs

Service Types

Service Providers

Accounts

AccountService Class

Contacts API

Calendar API

Message API

Summary

images Chapter 9: Sensors

Sensor Types

Sensors in C++

Determining Sensors Types

Using Sensors in C++

Filters

Sensors in QML

Sensors Coordinate System

Accelerometer and Gyroscope

Accelerometer

Gyroscope

Combining Readings

Summary

images Chapter 10: Invocation Framework

Invoking Core Applications

InvokeManager

InvokeRequest

Target Discovery

Unbound Invocations

Invocable Applications

Declaring an Invocation Target

Handling Invocations

Cards

Sandbox Data Synchronization

Summary

images Appendix: Device File system

File system structure

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset