KIO
Go to the documentation of this file.
25 #include <QtCore/QTextCodec>
46 connect( job, SIGNAL(data(
KIO::Job*,QByteArray)),
63 void Downloader::redirection(
KIO::Job* ,
const KUrl& url )
68 void Downloader::data(
KIO::Job*,
const QByteArray& data )
70 unsigned offset = m_data.size();
71 m_data.resize( offset + data.size() );
72 std::memcpy( m_data.data() + offset, data.data(), data.size() );
86 m_script = KGlobal::charsets()->codecForName(
87 static_cast<KIO::Job*>( job )->queryMetaData(
"charset" ), dummy )->toUnicode( m_data );
93 setError(
i18n(
"Could not download the proxy configuration script:\n%1" ,
94 job->errorString() ) );
95 else setError(
i18n(
"Could not download the proxy configuration script" ) );
102 #include "downloader.moc"
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Apr 16 2013 19:14:49 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.