[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/kio_virtualfile/kio/kio
From: Allan Sandfeld Jensen <kde () carewolf ! com>
Date: 2006-07-17 18:50:13
Message-ID: 1153162213.572437.31371.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 563502 by carewolf:
Compile
M +5 -5 filejob.cpp
M +4 -4 filejob.h
--- branches/work/kio_virtualfile/kio/kio/filejob.cpp #563501:563502
@@ -35,7 +35,7 @@
#define KIO_ARGS QByteArray packedArgs; QDataStream stream( &packedArgs, QIODevice::WriteOnly ); stream
FileJob::FileJob( const KUrl& url, const QByteArray &packedArgs )
- : SimpleJob(url, CMD_OPEN, packedArgs, false), m_open(false), m_length(0)
+ : SimpleJob(url, CMD_OPEN, packedArgs, false), m_open(false), m_size(0)
{
}
@@ -75,11 +75,11 @@
// ### close?
}
-KIO::filesize_t FileJob::length()
+KIO::filesize_t FileJob::size()
{
if (!m_open) return 0;
- return m_length;
+ return m_size;
}
// Slave sends data
@@ -105,9 +105,9 @@
emit position( this, pos);
}
-void FileJob::slotTotalSize( KIO::filesize_t _length )
+void FileJob::slotTotalSize( KIO::filesize_t t_size )
{
- m_length = _length;
+ m_size = t_size;
}
void FileJob::slotOpen( )
--- branches/work/kio_virtualfile/kio/kio/filejob.h #563501:563502
@@ -75,11 +75,11 @@
void seek( int offset );
/**
- * Length
+ * Size
*
- * @return the file length
+ * @return the file size
*/
- KIO::filesize_t length();
+ KIO::filesize_t size();
/**
* @internal
@@ -144,7 +144,7 @@
protected:
bool m_open;
QString m_mimetype;
- KIO::filesize_t m_length;
+ KIO::filesize_t m_size;
};
} // namespace
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic