File indexing completed on 2024-05-12 08:57:48

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 NOTIFYMANAGER_H
0010 #define NOTIFYMANAGER_H
0011 
0012 #include <KLocalizedString>
0013 
0014 #include "choqok_export.h"
0015 
0016 namespace Choqok
0017 {
0018 
0019 class CHOQOK_EXPORT NotifyManager
0020 {
0021 public:
0022     ~NotifyManager();
0023 
0024     static void error(const QString &message , const QString &title = i18n("Error"));
0025     static void success(const QString &message, const QString &title = i18n("Success"));
0026 
0027     static void newPostArrived(const QString &message, const QString &title = i18n("New posts"));
0028     static void shortening(const QString &message, const QString &title = i18n("Shortening a URL"));
0029 
0030     static void resetNotifyManager();
0031 
0032 private:
0033     NotifyManager();
0034 };
0035 }
0036 #endif // NOTIFYMANAGER_H