How to retrieve the list of media files (sounds, pictures, videos,..) without harcoding the paths like c:\nokia\sounds\ and enumerating using a wildcard ?
How to retrieve the list of media files (sounds, pictures, videos,..) without harcoding the paths like c:\nokia\sounds\ and enumerating using a wildcard ?
Hi,
the nokia path is on all phone drives & mmc cards... UIQ is also doing it in its own way. So hardcoding/config file is not such limitation. I have one central class included by all application, which returns all necessary paths. Other possibility is pathinfo.h. there is PathInfo class with some static methods...
Bye
STeN
Sorry, but i desagree. Don't harcode path !
On serie 60 you should use PathInfo class the retrieve them.
Thanx, you're right ! I found related infos in the doc.
I'm using this in conjonction with GetDir and get what I want but unfortunately I cannot retrieve UIDs.
It seems to be the only field that remain empty.
My statement is:
m_fsSession.GetDir(sPathName,KEntryAttNormal|KEntryAttAllowUid,ESortByUid,pFileList,pDirList);
I have no UID at all. I tried this on the emulator with jpegs and 3gps from my 6600.
Is it an emulator problem or am i wrong somehere ?