jobscheduler.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 * Copyright (C) 2003 by Mario Scalas * 00003 * mario.scalas@libero.it * 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef JOBSCHEDULER_H 00013 #define JOBSCHEDULER_H 00014 00015 class CvsProcessWidget; 00016 class CvsJob_stub; 00017 class DCOPRef; 00018 00024 class JobScheduler 00025 { 00026 public: 00027 JobScheduler( CvsProcessWidget *aProcessWidget ); 00028 virtual ~JobScheduler(); 00029 00030 virtual bool schedule( DCOPRef &job ) = 0; 00031 00032 CvsProcessWidget *processWidget() const { return m_processWidget; } 00033 00034 private: 00035 CvsProcessWidget *m_processWidget; 00036 }; 00037 00038 00043 class DirectScheduler : public JobScheduler 00044 { 00045 public: 00046 DirectScheduler( CvsProcessWidget *aProcessWidget ); 00047 00048 virtual bool schedule( DCOPRef &job ); 00049 }; 00050 00051 #endif