File indexing completed on 2024-05-05 04:57:29

0001 /*
0002     This file is part of Choqok, the KDE micro-blogging client
0003 
0004     SPDX-FileCopyrightText: 2011-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 NOTIFYCONFIG_H
0010 #define NOTIFYCONFIG_H
0011 
0012 #include <QMap>
0013 #include <QPointer>
0014 
0015 #include <KCModule>
0016 
0017 #include "ui_notifyprefs.h"
0018 
0019 class DummyNotification;
0020 
0021 class NotifySettings;
0022 class NotifyConfig : public KCModule
0023 {
0024     Q_OBJECT
0025 public:
0026     NotifyConfig(QWidget *parent, const QVariantList &args);
0027     ~NotifyConfig();
0028 
0029     virtual void save() override;
0030     virtual void load() override;
0031 
0032 protected Q_SLOTS:
0033     void updateTimelinesList();
0034     void timelineSelectionChanged();
0035     void emitChanged();
0036     void slotAdjustNotificationPosition();
0037     void slotNewPositionSelected(QPoint);
0038 
0039 private:
0040     QStringList langs;
0041     Ui_NotifyPrefsBase ui;
0042     QMap<QString, QStringList> accounts;
0043     NotifySettings *settings;
0044     QPointer<DummyNotification> dummy;
0045 };
0046 
0047 #endif // NOTIFYCONFIG_H