[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kde4/kdelibs/kdecore
From:       Laurent Montel <montel () kde ! org>
Date:       2005-06-27 9:11:51
Message-ID: 1119863511.368002.22592.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 429326 by mlaurent:

Make just compile
I didn't find what function setFlag


 M  +7 -6      kqiodevicegzip_p.cpp  


--- branches/work/kde4/kdelibs/kdecore/kqiodevicegzip_p.cpp #429325:429326
@@ -27,7 +27,8 @@
     m_gzfile=0;
     m_ungetchar=-1;
     m_filename=filename;
-    setFlags(IO_Sequential); // We have no direct access, so it is sequential!
+#warning "QT4 porting ???? setFlags(IO_Sequential); ";	
+    //setFlags(IO_Sequential); // We have no direct access, so it is sequential!
     // NOTE: "sequential" also means that you cannot use size()
 }
 
@@ -44,11 +45,11 @@
     if (m_filename.isEmpty())
         return false; // No file name, cannot open!
 
-    if (IO_ReadOnly==mode)
+    if (QIODevice::ReadOnly==mode)
     {
         m_gzfile=gzopen(QFile::encodeName(m_filename),"rb");
     }
-    else if (IO_WriteOnly==mode)
+    else if (QIODevice::WriteOnly==mode)
     {
         m_gzfile=gzopen(QFile::encodeName(m_filename),"wb9"); // Always set best compression
     }
@@ -78,19 +79,19 @@
     }
 }
 
-QIODevice::Offset KQIODeviceGZip::size(void) const
+qlonglong KQIODeviceGZip::size(void) const
 {
     return 0; // You cannot determine size!
 }
 
-QIODevice::Offset  KQIODeviceGZip::at() const
+qlonglong  KQIODeviceGZip::at() const
 {
     if (!m_gzfile)
         return 0;
     return gztell(m_gzfile);
 }
 
-bool KQIODeviceGZip::at(QIODevice::Offset pos)
+bool KQIODeviceGZip::at(qlonglong pos)
 {
     if (!m_gzfile)
         return false;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic