File indexing completed on 2024-04-14 04:50:22
0001 /* 0002 This file is part of Choqok, the KDE micro-blogging client 0003 0004 SPDX-FileCopyrightText: 2008-2012 Mehrdad Momeny <mehrdad.momeny@gmail.com> 0005 0006 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0007 */ 0008 0009 #ifndef SHORTENER_H 0010 #define SHORTENER_H 0011 0012 #include <QString> 0013 0014 #include "plugin.h" 0015 0016 namespace Choqok 0017 { 0018 /** 0019 @brief The base class for a Shortener plugin main class. 0020 0021 @author Mehrdad Momeny \<mehrdad.momeny@gmail.com\> 0022 */ 0023 class CHOQOK_EXPORT Shortener : public Plugin 0024 { 0025 Q_OBJECT 0026 public: 0027 virtual ~Shortener(); 0028 /** 0029 Shorten the @p url and return the shortened URL 0030 */ 0031 virtual QString shorten(const QString &url); 0032 0033 protected: 0034 Shortener(const QString &componentName, QObject *parent); 0035 }; 0036 }//End Namespace Choqok 0037 #endif