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 QByteArray &fqName)
 
PartType fromFqName (const QString &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

◆ conditionFromFqName()

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 46 of file parttypehelper.cpp.

◆ conditionFromFqNames() [1/2]

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 56 of file parttypehelper.cpp.

◆ conditionFromFqNames() [2/2]

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

Convenience overload for the above.

Definition at line 62 of file parttypehelper.h.

◆ fromFqName() [1/3]

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

Convenience overload of the above.

Definition at line 32 of file parttypehelper.cpp.

◆ fromFqName() [2/3]

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 27 of file parttypehelper.cpp.

◆ fromFqName() [3/3]

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 37 of file parttypehelper.cpp.

◆ fullName()

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

Returns full part name.

Definition at line 66 of file parttypehelper.cpp.

◆ parseFqName()

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-2022 The KDE developers.
Generated on Tue Aug 16 2022 04:00:10 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.