Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, December 2006
mounting file system in qt3


Message 1 in thread

Hi,
I want to mount file system in qt3. How ?

-- 
 [ signature omitted ] 

Message 2 in thread

On 12/1/06, Sharique uddin Ahmed Farooqui <safknw@xxxxxxxxx> wrote:
> Hi,
> I want to mount file system in qt3. How ?

Explain in more detail. Mount what and how, where?

-- 
 [ signature omitted ] 

Message 3 in thread

On 12/1/06, Robin Ericsson <lobbin@xxxxxxxxx> wrote:
>
> On 12/1/06, Sharique uddin Ahmed Farooqui <safknw@xxxxxxxxx> wrote:
> > Hi,
> > I want to mount file system in qt3. How ?
>
> Explain in more detail. Mount what and how, where?


I want to mount ext3 file system  through  my application.

--
 [ signature omitted ] 

Message 4 in thread

Hi,
Sharique uddin Ahmed Farooqui escribió:
>
>
> On 12/1/06, *Robin Ericsson* <lobbin@xxxxxxxxx 
> <mailto:lobbin@xxxxxxxxx>> wrote:
>
>     On 12/1/06, Sharique uddin Ahmed Farooqui <safknw@xxxxxxxxx
>     <mailto:safknw@xxxxxxxxx>> wrote:
>     > Hi,
>     > I want to mount file system in qt3. How ?
>
>     Explain in more detail. Mount what and how, where? 
>
>
> I want to mount ext3 file system  through  my application.

A call to mount() with QProcess can do it, but there are some 
restrictions as someone else said you in the thread.
You'll need an /etc/fstab with a line to mount the directory you want 
to. Then, mount() calls for this directory can be done without need to 
be root. BUT, probably you'll need to be root to do other kind of mount().

I suggest you to do it with a user who can do 'sudo' or try with gksudo. 
Another option is to call your own script to accomplish with the root 
restrictions.

Javier.

Message 5 in thread

Sharique uddin Ahmed Farooqui escribió:
> I want to mount file system in qt3. How ?
What file system type? Where? What are you trying to do?
Maybe a lot of people can help if you be more precise in your questions ...

Javier

--
 [ signature omitted ] 

Message 6 in thread

I think you have to give the platform specific API call. Eg mount() under linux

On 12/1/06, Javier Díaz <jdiaz@xxxxxxxxxxx> wrote:
> Sharique uddin Ahmed Farooqui escribió:
> > I want to mount file system in qt3. How ?
> What file system type? Where? What are you trying to do?
> Maybe a lot of people can help if you be more precise in your questions ...
>
> Javier
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>


-- 
 [ signature omitted ] 

Message 7 in thread

On 01.12.06 16:41:07, Sharique uddin Ahmed Farooqui wrote:
> I want to mount file system in qt3. How ?

Use the command mount for that, although you'll need root-rights for
this to happen or an entry in the fstab.

Or try to find out how KDE does that, using hal+pmount.

In any case, there's not Qt class or function doing the mounting for
you.

Andreas

-- 
 [ signature omitted ]