Go to the documentation of this file.
6 #ifndef CUSTOMDB_TOOLBOX_H
7 #define CUSTOMDB_TOOLBOX_H
int DCA_MODULE_ID_TYPE
Type for module ids.
The Custom Database module, used to create new custom databases or open existing custom databases.
UrlCustomDb openCustomDb(const DbConnection &aDbConnection) const
Creates a UrlCustomDb instance that is connected to the database defined by the given DbConnection.
static UrlCustomDbModule create(const DcaInstance &aDcaInstance, const License &aLicense)
Loads and initializes the custom database module.
void removeUrl(const std::string &aUrlString)
Removes the given URL string from the database, if present.
A container class that allows access to the contained Categories, Groups and Locales.
Encapsulates the Custom Database maintenance interface.
Database connection class for a local or remote database.
void setUrl(const std::string &aUrlString, const CategorySet &categories)
Updates or creates categories for the given URL string.
Use a License to initialize a classification package or a toolbox package.
FunctionResult createCustomDb(const std::string &aDatabaseFolder) const
Creates a new custom database file in the given folder.
This header includes all header files of the DCA Base Package.
Encapsulates the init and deinit of the DCA API.
std::set< int > CategorySet
Basic container used for categorizations of URLs. This represents a set of category ids.
CategoriesInfo createCategoriesInfo(const std::string &categoriesXmlFolder) const
Creates a CategoriesInfo object by using the provided categoriesXmlFolder.
bool getUrl(const std::string &aUrlString, CategorySet &foundCategories) const
Retrieves the categories of URL string (if found).
#define PRIVATE_PTR
Type for private pointer implementations, for internal use only.
Standard function result.
static DCA_MODULE_ID_TYPE ID
The unique ID of the Custom DB module.