#include <config.h>
-#ifdef __GNUG__
-#pragma implementation
-#endif
-
#include "FileMonitor.h"
#include "frontends/Timeout.h"
#include <boost/bind.hpp>
#include <boost/signals/trackable.hpp>
+namespace lyx {
+namespace support {
+
struct FileMonitor::Impl : public boost::signals::trackable {
///
return;
pimpl_->timestamp_ = finfo.getModificationTime();
- pimpl_->checksum_ = lyx::sum(pimpl_->filename_);
+ pimpl_->checksum_ = sum(pimpl_->filename_);
if (pimpl_->timestamp_ && pimpl_->checksum_) {
pimpl_->timer_.start();
// If we aren't actively monitoring the file, then recompute the
// checksum explicitly.
if (!pimpl_->timer_.running() && !pimpl_->filename_.empty())
- return lyx::sum(pimpl_->filename_);
+ return sum(pimpl_->filename_);
return pimpl_->checksum_;
}
if (new_timestamp != timestamp_) {
timestamp_ = new_timestamp;
- unsigned long const new_checksum = lyx::sum(filename_);
+ unsigned long const new_checksum = sum(filename_);
if (new_checksum != checksum_) {
checksum_ = new_checksum;
changed = true;
if (changed)
fileChanged_();
}
+
+} // namespace support
+} // namespace lyx