]> git.lyx.org Git - lyx.git/blobdiff - src/support/FileInfo.h
split LyXText::rowlist_ into individual Paragraph::rows_ chunks
[lyx.git] / src / support / FileInfo.h
index 95f84c7d28e8d4f1a53e0b8c24ad398fc1626a69..39551567a56773d2d796d9475c556ccbaad6b87f 100644 (file)
@@ -1,21 +1,17 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
+/**
+ * \file FileInfo.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
  *
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
 
 #ifndef FILE_INFO_H
 #define FILE_INFO_H
 
-#ifdef __GNUG__
-#pragma interface
-#endif
-
 #include <ctime>
 
 #include <sys/types.h>
@@ -24,6 +20,9 @@
 #include <boost/utility.hpp>
 #include "LString.h"
 
+namespace lyx {
+namespace support {
+
 /** Use objects of this class to get information about files.
  *
  * Users must make sure to check fi.isOK() before any operations
@@ -37,12 +36,10 @@ public:
        /** Get information about file.
            If link is true, the information is about the link itself, not
            the file that is obtained by tracing the links. */
-       explicit
-       FileInfo(string const & path, bool link = false);
+       explicit FileInfo(string const & path, bool link = false);
 
        /// File descriptor
-       explicit
-       FileInfo(int fildes);
+       explicit FileInfo(int fildes);
 
        /// Query a new file
        FileInfo & newFile(string const & path, bool link = false);
@@ -51,16 +48,13 @@ public:
        FileInfo & newFile(int fildes);
 
        /// Returns a character describing file type (ls -F)
-       char const * typeIndicator() const;
+       char typeIndicator() const;
 
        /// File protection mode
        mode_t getMode() const;
 
        /// Constructs standard mode string (ls style)
-       void modeString(char * str) const;
-
-       /// returns a letter describing a file type (ls style)
-       char typeLetter() const;
+       string modeString() const;
 
        ///
        time_t getModificationTime() const;
@@ -144,4 +138,7 @@ private:
        string fname_;
 };
 
+} // namespace support
+} // namespace lyx
+
 #endif