On Sunday 25 September 2011 01:48:33 Иван Комиссаров wrote:
> As long as QFileEngines are marked as deprecated, Qt will have no
> possibility to implement virtual filesystem.
> 
> So i would like to discuss features of new VFS.
> 
> I have 2 questions. First - should it work using QFile and QDir classes as
> front-end or it should provide its own API like QVFSFile? Second - if we
> provide new API, should it be synchronous (like QFile) or asynchronous
> (like Q*Socket)?

With Qt 5 I think we should start thinking much more in terms of "a collection 
of libraries on top of a few core libraries". For something to be available, 
it doesn't have to be "inside Qt" (i.e. Core, Gui, Network).

What I mean by that, is that we'll soon have a set of independent libraries 
that can be used with Qt, including libkarchive (ZIP/TAR/XZ/gzip/bzip2...),
libkauth, libkplotting, solid (hardware detection), itemmodels (common proxies 
etc.)... and soon KIO, i.e. an existing, proven stable, implementation of a 
VFS.

Why reinvent the wheel in Qt when you can use an existing framework?
(I'm not saying to use the KDE 4 kio, well you can but it comes with more 
dependencies than one might want. However the goal is for KDE Frameworks 5 to 
provide these pieces exactly in a way that make it easy for any Qt application 
developer to use them.).

To give you an idea, KIO supports at least the following protocols:

about cgi fish gzip  knewsservice magnet   network pop3 settings thumbnail zip 
akonadi  data    floppy     help  man  nfs  pop3s   sftp  trash applications 
desktop fonts  http  konvirc mbox  nntp    programs sieve    videodvd ar    
feed    ftp https konvircs  metainfo nntps   remote   smb   webcal bookmarks    
filenamesearch ghelp  imap4 ldap  mms  perldoc rtsp  smtp  webdav bzip2 file    
groupwise  imaps ldaps mmst   plasma  rtspt  smtps  webdavs  bzip  finger  
groupwises info  lzma  mmsu   pnm   rtspu  tar xz

(some of these are internal, but you can still recognize many useful virtual 
filesystems)

-- 
David Faure, [email protected], http://www.davidfaure.fr
Sponsored by Nokia to work on KDE, incl. Konqueror (http://www.konqueror.org).

_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to