00001 /**************************************************************************** 00002 ** $Id: atime.h,v 1.4 2006/08/23 08:30:04 app Exp $ 00003 ** 00004 ** Header file of the Accumulation Register of Ananas 00005 ** Engine applications 00006 ** 00007 ** Created : 20031201 00008 ** 00009 ** Copyright (C) 2003-2004 Leader InfoTech. All rights reserved. 00010 ** 00011 ** This file is part of the Library of the Ananas 00012 ** automation accounting system. 00013 ** 00014 ** This file may be distributed and/or modified under the terms of the 00015 ** GNU General Public License version 2 as published by the Free Software 00016 ** Foundation and appearing in the file LICENSE.GPL included in the 00017 ** packaging of this file. 00018 ** 00019 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00020 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00021 ** 00022 ** See http://www.leaderit.ru/page=ananas or email sales@leaderit.ru 00023 ** See http://www.leaderit.ru/gpl/ for GPL licensing information. 00024 ** 00025 ** Contact org@leaderit.ru if any conditions of this licensing are 00026 ** not clear to you. 00027 ** 00028 **********************************************************************/ 00029 00030 #ifndef ATIME_H 00031 #define ATIME_H 00032 00033 #include <qobject.h> 00034 #include <qdatetime.h> 00035 //#include "airegister.h" 00036 #include "ananas.h" 00037 00038 00039 00040 00048 class ANANAS_EXPORT aTime : public QObject 00049 { 00050 Q_OBJECT 00051 public: 00052 aTime(); 00053 ~aTime(); 00054 protected: 00055 QTime *time; 00056 public slots: 00057 00058 virtual void start(); 00059 virtual int restart(); 00060 virtual int elapsed(); 00061 virtual QString CurrentDate(); 00062 }; 00063 00064 #endif// ATIME_H