Akonadi::Server::PartTypeHelper

Akonadi::Server::PartTypeHelper Namespace Reference

Functions

Query::Condition conditionFromFqName (const QString &fqName)
 
Query::Condition conditionFromFqNames (const QStringList &fqNames)
 
template<template< typename > class T>
Query::Condition conditionFromFqNames (const T< QByteArray > &fqNames)
 
PartType fromFqName (const QString &fqName)
 
PartType fromFqName (const QByteArray &fqName)
 
PartType fromFqName (const QString &ns, const QString &typeName)
 
QString fullName (const PartType &type)
 
std::pair< QString, QStringparseFqName (const QString &fqName)
 

Detailed Description

Methods for dealing with the PartType table.

Function Documentation

Query::Condition Akonadi::Server::PartTypeHelper::conditionFromFqName ( const QString fqName)

Returns a query condition that matches the given part.

Parameters
fqNamefully-qualified part type name
Exceptions
PartTypeException

Definition at line 50 of file parttypehelper.cpp.

Query::Condition Akonadi::Server::PartTypeHelper::conditionFromFqNames ( const QStringList fqNames)

Returns a query condition that matches the given part type list.

Parameters
fqNamesfully qualified part type name list
Exceptions
PartTypeException

Definition at line 60 of file parttypehelper.cpp.

template<template< typename > class T>
Query::Condition Akonadi::Server::PartTypeHelper::conditionFromFqNames ( const T< QByteArray > &  fqNames)

Convenience overload for the above.

Definition at line 65 of file parttypehelper.h.

PartType Akonadi::Server::PartTypeHelper::fromFqName ( const QString fqName)

Retrieve (or create) PartType for the given fully qualified name.

Parameters
fqNameFully qualified name (NS:NAME).
Exceptions
PartTypeException

Definition at line 31 of file parttypehelper.cpp.

PartType Akonadi::Server::PartTypeHelper::fromFqName ( const QByteArray fqName)

Convenience overload of the above.

Definition at line 36 of file parttypehelper.cpp.

PartType Akonadi::Server::PartTypeHelper::fromFqName ( const QString ns,
const QString typeName 
)

Retrieve (or create) PartType for the given namespace and type name.

Parameters
nsNamespace
typeNamePart type name.
Exceptions
PartTypeException

Definition at line 41 of file parttypehelper.cpp.

QString Akonadi::Server::PartTypeHelper::fullName ( const PartType &  type)

Returns full part name.

Definition at line 70 of file parttypehelper.cpp.

std::pair< QString, QString > Akonadi::Server::PartTypeHelper::parseFqName ( const QString fqName)

Parses a fully qualified part type name into namespace/name.

Parameters
fqNamefully-qualified part type name
Exceptions
PartTypeExceptionif fqName does not match the NS:NAME schema

Definition at line 18 of file parttypehelper.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 5 2020 23:14:20 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.