File indexing completed on 2024-05-19 04:58:06
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 BEHAVIORCONFIG_SHORTEN_H 0010 #define BEHAVIORCONFIG_SHORTEN_H 0011 0012 #include "ui_behaviorconfig_shorten_base.h" 0013 0014 #include <QWidget> 0015 0016 #include "shortener.h" 0017 0018 class KPluginMetaData; 0019 class KCModuleProxy; 0020 class BehaviorConfig_Shorten: public QWidget, public Ui::BehaviorConfig_ShortenBase 0021 { 0022 Q_OBJECT 0023 public: 0024 BehaviorConfig_Shorten(QWidget *parent = nullptr); 0025 ~BehaviorConfig_Shorten(); 0026 void load(); 0027 void save(); 0028 0029 Q_SIGNALS: 0030 void changed(bool isChanged); 0031 0032 private Q_SLOTS: 0033 void currentPluginChanged(int index); 0034 0035 protected Q_SLOTS: 0036 void slotAboutClicked(); 0037 void slotConfigureClicked(); 0038 0039 private: 0040 QMap<QString, KPluginMetaData> availablePlugins; 0041 Choqok::Shortener *currentShortener; 0042 QString prevShortener; 0043 }; 0044 0045 #endif