/***************************************************************************
                          crontimer.h  -  description
                             -------------------
    begin                : Mon Apr 11 2005
    copyright            : (C) 2005 by Christophe Thommeret
    email                : hftom@free.fr
    last modified        : $Date: 2005/04/27 19:38:47 $ by $Author: hftom $
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef CRONTIMER_H
#define CRONTIMER_H

#include <qwidget.h>
#include <qbuttongroup.h>
#include <qcheckbox.h>
#include <qradiobutton.h>

#include "crontimerui.h"



class CronTimer : public CronTimerUI
{

	Q_OBJECT

public:

	CronTimer( int m, QWidget *parent );
	~CronTimer();
	int getMode() const;

	enum Type { Noone=0, Daily=1, Weekly=2, Monthly=4, Custom=8, Monday=16, Tuesday=32, Wednesday=64, Thursday=128, Friday=256, Saturday=512, Sunday=1024 };

protected:

	virtual void accept();

private slots:

	void modeSelected( int id );

private:

	int mode;

};
#endif
