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 ()

Constructor.

The revision number will be zero.

Since:

BlackBerry 10.2.0

NumericRevision (
  • quint64revision)

Constructor.

Parameters
revision

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

Since:

BlackBerry 10.2.0

NumericRevision (

Copy constructor.

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, else false.

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.

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 ()

String representation of this revision for debugging.

Return:

the string representation.

Since:

BlackBerry 10.2.0

Revision ()Inherited

Constructor.

Since:

BlackBerry 10.2.0

Last modified: 2014-03-13

comments powered by Disqus