9eeb24a34ba95c7d467826589fd5bd2459bcf0c3
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

1) /* Blinker
Stefan Schuermans update copyright header

Stefan Schuermans authored 5 years ago

2)    Copyright 2011-2019 Stefan Schuermans <stefan@blinkenarea.org>
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

3)    Copyleft GNU public license - http://www.gnu.org/copyleft/gpl.html
4)    a blinkenarea.org project */
5) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

6) #ifndef BLINKER_FILE_H
7) #define BLINKER_FILE_H
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

8) 
9) #include <string>
10) 
11) #include "Time.h"
12) 
13) namespace Blinker {
14) 
15) /// information about a file
16) class File
17) {
18) public:
19)   /**
20)    * @brief constructor from path
21)    * @param[in] path path to file
22)    */
23)   File(const std::string &path);
24) 
25) public:
26)   /**
27)    * @brief get path to file
28)    * @return path to file
29)    */
Stefan Schuermans implement common sound dir,...

Stefan Schuermans authored 5 years ago

30)   const std::string & getPath() const;
31) 
32)   /**
33)    * @brief check if file exists
34)    * @return whether file exists
35)    */
36)   bool exists() const;
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

37) 
38)   /**
39)    * @brief check if file has been modified
40)    * @return if file has been modified since last check
41)    */
42)   bool checkModified();
43) 
44) protected:
Stefan Schuermans fix detection of file modif...

Stefan Schuermans authored 13 years ago

45)   std::string m_path;           ///< path to file
46)   Time        m_lastModifyTime; ///< last known modification time was checked
Stefan Schuermans first version, plays videos...

Stefan Schuermans authored 13 years ago

47) }; // class File
48) 
49) } // namespace Blinker
50) 
Stefan Schuermans namespace for preprocessor...

Stefan Schuermans authored 12 years ago

51) #endif // #ifndef BLINKER_FILE_H