File indexing completed on 2024-04-28 08:49:20

0001 /* This file is part of the KDE project
0002 
0003    Copyright (C) 2008 - 2009 Lukas Appelhans <l.appelhans@gmx.de>
0004 
0005    This program is free software; you can redistribute it and/or
0006    modify it under the terms of the GNU General Public
0007    License as published by the Free Software Foundation; either
0008    version 2 of the License, or (at your option) any later version.
0009 */
0010 #ifndef HANDLER_H
0011 #define HANDLER_H
0012 
0013 #include <QObject>
0014 
0015 class Scheduler;
0016 
0017 class Handler : public QObject
0018 {
0019     Q_OBJECT
0020 public:
0021     Handler(Scheduler *scheduler, QObject *parent);
0022     ~Handler() override;
0023 
0024     virtual void start() = 0;
0025     virtual void stop() = 0;
0026 
0027     virtual QVariant data(int column) = 0;
0028 
0029 protected:
0030     Scheduler *m_scheduler;
0031 };
0032 
0033 #endif