KDevelop API Documentation

jobscheduler.cpp

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 #include "jobscheduler.h"
00013 
00014 #include "cvsprocesswidget.h"
00015 
00016 #include "kdebug.h"
00017 #include "dcopref.h"
00018 
00020 // class JobScheduler
00022 
00023 JobScheduler::JobScheduler( CvsProcessWidget *aProcessWidget )
00024     : m_processWidget( aProcessWidget )
00025 {
00026 }
00027 
00029 
00030 JobScheduler::~JobScheduler()
00031 {
00032 }
00033 
00035 // class DirectScheduler
00037 
00038 DirectScheduler::DirectScheduler( CvsProcessWidget *aProcessWidget )
00039     : JobScheduler( aProcessWidget )
00040 {
00041 }
00042 
00044 
00045 bool DirectScheduler::schedule( DCOPRef &job )
00046 {
00047     if (job.isNull())
00048     {
00049         kdDebug(9006) << "DirectScheduler::schedule(DCOPRef &): Job is null and will be rejected!" << endl;
00050         return false;
00051     }
00052     processWidget()->startJob( job );
00053 
00054     return true;
00055 }
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:59 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003