Pimcommon

pimutil.h
1/*******************************************************************************
2**
3** SPDX-FileCopyrightText: 2005 Till Adam <adam@kde.org>
4**
5** SPDX-License-Identifier: GPL-2.0-or-later
6**
7*******************************************************************************/
8#pragma once
9
10#include "pimcommon_export.h"
11#include <QUrl>
12class OrgKdeAkonadiImapSettingsInterface;
13class QWidget;
14
15#define IMAP_RESOURCE_IDENTIFIER QStringLiteral("akonadi_imap_resource")
16#define KOLAB_RESOURCE_IDENTIFIER QStringLiteral("akonadi_kolab_resource")
17#define POP3_RESOURCE_IDENTIFIER QStringLiteral("akonadi_pop3_resource")
18#define MBOX_RESOURCE_IDENTIFIER QStringLiteral("akonadi_mbox_resource")
19#define GMAIL_RESOURCE_IDENTIFIER QStringLiteral("akonadi_gmail_resource")
20namespace PimCommon
21{
22/**
23 * The Util namespace contains a collection of helper functions use in
24 * various places.
25 */
26namespace Util
27{
28[[nodiscard]] PIMCOMMON_EXPORT OrgKdeAkonadiImapSettingsInterface *createImapSettingsInterface(const QString &ident);
29PIMCOMMON_EXPORT void saveTextAs(const QString &text, const QString &filter, QWidget *parent, const QUrl &url = QUrl(), const QString &caption = QString());
30[[nodiscard]] PIMCOMMON_EXPORT bool saveToFile(const QString &filename, const QString &text);
31[[nodiscard]] PIMCOMMON_EXPORT QString loadToFile(const QString &filter, QWidget *parent, const QUrl &url = QUrl(), const QString &caption = QString());
32PIMCOMMON_EXPORT void invokeHelp(const QString &docfile, const QString &anchor = QString());
33[[nodiscard]] PIMCOMMON_EXPORT bool isImapResource(const QString &identifier);
34[[nodiscard]] PIMCOMMON_EXPORT QStringList generateEmailList(const QStringList &list);
35// Only for testing
36[[nodiscard]] PIMCOMMON_EXPORT QUrl generateHelpUrl(const QString &docfile, const QString &anchor = QString());
37
38[[nodiscard]] PIMCOMMON_EXPORT QString findExecutable(const QString &exec);
39}
40}
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.