|
#include <CDirectoryDS.h>

Public Member Functions | |
| CDirectoryDS () | |
| Default Constructor. | |
| virtual | ~CDirectoryDS () |
| Destructor. | |
| int | showPolicy () const |
| void | showPolicy (int type) |
| Sets current show policy, see CDirectoryDSpolicies for more information. | |
| void | directory (std::string d) |
| Returns current directory. | |
| const std::string & | directory () const |
| Sets current directory. | |
| void | pattern (std::string pattern) |
| Sets pattern in format like: "*.txt;*.csv;*.xls". | |
| const std::string | pattern () const |
| Returns pattern in format like: "*.txt;*.csv;*.xls". | |
| virtual bool | open () |
| Opens the directory and fills in the dataset. | |
Protected Member Functions | |
| std::string | getFileType (const struct stat &st, CSmallPixmapType &image, const char *fname) const |
A datasource with the list of files and directories along with their attributes. It works just as any other datasource. You set up the parameters, call open() and may use the list. Method close() should be called aftewards to release any allocated resourses.
| std::string sptk::CDirectoryDS::getFileType | ( | const struct stat & | st, | |
| CSmallPixmapType & | image, | |||
| const char * | fname | |||
| ) | const [protected] |
Sets up an appropriate image and a name for the file type
| st | const struct stat &, the file type information | |
| image | CSmallPixmapType&, the image type | |
| fname | const char *, file name |
| int sptk::CDirectoryDS::showPolicy | ( | ) | const [inline] |
Returns current show policy,