1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-23 02:32:10 +02:00
falkonOfficial/src/app/autosaver.h

38 lines
592 B
C
Raw Normal View History

2011-03-02 16:57:41 +01:00
#ifndef AUTOSAVER_H
#define AUTOSAVER_H
#if defined(QT_NO_DEBUG) & !defined(QT_NO_DEBUG_OUTPUT)
#define QT_NO_DEBUG_OUTPUT
#endif
#ifdef QT_NO_DEBUG
#ifdef DEVELOPING
#error "TRYING TO RELEASE WITH DEVELOPING FLAG"
#endif
#endif
#include <QObject>
#include <QBasicTimer>
#include <QDebug>
class MainApplication;
class AutoSaver : public QObject
{
Q_OBJECT
public:
explicit AutoSaver(QObject *parent = 0);
signals:
void saveApp();
public slots:
private:
void timerEvent(QTimerEvent *);
MainApplication* p_mainApp;
QBasicTimer m_timer;
};
#endif // AUTOSAVER_H