Translation

Search for usage in LXR

Translation Class Reference

#include <translation.h>

Public Member Functions

 Translation (slimt::Response &&response)
 
 operator bool () const
 
QString translation () const
 

Detailed Description

Wrapper around a translation response from the bergamot service.

Hides that interface from the rest of the Qt code, and provides utility functions to access alignment information with character offsets instead of byte offsets.

Definition at line 26 of file translation.h.

Constructor & Destructor Documentation

◆ Translation() [1/2]

Translation::Translation ( )

Definition at line 12 of file translation.cpp.

◆ Translation() [2/2]

Translation::Translation ( slimt::Response && response)

Definition at line 17 of file translation.cpp.

Member Function Documentation

◆ operator bool()

Translation::operator bool ( ) const
inline

Bool operator to check whether this is an initialised translation or just an empty object.

Definition at line 36 of file translation.h.

◆ translation()

QString Translation::translation ( ) const
nodiscard

Translation result.

Definition at line 22 of file translation.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.