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.
96 lines
2.9 KiB
96 lines
2.9 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
|
{
|
||
|
|
||
12 years ago
|
class Slave : TDEIO::SlaveInterface
|
||
13 years ago
|
{
|
||
|
%TypeHeaderCode
|
||
|
#include <slave.h>
|
||
|
%End
|
||
|
|
||
|
|
||
|
protected:
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
12 years ago
|
Slave (bool, TDEServerSocket*, const TQString&, const TQString&);
|
||
13 years ago
|
%End
|
||
|
|
||
|
|
||
|
public:
|
||
12 years ago
|
Slave (TDEServerSocket*, const TQString&, const TQString&);
|
||
13 years ago
|
void setPID (pid_t);
|
||
|
int slave_pid ();
|
||
|
void kill ();
|
||
|
bool isAlive ();
|
||
13 years ago
|
void setHost (const TQString&, int, const TQString&, const TQString&);
|
||
13 years ago
|
void resetHost ();
|
||
12 years ago
|
void setConfig (const TDEIO::MetaData&);
|
||
13 years ago
|
TQString protocol ();
|
||
|
void setProtocol (const TQString&);
|
||
|
TQString slaveProtocol ();
|
||
|
TQString host ();
|
||
13 years ago
|
int port ();
|
||
13 years ago
|
TQString user ();
|
||
|
TQString passwd ();
|
||
12 years ago
|
static TDEIO::Slave* createSlave (const TQString&, const KURL&, int& /Out/, TQString& /Out/);
|
||
|
static TDEIO::Slave* holdSlave (const TQString&, const KURL&);
|
||
13 years ago
|
void suspend ();
|
||
|
void resume ();
|
||
|
bool suspended ();
|
||
|
|
||
|
%If ( KDE_3_2_0 - )
|
||
13 years ago
|
void send (int, const TQByteArray& = TQByteArray ());
|
||
13 years ago
|
%End
|
||
|
|
||
|
void hold (const KURL&);
|
||
|
time_t idleTime ();
|
||
|
void setIdle ();
|
||
|
bool isConnected ();
|
||
|
void setConnected (bool);
|
||
12 years ago
|
TDEIO::Connection* connection ();
|
||
13 years ago
|
void ref ();
|
||
|
void deref ();
|
||
|
|
||
|
public slots:
|
||
12 years ago
|
void accept (TDESocket*);
|
||
13 years ago
|
void gotInput ();
|
||
|
void timeout ();
|
||
|
|
||
|
signals:
|
||
12 years ago
|
void slaveDied (TDEIO::Slave*);
|
||
13 years ago
|
|
||
|
protected:
|
||
|
void unlinkSocket ();
|
||
|
|
||
|
protected:
|
||
|
//igx virtual void virtual_hook (int, void*);
|
||
|
|
||
|
}; // class Slave
|
||
|
|
||
12 years ago
|
}; // namespace TDEIO
|
||
13 years ago
|
|