File indexing completed on 2024-04-14 04:52:50

0001 /*
0002     This file is part of Akregator.
0003 
0004     SPDX-FileCopyrightText: 2004 Teemu Rytilahti <tpr@d5k.net>
0005 
0006     SPDX-License-Identifier: GPL-2.0-or-later WITH LicenseRef-Qt-exception
0007 */
0008 
0009 #ifndef PLUGINUTIL_H
0010 #define PLUGINUTIL_H
0011 
0012 #include <QString>
0013 #include <QStringList>
0014 
0015 class QUrl;
0016 
0017 namespace Akregator
0018 {
0019 namespace PluginUtil
0020 {
0021     /**
0022      * Add a list of feeds to aKregator.
0023      *
0024      * This will be done via a DBus call if the application is running,
0025      * or by running it with a command line option if it is not.
0026      *
0027      * @param urls List of feed URLs to add
0028      */
0029     void addFeeds(const QStringList &urls);
0030 
0031     /**
0032      * Fix up a URL relative to a base URL.
0033      *
0034      * @param s The URL in string form
0035      * @param baseurl The base URL
0036      * @return The absolute resolved URL
0037      */
0038     QString fixRelativeURL(const QString &s, const QUrl &baseurl);
0039 }
0040 }
0041 #endif