LibKEduVocDocument

sharedkvtmlfiles.h
1/*
2 * scan a group of KVTML documents to get information from them
3 * SPDX-FileCopyrightText: 2007 Jeremy Whiting <jpwhiting@kde.org>
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef SHAREDKVTMLFILES_H
8#define SHAREDKVTMLFILES_H
9
10#include "keduvocdocument_export.h"
11
12#include <QStringList>
13
14/**
15 *namespace and singleton class to scan groups of kvtml files
16 *from shared kvtml location, and give information
17 *about files found there
18 *@author Jeremy Whiting
19 */
21{
22/** get list of all languages found in any files */
23KEDUVOCDOCUMENT_EXPORT QStringList languages();
24
25/** get list of filenames found of given language
26 *@param language language requested QString() for all languages
27 *@return a list of filenames with words in language
28 */
29KEDUVOCDOCUMENT_EXPORT QStringList fileNames(const QString &language = QString());
30
31/** get the list of document titles found of a given language
32 *@param language requested language QString() for all titles
33 *@return a list of document titles with words in language
34 */
35KEDUVOCDOCUMENT_EXPORT QStringList titles(const QString &language = QString());
36
37/** get the list of document remarks found of a given language
38 *@param language requested language QString() for all comments
39 *@return a list of document remarks with words in language
40 */
41KEDUVOCDOCUMENT_EXPORT QStringList comments(const QString &language = QString());
42
43/** rescan the shared kvtml locations */
44KEDUVOCDOCUMENT_EXPORT void rescan();
45
46/** sort files downloaded to kvtml top-level dir into locale sub-folders */
47KEDUVOCDOCUMENT_EXPORT void sortDownloadedFiles();
48}
49
50#endif
namespace and singleton class to scan groups of kvtml files from shared kvtml location,...
KEDUVOCDOCUMENT_EXPORT QStringList titles(const QString &language=QString())
get the list of document titles found of a given language
KEDUVOCDOCUMENT_EXPORT void sortDownloadedFiles()
sort files downloaded to kvtml top-level dir into locale sub-folders
KEDUVOCDOCUMENT_EXPORT QStringList languages()
get list of all languages found in any files
KEDUVOCDOCUMENT_EXPORT QStringList comments(const QString &language=QString())
get the list of document remarks found of a given language
KEDUVOCDOCUMENT_EXPORT QStringList fileNames(const QString &language=QString())
get list of filenames found of given language
KEDUVOCDOCUMENT_EXPORT void rescan()
rescan the shared kvtml locations
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.