File indexing completed on 2024-05-12 04:57:43
0001 /* 0002 This file is part of Choqok, the KDE micro-blogging client 0003 0004 SPDX-FileCopyrightText: 2010-2011 Marcello Ceschia <marcelloceschia@users.sourceforge.net> 0005 SPDX-FileCopyrightText: 2010-2012 Mehrdad Momeny <mehrdad.momeny@gmail.com> 0006 0007 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0008 */ 0009 0010 #ifndef YOURLS_H 0011 #define YOURLS_H 0012 0013 #include <QVariantList> 0014 #include <QUrlQuery> 0015 0016 #include "shortener.h" 0017 0018 /** 0019 @author Marcello Ceschia \<marcelloceschia@users.sourceforge.net\> 0020 @author Mehrdad Momeny \<mehrdad.momeny@gmail.com\> 0021 */ 0022 class Yourls : public Choqok::Shortener 0023 { 0024 Q_OBJECT 0025 0026 public: 0027 Yourls(QObject *parent, const QVariantList &args); 0028 ~Yourls(); 0029 0030 virtual QString shorten(const QString &url) override; 0031 0032 private Q_SLOTS: 0033 void reloadConfigs(); 0034 private: 0035 QString password; 0036 }; 0037 0038 #endif