mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
kio: remove unused SlaveBasePrivate member
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
5c95c2118d
commit
6140752f69
2 changed files with 7 additions and 15 deletions
|
@ -129,7 +129,6 @@ public:
|
||||||
|
|
||||||
struct timeval last_tv;
|
struct timeval last_tv;
|
||||||
KIO::filesize_t totalSize;
|
KIO::filesize_t totalSize;
|
||||||
KIO::filesize_t sentListEntries;
|
|
||||||
KRemoteEncoding *remotefile;
|
KRemoteEncoding *remotefile;
|
||||||
time_t timeout;
|
time_t timeout;
|
||||||
enum { Idle, InsideMethod, FinishedCalled, ErrorCalled } m_state;
|
enum { Idle, InsideMethod, FinishedCalled, ErrorCalled } m_state;
|
||||||
|
@ -262,9 +261,7 @@ SlaveBase::SlaveBase( const QByteArray &protocol,
|
||||||
d->wasKilled=false;
|
d->wasKilled=false;
|
||||||
d->last_tv.tv_sec = 0;
|
d->last_tv.tv_sec = 0;
|
||||||
d->last_tv.tv_usec = 0;
|
d->last_tv.tv_usec = 0;
|
||||||
// d->processed_size = 0;
|
|
||||||
d->totalSize=0;
|
d->totalSize=0;
|
||||||
d->sentListEntries=0;
|
|
||||||
d->timeout = 0;
|
d->timeout = 0;
|
||||||
connectSlave(QFile::decodeName(app_socket));
|
connectSlave(QFile::decodeName(app_socket));
|
||||||
|
|
||||||
|
@ -457,7 +454,6 @@ void SlaveBase::error( int _errid, const QString &_text )
|
||||||
|
|
||||||
send( MSG_ERROR, data );
|
send( MSG_ERROR, data );
|
||||||
//reset
|
//reset
|
||||||
d->sentListEntries=0;
|
|
||||||
d->totalSize=0;
|
d->totalSize=0;
|
||||||
d->inOpenLoop=false;
|
d->inOpenLoop=false;
|
||||||
}
|
}
|
||||||
|
@ -484,7 +480,6 @@ void SlaveBase::finished()
|
||||||
send( MSG_FINISHED );
|
send( MSG_FINISHED );
|
||||||
|
|
||||||
// reset
|
// reset
|
||||||
d->sentListEntries=0;
|
|
||||||
d->totalSize=0;
|
d->totalSize=0;
|
||||||
d->inOpenLoop=false;
|
d->inOpenLoop=false;
|
||||||
}
|
}
|
||||||
|
@ -516,7 +511,6 @@ void SlaveBase::totalSize( KIO::filesize_t _bytes )
|
||||||
|
|
||||||
//this one is usually called before the first item is listed in listDir()
|
//this one is usually called before the first item is listed in listDir()
|
||||||
d->totalSize=_bytes;
|
d->totalSize=_bytes;
|
||||||
d->sentListEntries=0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SlaveBase::processedSize( KIO::filesize_t _bytes )
|
void SlaveBase::processedSize( KIO::filesize_t _bytes )
|
||||||
|
@ -550,7 +544,6 @@ void SlaveBase::processedSize( KIO::filesize_t _bytes )
|
||||||
d->last_tv.tv_usec = tv.tv_usec;
|
d->last_tv.tv_usec = tv.tv_usec;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// d->processed_size = _bytes;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SlaveBase::written( KIO::filesize_t _bytes )
|
void SlaveBase::written( KIO::filesize_t _bytes )
|
||||||
|
@ -691,7 +684,6 @@ void SlaveBase::listEntries( const UDSEntryList& list )
|
||||||
for (; it != end; ++it)
|
for (; it != end; ++it)
|
||||||
stream << *it;
|
stream << *it;
|
||||||
send( MSG_LIST_ENTRIES, data);
|
send( MSG_LIST_ENTRIES, data);
|
||||||
d->sentListEntries+=(uint)list.count();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sigsegv_handler(int sig)
|
static void sigsegv_handler(int sig)
|
||||||
|
|
|
@ -330,20 +330,20 @@ void SlaveInterface::sendMessageBoxAnswer(int result)
|
||||||
d->connection->resume();
|
d->connection->resume();
|
||||||
}
|
}
|
||||||
QByteArray packedArgs;
|
QByteArray packedArgs;
|
||||||
QDataStream stream( &packedArgs, QIODevice::WriteOnly );
|
QDataStream stream(&packedArgs, QIODevice::WriteOnly);
|
||||||
stream << result;
|
stream << result;
|
||||||
d->connection->sendnow(CMD_MESSAGEBOXANSWER, packedArgs);
|
d->connection->sendnow(CMD_MESSAGEBOXANSWER, packedArgs);
|
||||||
kDebug(7007) << "message box answer" << result;
|
kDebug(7007) << "message box answer" << result;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SlaveInterface::messageBox( int type, const QString &text, const QString &_caption,
|
void SlaveInterface::messageBox(int type, const QString &text, const QString &caption,
|
||||||
const QString &buttonYes, const QString &buttonNo )
|
const QString &buttonYes, const QString &buttonNo)
|
||||||
{
|
{
|
||||||
messageBox( type, text, _caption, buttonYes, buttonNo, QString() );
|
messageBox(type, text, caption, buttonYes, buttonNo, QString());
|
||||||
}
|
}
|
||||||
|
|
||||||
void SlaveInterface::messageBox( int type, const QString &text, const QString &caption,
|
void SlaveInterface::messageBox(int type, const QString &text, const QString &caption,
|
||||||
const QString &buttonYes, const QString &buttonNo, const QString &dontAskAgainName )
|
const QString &buttonYes, const QString &buttonNo, const QString &dontAskAgainName)
|
||||||
{
|
{
|
||||||
Q_D(SlaveInterface);
|
Q_D(SlaveInterface);
|
||||||
|
|
||||||
|
@ -371,7 +371,7 @@ void SlaveInterface::messageBox( int type, const QString &text, const QString &c
|
||||||
globalUserNotificationHandler()->requestMessageBox(this, type, data);
|
globalUserNotificationHandler()->requestMessageBox(this, type, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SlaveInterface::setWindow (QWidget* window)
|
void SlaveInterface::setWindow(QWidget* window)
|
||||||
{
|
{
|
||||||
Q_D(SlaveInterface);
|
Q_D(SlaveInterface);
|
||||||
d->parentWindow = window;
|
d->parentWindow = window;
|
||||||
|
|
Loading…
Add table
Reference in a new issue