Revision

Since: BlackBerry 10.2.0

#include <bb/cascades/datamanager/Revision>

To link against this class, add the following line to your .pro file: LIBS += -lbbcascadesdatamanager

This is an interface for objects that can be compared, to determine whether the associated data has changed.


Overview

Inheritance

bb::cascades::datamanager::Revision
bb::cascades::datamanager::NumericRevision

Public Functions Index

Revision ()
virtual ~Revision ()
boolequals (const Revision &other) const =0
boolgreaterThan (const Revision &other) const =0
Revision *newRevision (const Revision &other) const =0
QStringtoString () const =0

Public Functions

Revision ()

Constructs a Revision.

Since:

BlackBerry 10.2.0

virtual~Revision ()

Destructor.

Since:

BlackBerry 10.2.0

bool equals (

Check for equality.

Parameters
other

The revision to compare against.

Return:

True if the revisions are equal, false otherwise.

Since:

BlackBerry 10.2.0

bool greaterThan (

Check whether this revision is greater (newer) than the other.

Parameters
other

The revision to compare against.

Return:

True if this object is greater (newer) than the given object, false otherwise.

Since:

BlackBerry 10.2.0

Revision * newRevision (

Return a new revision based on this revision and another revision.

The revision that is returned should be greater than or equal to both this revision object, and other.

Parameters
other

Another revision provider.

Return:

A pointer to the newly created Revision object.

Since:

BlackBerry 10.2.0

QString toString ()

Convert this revision to a string representation for debugging.

Return:

The string representation.

Since:

BlackBerry 10.2.0

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus