Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-15 Thread David Faure
On Monday 13 January 2014 22:00:53 abba...@gmail.com wrote: But I think maybe we should get the C++ APIs into qtbase, so that QtQuick.Controls.FileDialog doesn't depend on qtsystems. Let me rewind a bit here... I thought QtCore would have query stuff, not mount functionality - which most

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-15 Thread Rutledge Shawn
On 13 Jan 2014, at 8:06 PM, David Faure wrote: On Monday 13 January 2014 22:00:53 abba...@gmail.com wrote: But I think maybe we should get the C++ APIs into qtbase, so that QtQuick.Controls.FileDialog doesn't depend on qtsystems. Let me rewind a bit here... I thought QtCore would have

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-15 Thread Alvin Yulo
Here are the QDrive APIs that Tony mentioned below: https://codereview.qt-project.org/#change,75336,patchset=1 Regards, Alvin From: Иван Комиссаров [abba...@gmail.com] Sent: Friday, January 10, 2014 3:49 PM To: Tony Van Eerd Cc: Константин Ритт; Matt Broadstone;

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-13 Thread Rutledge Shawn
On 13 Jan 2014, at 5:06 PM, Alvin Yulo wrote: Here are the QDrive APIs that Tony mentioned below: https://codereview.qt-project.org/#change,75336,patchset=1 Cool. But I think maybe we should get the C++ APIs into qtbase, so that QtQuick.Controls.FileDialog doesn't depend on qtsystems. So

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-13 Thread Tony Van Eerd
On 13 Jan 2014, at 5:06 PM, Alvin Yulo wrote: Here are the QDrive APIs that Tony mentioned below: https://codereview.qt-project.org/#change,75336,patchset=1 Cool. But I think maybe we should get the C++ APIs into qtbase, so that QtQuick.Controls.FileDialog doesn't depend on

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-13 Thread abbapoh
1) well, it can go to qt base, but what module? We can't add mount and monitor to qtcore, because Linux implementation will require dbus. 2) separate, see above. Drive info should belong to qt core, IMHO. Иван Комиссаров 13 янв. 2014 г., в 21:53, Tony Van Eerd tvane...@blackberry.com

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-13 Thread Tony Van Eerd
1) well, it can go to qt base, but what module? We can't add mount and monitor to qtcore, because Linux implementation will require dbus. I'm not familiar with the details there, can you briefly explain why dbus is necessary and why it is a bad thing for qtcore? 2) separate, see above.

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-13 Thread Thiago Macieira
On segunda-feira, 13 de janeiro de 2014 18:04:24, Tony Van Eerd wrote: 1) well, it can go to qt base, but what module? We can't add mount and monitor to qtcore, because Linux implementation will require dbus. I'm not familiar with the details there, can you briefly explain why dbus is

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-13 Thread David Faure
On Monday 13 January 2014 18:04:24 Tony Van Eerd wrote: 1) well, it can go to qt base, but what module? We can't add mount and monitor to qtcore, because Linux implementation will require dbus. I'm not familiar with the details there, can you briefly explain why dbus is necessary and why

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-13 Thread abbapoh
I think, mount requires root privileges, doesn't it? Not sure about libudev, maybe it can be used from userspace... Иван Комиссаров 13 янв. 2014 г., в 22:17, David Faure david.fa...@kdab.com написал(а): On Monday 13 January 2014 18:04:24 Tony Van Eerd wrote: 1) well, it can go to qt base,

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-13 Thread David Faure
On Monday, January 13, 2014 10:32:12 PM abba...@gmail.com wrote: I think, mount requires root privileges, doesn't it? Not if the entry is present in fstab, with the option user or users. -- David Faure | david.fa...@kdab.com | Managing Director KDAB France KDAB (France) S.A.S., a KDAB Group

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-13 Thread Sune Vuorela
On 2014-01-13, David Faure david.fa...@kdab.com wrote: Mounting can still be done with `mount`, no? Only in rare cases. Normally on linux from a user app you would call out to udisks, who would connect to polkit and have polkit maybe query you and other magic. Notifications mean listening to

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-13 Thread Konstantin Ritt
2014/1/13 David Faure david.fa...@kdab.com On Monday, January 13, 2014 10:32:12 PM abba...@gmail.com wrote: I think, mount requires root privileges, doesn't it? Not if the entry is present in fstab, with the option user or users. Still, what about volumes (|un)mounting of which requires

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-13 Thread Kevin Krammer
On Monday, 2014-01-13, 22:00:53, abba...@gmail.com wrote: 1) well, it can go to qt base, but what module? We can't add mount and monitor to qtcore, because Linux implementation will require dbus. I think this will come up again and again until there is a QPA like platform adapter on the

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-13 Thread Thiago Macieira
On segunda-feira, 13 de janeiro de 2014 21:28:05, Kevin Krammer wrote: D-Bus simply is *the* system integration technology on Linux, QtCore will need to be able to do D-Bus at runtime. That will always require plugins. -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-13 Thread Kevin Krammer
On Monday, 2014-01-13, 12:37:54, Thiago Macieira wrote: On segunda-feira, 13 de janeiro de 2014 21:28:05, Kevin Krammer wrote: D-Bus simply is *the* system integration technology on Linux, QtCore will need to be able to do D-Bus at runtime. That will always require plugins. Yes, but QPA

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-13 Thread Thiago Macieira
On segunda-feira, 13 de janeiro de 2014 21:48:22, Kevin Krammer wrote: The alternative to platform plugins is to put all those IPC basics into QtCore itself, like what was done for PPS. I.e. moving parts of QtDBus into QtCore. We could do that, though I'd rather not. The basics for kdbus will

[Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-10 Thread Rutledge Shawn
On 1 Mar 2013, at 11:20 PM, Lorn Potter wrote: On 02/03/13 07:59, Thiago Macieira wrote: On sábado, 2 de março de 2013 07.51.04, Lorn Potter wrote: Wasn't there already similar functionality in QtMobility? QSystemStorageInfo seems to provide similar functionality? Yes it does. Or did

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-10 Thread Tony Van Eerd
There was some work going on inside BlackBerry to revamp QSystemStorageInfo. Last version I saw had: QDrive: - similar to QDir (not a QObject!). - construct from URI/path (ie dev/sda1 or D:\) - mount/unmount/is-it-mounted/list-of-mount-points/etc - total/available space QDriveWatcher: -

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-10 Thread Matt Broadstone
On Friday, January 10, 2014, Tony Van Eerd wrote: There was some work going on inside BlackBerry to revamp QSystemStorageInfo. Last version I saw had: QDrive: - similar to QDir (not a QObject!). - construct from URI/path (ie dev/sda1 or D:\) -

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-10 Thread Konstantin Ritt
https://codereview.qt-project.org/73945 Regards, Konstantin 2014/1/10 Matt Broadstone mbroa...@gmail.com On Friday, January 10, 2014, Tony Van Eerd wrote: There was some work going on inside BlackBerry to revamp QSystemStorageInfo. Last version I saw had: QDrive: - similar to QDir

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-10 Thread Matt Broadstone
On Fri, Jan 10, 2014 at 1:31 PM, Konstantin Ritt ritt...@gmail.com wrote: https://codereview.qt-project.org/73945 I looked at this, but it lacks the extra functionality that Tony indicates is in their classes. Specifically, not just info about the drive/device, but the ability to mount/unmount

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-10 Thread Konstantin Ritt
2014/1/10 Matt Broadstone mbroa...@gmail.com On Fri, Jan 10, 2014 at 1:31 PM, Konstantin Ritt ritt...@gmail.comwrote: https://codereview.qt-project.org/73945 I looked at this, but it lacks the extra functionality that Tony indicates is in their classes. Specifically, not just info about

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-10 Thread Tony Van Eerd
We will put up our stuff into a review next week. Currently it is mostly header/API only, no implementation files. We are just trying to get the API designed. We looked at QDriveInfo (either that one or similar one of the same name) and, basically, stole many ideas from it. Ours was also

Re: [Development] moving some SystemInfo stuff into qtbase (was Re: QtDriveInfo module in Playground)

2014-01-10 Thread Иван Комиссаров
I also had a drive monitor class https://gitorious.org/qdrive/qdrive/source/bf9f993ec64781534169a7ac630632805ef34374:src/driveinfo/qdrivecontroller.h but it needs a bit polishing Иван Комиссаров 11 янв. 2014 г., в 0:28, Tony Van Eerd tvane...@blackberry.com написал(а): We will put up our