defuze.me
Client
|
00001 /************************************************************************** 00002 ** defuze.me Epitech Innovative Project 00003 ** 00004 ** Copyright 2010-2011 00005 ** Athena Calmettes - Jocelyn De La Rosa - Francois Gaillard 00006 ** Adrien Jarthon - Alexandre Moore - Luc Peres - Arnaud Sellier 00007 ** 00008 ** All rights reserved. 00009 **************************************************************************/ 00010 00011 namespace Queue { 00012 class QueueBreak; 00013 } 00014 00015 #ifndef QUEUEBREAK_HPP 00016 #define QUEUEBREAK_HPP 00017 00018 #include "queueable.hpp" 00019 #include <QDateTime> 00020 00021 namespace Queue { 00022 00028 class QueueBreak : public Queueable 00029 { 00030 Q_OBJECT 00031 public: 00032 QueueBreak(); 00033 QueueBreak(int duration); 00034 QueueBreak(QDateTime end); 00035 ~QueueBreak(); 00036 int duration() const; 00037 QDateTime end() const; 00038 void setDuration(int duration); 00039 void setEnd(QDateTime end); 00040 QString message() const; 00041 bool queueIsFinite() const; 00042 int queueDuration(QDateTime from) const; 00043 QString queueType() const; 00044 QString name() const; 00045 Queueable* clone() const; 00046 signals: 00047 00048 public slots: 00049 private: 00050 }; 00051 } 00052 00053 #endif // QUEUEBREAK_HPP