xbmc
Static Public Member Functions | List of all members
ADDON::CAddonDatabaseSerializer Class Reference

Addon content serializer/deserializer. More...

#include <AddonDatabase.h>

Static Public Member Functions

static std::string SerializeMetadata (const CAddonInfo &addon)
 
static void DeserializeMetadata (const std::string &document, CAddonInfoBuilderFromDB &builder)
 

Detailed Description

Addon content serializer/deserializer.

Used to save data from the add-on in the database using json format. The corresponding field in SQL is "addons" for "metadata".

Warning
Changes in the json format need a way to update the addon database for users, otherwise problems may occur when reading the old content.

The documentation for this class was generated from the following files: