Subversion Repositories public

Rev

Rev 63 | Rev 69 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 63 Rev 67
Line 20... Line 20...
20
#include <string>
20
#include <string>
21
#include <deque>
21
#include <deque>
22
22
23
#include "strtok.h"
23
#include "strtok.h"
24
24
25
/// Incron table base directory
25
/// Incron user table base directory
26
#define INCRON_TABLE_BASE "/var/spool/incron/"
26
#define INCRON_USER_TABLE_BASE "/var/spool/incron/"
-
 
27
-
 
28
/// Incron system table base directory
-
 
29
#define INCRON_SYS_TABLE_BASE "/etc/incron.d/"
27
30
28
31
29
/// Incron table entry class.
32
/// Incron table entry class.
30
class InCronTabEntry
33
class InCronTabEntry
31
{
34
{
Line 209... Line 212...
209
   * \return path to the table file
212
   * \return path to the table file
210
   *
213
   *
211
   * \attention No tests (existence, permission etc.) are done.
214
   * \attention No tests (existence, permission etc.) are done.
212
   */
215
   */
213
  static std::string GetUserTablePath(const std::string& rUser);
216
  static std::string GetUserTablePath(const std::string& rUser);
-
 
217
 
-
 
218
  /// Composes a path to a system incron table file.
-
 
219
  /**
-
 
220
   * \param[in] rName table name (pseudouser)
-
 
221
   * \return path to the table file
-
 
222
   *
-
 
223
   * \attention No tests (existence, permission etc.) are done.
-
 
224
   */
-
 
225
  static std::string GetSystemTablePath(const std::string& rName);
214
226
215
protected:
227
protected:
216
  std::deque<InCronTabEntry> m_tab; ///< incron table
228
  std::deque<InCronTabEntry> m_tab; ///< incron table
217
};
229
};
218
230