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

List:       kde-devel
Subject:    Re: [kprint] Can't use GLOB_TILDE on Solaris
From:       Michael Goffioul <goffioul () imec ! be>
Date:       2001-03-02 11:21:03
[Download RAW message or body]

> The Qt equivs would be:
>
>  - ~ expansion: QDir::homeDirPath()
>        this is a static function returning a QString, for example:
>
>         QDir thisDir(QDir::homeDirPath());
>
>        thisDir will now be set to the home directory.
>
>  - wildcard filtering of files:
>
>         QDir thisDir(path);
>         QStringList files = thisDir.entryList("foo?bar*");
>
>         or
>
>         thisDir.setNameFileter("foo*bar?");
>         QStringList files = thisDir.entryList;

the "glob" function is used to process path like:

~/.printers/interface/*/*

Actually, this is not the tilde expansion which is important, but the wildcard
expansion (which can includes several levels). Can the above code handle
this ? (I mean without recursion on the "entryList" member).

Michael.

--
------------------------------------------------------------------
Michael Goffioul                IMEC-DESICS-MIRA
e-mail: goffioul@imec.be        (Mixed-Signal and RF Applications)
Tel:    +32/16/28-8510          Kapeldreef, 75
Fax:    +32/16/28-1515          3001 HEVERLEE, BELGIUM
------------------------------------------------------------------



 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

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

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