/*! * * Copyright (c) 2019-2019 Diality Inc. - All Rights Reserved. * \copyright \n * THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, \n * IN PART OR IN WHOLE, \n * WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. \n * * \file maintimer.cpp * \date 2019/09/30 * \author Behrouz NematiPour * */ #include "maintimer.h" //Qt //Project #include "logger.h" // Singleton SINGLETON_INIT(MainTimer) /*! * \brief MainTimer Constructor * \param parent */ MainTimer::MainTimer(QObject *parent) : QObject(parent) { } bool MainTimer::init() { startTimer(_interval); LOG_EVENT(QObject::tr("Main Timer Initialized")); return true; } void MainTimer::quit() { } void MainTimer::timerEvent(QTimerEvent *) { emit didTimeout(); }