File Explorer

Login to reply to this topic.
Fri, 2006-01-06 09:33
Joined: 2005-02-22
Forum posts: 39
Hi

  I want a kind of file explorer in my application to browse through the files .

Like  in FExplorer ...

How can i implement it .

Is there a way of reading name of files in a directory ?
If yes how ??

Please help

Regards
Veeraj Thaploo


Fri, 2006-01-06 10:08
Joined: 2005-07-28
Forum posts: 121
Re: File Explorer
Check out the SDK documentation on RFs, RDir... etc... there is loads of info in there about it.
Sat, 2006-01-07 19:23
Joined: 2004-10-31
Forum posts: 92
Re: File Explorer
There's an example on the Sony Ericsson developer site for UIQ 3.0 (http://developer.sonyericsson.com/site/global/techsupport/tipstrickscode/symbian/p_simple_filemanager_listbox_uiq3.jsp)

It's not the best example of Symbian OS code-style, or everything you need, but may be a good place to start.
Sun, 2006-01-08 16:13
Joined: 2005-11-28
Forum posts: 13
Re: File Explorer
There is an example "FileList" In Nokia for Series60,May be it can help you.
Mon, 2006-01-09 06:53
Joined: 2005-08-19
Forum posts: 165
Re: File Explorer
This might help you:

Code:
//**for openning files
TBuf<256> CTestContainer::OpenDir(){

_LIT( KDirName, "c:\\System\\Apps\\YourAppr\\" );
_LIT( KFileSpec,"c:\\System\\Apps\\YourApp\\*.*" );

TBuf<256> fileName;

    RFs     FileSession;
CDir *dirList = NULL;
TInt i;

FileSession.Connect();
fileName = FindFiles(FileSession,KFileSpec,KDirName);

   
if( dirList ) //CDir is NULL or no Files Found
        {
            delete dirList;
            dirList = NULL;
        }

FileSession.Close();

return fileName;
}

//This will be used to find files
TBuf<256> CTestContainer::FindFiles(RFs& aSession, const TDesC& aWildName,
            const TDesC& aScanDir)
{       
    TFindFile file_finder(aSession);
    CDir* file_list;
    TInt err = file_finder.FindWildByDir(aWildName,aScanDir, file_list);
TBuf<256> fName;
    while (err==KErrNone)
        {
        TInt i;
        for (i=0; i<file_list->Count(); i++)
            {
            TParse fullentry;
            fullentry.Set((*file_list)[i].iName,& file_finder.File(),NULL);
            // Do something with the full filename...
         
            }
fName = (*file_list)[1].iName;
//User::InfoPrint(fName);
        delete file_list;
        err=file_finder.FindWild(file_list);
        }
return fName;
}
Mon, 2006-01-09 07:35
Joined: 2005-02-22
Forum posts: 39
Re: File Explorer

Thanks a lot guys ...

It is great help ....

I also want a way in Listbox to open a new listbox window
When a  list Item is selected (Say on click )

I any pointer will be a great help
  • Login to reply to this topic.