File indexing completed on 2024-04-21 04:55:25

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 CHOQOK_APPLICATION_H
0010 #define CHOQOK_APPLICATION_H
0011 
0012 #include <QApplication>
0013 
0014 #include "choqok_export.h"
0015 
0016 namespace Choqok
0017 {
0018 
0019 class CHOQOK_EXPORT Application : public QApplication
0020 {
0021     Q_OBJECT
0022 public:
0023     Application(int &argc, char **argv);
0024     virtual ~Application();
0025 
0026     /**
0027      * Method to return whether or not we're shutting down
0028      * or not at this point.
0029      */
0030     static bool isShuttingDown();
0031 
0032     static bool isStartingUp();
0033     static void setStartingUp(bool startingUp);
0034 
0035 protected:
0036     static void setShuttingDown(bool isShuttingDown = true);
0037 
0038 private:
0039     class Private;
0040     Private *const d;
0041 };
0042 
0043 }
0044 
0045 #endif // CHOQOK_APPLICATION_H