class Variant


Module nepomuk
Namespace Nepomuk
Class Variant
Inherits
\class Variant variant.h Nepomuk/Variant

The %Nepomuk Variant extends over QVariant by introducing direct support for Resource embedding, automatic list conversion and a restricted set of supported types.

Important differences are:

  • No new types can be added other than the ones that have defined
  • constructors and get-methods
  • Variant supports automatic list generation. For example a Variant
  • containing an int also can produce an int-list via the toIntList method.
  • toString and toStringList always return a valid list and do automatic
  • conversion from the actual type used in the Variant. Thus, if one only needs to display the value in a Variant toString and toStringList do the job.

    Author Sebastian Trueg



    methods