aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FileUtil.hh
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2007-12-30 15:32:53 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2007-12-30 15:32:53 (GMT)
commit04cd2fd14c6f45f61457e034906f630ce46a76cc (patch)
tree67e2f2f7977c3e8525c2ae7eb30f593f7f440b82 /src/FbTk/FileUtil.hh
parent4cc810b0d39917d37fa08034ac7dd509292c9ce3 (diff)
downloadfluxbox-04cd2fd14c6f45f61457e034906f630ce46a76cc.zip
fluxbox-04cd2fd14c6f45f61457e034906f630ce46a76cc.tar.bz2
removed some unneeded headers
Diffstat (limited to 'src/FbTk/FileUtil.hh')
-rw-r--r--src/FbTk/FileUtil.hh8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/FbTk/FileUtil.hh b/src/FbTk/FileUtil.hh
index 664c26d..4721c2f 100644
--- a/src/FbTk/FileUtil.hh
+++ b/src/FbTk/FileUtil.hh
@@ -61,7 +61,7 @@ namespace FileUtil {
61 bool copyFile(const char* from, const char* to); 61 bool copyFile(const char* from, const char* to);
62 62
63}; // end of File namespace 63}; // end of File namespace
64 64
65/// Wrapper class for DIR * routines 65/// Wrapper class for DIR * routines
66class Directory : private FbTk::NotCopyable { 66class Directory : private FbTk::NotCopyable {
67public: 67public:
@@ -70,19 +70,19 @@ public:
70 const std::string &name() const { return m_name; } 70 const std::string &name() const { return m_name; }
71 /// go to start of filelist 71 /// go to start of filelist
72 void rewind(); 72 void rewind();
73 /// gets next dirent info struct in directory and 73 /// gets next dirent info struct in directory and
74 /// jumps to next directory entry 74 /// jumps to next directory entry
75 struct dirent * read(); 75 struct dirent * read();
76 /// reads next filename in directory 76 /// reads next filename in directory
77 std::string readFilename(); 77 std::string readFilename();
78 /// close directory 78 /// close directory
79 void close(); 79 void close();
80 /// open directory 80 /// open directory
81 /// @param dir the directory name 81 /// @param dir the directory name
82 bool open(const char *dir); 82 bool open(const char *dir);
83 /// @return number of entries in the directory 83 /// @return number of entries in the directory
84 size_t entries() const { return m_num_entries; } 84 size_t entries() const { return m_num_entries; }
85 85
86private: 86private:
87 std::string m_name; 87 std::string m_name;
88 DIR *m_dir; 88 DIR *m_dir;