NumericRevision

Since: BlackBerry 10.2.0

#include <bb/cascades/datamanager/NumericRevision>

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

A Revision which uses a 64-bit unsigned integer as the revision.


Overview

Inheritance

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

Public Functions Index

NumericRevision ()
NumericRevision (quint64 revision)
NumericRevision (const NumericRevision &other)
virtual ~NumericRevision ()
virtual boolequals (const Revision &other) const
virtual boolgreaterThan (const Revision &other) const
virtual Revision *newRevision (const Revision &other) const
virtual QStringtoString () const
Revision ()Inherited

Public Functions

NumericRevision ()

Constructs a NumericRevision.

Since:

BlackBerry 10.2.0

NumericRevision (
  • quint64revision)

Constructs a NumericRevision given a revision number.

Parameters
revision

The numeric revision number as a 64-bit unsigned integer.

Since:

BlackBerry 10.2.0

NumericRevision (

Copy constructor.

This function constructs a NumericRevision containing exactly the same values as the provided NumericRevision.

Parameters
other

The NumericRevision object to copy data from.

Since:

BlackBerry 10.2.0

virtual~NumericRevision ()

Destructor.

Since:

BlackBerry 10.2.0

virtual 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

virtual 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

virtualRevision * 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

virtualQString toString ()

Convert this revision to a string representation for debugging.

Return:

The string representation.

Since:

BlackBerry 10.2.0

Revision ()Inherited

Constructs a Revision.

Since:

BlackBerry 10.2.0

Last modified: 2014-06-24



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

comments powered by Disqus