You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
3.7 KiB
107 lines
3.7 KiB
13 years ago
|
//
|
||
|
// Copyright 2006 Jim Bublitz <jbublitz@nwinternet.com>
|
||
|
// Earlier copyrights 1998 - 2005 Jim Bublitz and/or Phil Thompson
|
||
|
// may also apply
|
||
|
|
||
|
|
||
|
// Generated by preSip
|
||
12 years ago
|
// module tdeio version KDE 3.5.3
|
||
13 years ago
|
|
||
|
|
||
|
// This software 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.
|
||
|
//
|
||
|
// This software is distributed in the hope that it will be useful,
|
||
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
// GNU General Public License for more details.
|
||
|
//
|
||
|
// You should have received a copy of the GNU General Public
|
||
|
// License along with this library; see the file COPYING.
|
||
|
// If not, write to the Free Software Foundation, Inc.,
|
||
|
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
|
|
||
12 years ago
|
namespace TDEIO
|
||
13 years ago
|
{
|
||
|
|
||
13 years ago
|
class Scheduler : TQObject, DCOPObject
|
||
13 years ago
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <scheduler.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
12 years ago
|
//ig typedef TQPtrList<TDEIO::SimpleJob> JobList;
|
||
|
static void doJob (TDEIO::SimpleJob*);
|
||
|
static void scheduleJob (TDEIO::SimpleJob*);
|
||
|
static void cancelJob (TDEIO::SimpleJob*);
|
||
|
static void jobFinished (TDEIO::SimpleJob*, TDEIO::Slave*);
|
||
|
static void putSlaveOnHold (TDEIO::SimpleJob*, const KURL&);
|
||
13 years ago
|
static void removeSlaveOnHold ();
|
||
|
static void publishSlaveOnHold ();
|
||
|
//doc
|
||
|
// There is no default value for config (KIO.MetaData) - pass an
|
||
|
// empty Python dict if you need the default value
|
||
|
//end
|
||
12 years ago
|
static TDEIO::Slave* getConnectedSlave (const KURL&, const TDEIO::MetaData&);
|
||
|
static bool assignJobToSlave (TDEIO::Slave*, TDEIO::SimpleJob*);
|
||
|
static bool disconnectSlave (TDEIO::Slave*);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
static void registerWindow (TQWidget*);
|
||
13 years ago
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
13 years ago
|
static void unregisterWindow (TQObject*);
|
||
13 years ago
|
%End
|
||
|
|
||
|
%End
|
||
|
|
||
13 years ago
|
static bool connect (const char*, const TQObject*, const char*);
|
||
|
static bool connect (const TQObject*, const char*, const TQObject*, const char*);
|
||
|
static bool disconnect (const TQObject*, const char*, const TQObject*, const char*);
|
||
|
bool connect (const TQObject*, const char*, const char*);
|
||
13 years ago
|
static void checkSlaveOnHold (bool);
|
||
|
void debug_info ();
|
||
13 years ago
|
virtual bool process (const TQCString&, const TQByteArray&, TQCString&, TQByteArray&);
|
||
13 years ago
|
virtual QCStringList functions ();
|
||
13 years ago
|
|
||
|
public slots:
|
||
12 years ago
|
void slotSlaveDied (TDEIO::Slave*);
|
||
13 years ago
|
void slotSlaveStatus (pid_t, const TQCString&, const TQString&, bool);
|
||
13 years ago
|
|
||
|
signals:
|
||
12 years ago
|
void slaveConnected (TDEIO::Slave*);
|
||
|
void slaveError (TDEIO::Slave*, int, const TQString&);
|
||
13 years ago
|
|
||
|
protected:
|
||
12 years ago
|
void setupSlave (TDEIO::Slave*, const KURL&, const TQString&, const TQString&, bool, const TDEIO::MetaData* = 0);
|
||
|
//ig bool startJobScheduled (TDEIO::Scheduler::ProtocolInfo*);
|
||
13 years ago
|
bool startJobDirect ();
|
||
|
Scheduler ();
|
||
|
|
||
|
protected slots:
|
||
|
void startStep ();
|
||
|
void slotCleanIdleSlaves ();
|
||
|
void slotSlaveConnected ();
|
||
13 years ago
|
void slotSlaveError (int, const TQString&);
|
||
13 years ago
|
void slotScheduleCoSlave ();
|
||
|
|
||
|
%If ( KDE_3_1_0 - )
|
||
13 years ago
|
void slotUnregisterWindow (TQObject*);
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
private:
|
||
12 years ago
|
Scheduler (const TDEIO::Scheduler&);
|
||
13 years ago
|
|
||
|
protected:
|
||
|
//igx virtual void virtual_hook (int, void*);
|
||
|
|
||
|
}; // class Scheduler
|
||
|
|
||
12 years ago
|
}; // namespace TDEIO
|
||
13 years ago
|
|