mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kio: format and indent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
8609952af1
commit
040e1275cc
3 changed files with 13 additions and 13 deletions
|
@ -1116,7 +1116,7 @@ bool SlaveBase::wasKilled() const
|
|||
|
||||
void SlaveBase::setKillFlag()
|
||||
{
|
||||
d->wasKilled=true;
|
||||
d->wasKilled = true;
|
||||
}
|
||||
|
||||
void SlaveBase::send(int cmd, const QByteArray &arr)
|
||||
|
|
|
@ -565,7 +565,7 @@ public:
|
|||
* @param ready set to true after emitting all items. @p _entry is not
|
||||
* used in this case
|
||||
*/
|
||||
void listEntry(const UDSEntry& _entry, bool ready);
|
||||
void listEntry(const UDSEntry &_entry, bool ready);
|
||||
|
||||
/**
|
||||
* Prompt the user for Authorization info (login & password).
|
||||
|
@ -672,7 +672,7 @@ public:
|
|||
* @param info See AuthInfo.
|
||||
* @return @p true if @p info was successfully cached.
|
||||
*/
|
||||
bool cacheAuthentication( const AuthInfo &info);
|
||||
bool cacheAuthentication(const AuthInfo &info);
|
||||
|
||||
/**
|
||||
* Wait for an answer to our request, until we get @p expected1 or @p expected2
|
||||
|
|
|
@ -110,7 +110,7 @@ QString SlaveInterface::protocol() const
|
|||
return d->m_protocol;
|
||||
}
|
||||
|
||||
void SlaveInterface::setProtocol(const QString & protocol)
|
||||
void SlaveInterface::setProtocol(const QString &protocol)
|
||||
{
|
||||
Q_D(SlaveInterface);
|
||||
d->m_protocol = protocol;
|
||||
|
@ -248,9 +248,9 @@ void SlaveInterface::setHost( const QString &host, quint16 port,
|
|||
d->m_passwd = passwd;
|
||||
|
||||
QByteArray data;
|
||||
QDataStream stream( &data, QIODevice::WriteOnly );
|
||||
QDataStream stream(&data, QIODevice::WriteOnly);
|
||||
stream << d->m_host << d->m_port << d->m_user << d->m_passwd;
|
||||
d->connection->send( CMD_HOST, data );
|
||||
d->connection->send(CMD_HOST, data);
|
||||
}
|
||||
|
||||
void SlaveInterface::resetHost()
|
||||
|
@ -263,12 +263,12 @@ void SlaveInterface::setConfig(const MetaData &config)
|
|||
{
|
||||
Q_D(SlaveInterface);
|
||||
QByteArray data;
|
||||
QDataStream stream( &data, QIODevice::WriteOnly );
|
||||
QDataStream stream(&data, QIODevice::WriteOnly);
|
||||
stream << config;
|
||||
d->connection->send( CMD_CONFIG, data );
|
||||
d->connection->send(CMD_CONFIG, data);
|
||||
}
|
||||
|
||||
SlaveInterface* SlaveInterface::createSlave( const QString &protocol, const KUrl& url, int& error, QString& error_text )
|
||||
SlaveInterface* SlaveInterface::createSlave(const QString &protocol, const KUrl &url, int &error, QString &error_text)
|
||||
{
|
||||
kDebug(7002) << "createSlave" << protocol << "for" << url;
|
||||
SlaveInterface *slave = new SlaveInterface(protocol);
|
||||
|
@ -310,7 +310,7 @@ SlaveInterface* SlaveInterface::createSlave( const QString &protocol, const KUrl
|
|||
return slave;
|
||||
}
|
||||
|
||||
void SlaveInterface::setConnection( Connection* connection )
|
||||
void SlaveInterface::setConnection(Connection* connection)
|
||||
{
|
||||
Q_D(SlaveInterface);
|
||||
d->connection = connection;
|
||||
|
@ -528,7 +528,7 @@ bool SlaveInterface::dispatch(int cmd, const QByteArray &rawdata)
|
|||
return true;
|
||||
}
|
||||
|
||||
void SlaveInterface::setOffset( KIO::filesize_t o)
|
||||
void SlaveInterface::setOffset(KIO::filesize_t o)
|
||||
{
|
||||
Q_D(SlaveInterface);
|
||||
d->offset = o;
|
||||
|
@ -540,11 +540,11 @@ KIO::filesize_t SlaveInterface::offset() const
|
|||
return d->offset;
|
||||
}
|
||||
|
||||
void SlaveInterface::sendResumeAnswer( bool resume )
|
||||
void SlaveInterface::sendResumeAnswer(bool resume)
|
||||
{
|
||||
Q_D(SlaveInterface);
|
||||
kDebug(7007) << "ok for resuming:" << resume;
|
||||
d->connection->sendnow( resume ? CMD_RESUMEANSWER : CMD_NONE, QByteArray() );
|
||||
d->connection->sendnow(resume ? CMD_RESUMEANSWER : CMD_NONE, QByteArray());
|
||||
}
|
||||
|
||||
void SlaveInterface::sendMessageBoxAnswer(int result)
|
||||
|
|
Loading…
Add table
Reference in a new issue