/glogg/glogg/tests/ |
H A D | watchtowerTest.cpp |
|
/glogg/tests/ |
H A D | watchtowerTest.cpp | 47 string createTempEmptyFile( string file_name = "" ) { in createTempEmptyFile() argument 50 if ( ! file_name.empty() ) { in createTempEmptyFile() 51 name = file_name.c_str(); in createTempEmptyFile() 79 auto file_name = createTempEmptyFile(); in TEST_F() local 80 auto registration = watch_tower->addFile( file_name, [] (void) { } ); in TEST_F() 96 string file_name; member in WatchTowerSingleFile 118 file_name = createTempEmptyFile(); 119 registration = registerFile( file_name ); 123 remove( file_name.c_str() ); in ~WatchTowerSingleFile() 137 void appendDataToFile( const string& file_name ) { in appendDataToFile() argument [all …]
|
/glogg/glogg/src/ |
H A D | watchtower.h |
|
H A D | winwatchtowerdriver.h |
|
H A D | kqueuewatchtowerdriver.cpp |
|
H A D | dbusexternalcom.h |
|
H A D | dbusexternalcom.cpp |
|
H A D | inotifywatchtowerdriver.cpp |
|
H A D | session.cpp |
|
H A D | winwatchtowerdriver.cpp |
|
H A D | externalcom.h |
|
H A D | watchtowerlist.h |
|
H A D | session.h |
|
H A D | kqueuewatchtowerdriver.h |
|
/glogg/src/ |
H A D | watchtower.h | 62 Registration addFile( const std::string& file_name, 108 bool isSymLink( const std::string& file_name ); 142 const std::string& file_name, in addFile() argument 145 LOG(logDEBUG) << "WatchTower::addFile " << file_name; in addFile() 152 observed_file_list_.searchByName( file_name ); in addFile() 161 std::tie( file_id, symlink_id ) = addFileToDriver( file_name ); in addFile() 163 ObservedFile<Driver>( file_name, ptr, file_id, symlink_id ) ); in addFile() 165 auto dir = observed_file_list_.watchedDirectoryForFile( file_name ); in addFile() 167 LOG(logDEBUG) << "WatchTower::addFile dir for " << file_name in addFile() 170 dir = observed_file_list_.addWatchedDirectoryForFile( file_name, in addFile() [all …]
|
H A D | winwatchtowerdriver.h | 47 WinNotificationInfo( Action action, std::wstring file_name ) in WinNotificationInfo() argument 48 { action_ = action; file_name_ = file_name; } in WinNotificationInfo() 117 WinWatchedDirRecord( const std::string& file_name ) in WinWatchedDirRecord() 118 : path_( file_name ) { } in WinWatchedDirRecord() 147 FileChangeToken( const std::string& file_name ) in FileChangeToken() argument 148 { readFromFile( file_name ); } in FileChangeToken() 150 void readFromFile( const std::string& file_name ); 171 FileId addFile( const std::string& file_name ); 172 SymlinkId addSymlink( const std::string& file_name ); 173 DirId addDir( const std::string& file_name ); [all …]
|
H A D | kqueuewatchtowerdriver.cpp | 71 const std::string& file_name ) in addFile() argument 75 int fd = open( file_name.c_str(), O_EVTONLY ); in addFile() 78 … LOG(logDEBUG) << "KQueueWatchTowerDriver::addFile new fd " << fd << " for file " << file_name; in addFile() 95 LOG(logERROR) << "KQueueWatchTowerDriver::addFile cannot open " << file_name; in addFile() 102 const std::string& file_name ) in addSymlink() argument 116 const std::string& file_name ) in addDir() argument 128 int fd = open( file_name.c_str(), O_EVTONLY ); in addDir() 131 LOG(logDEBUG) << "KQueueWatchTowerDriver::addDir new fd " << fd << " for dir " << file_name; in addDir() 148 LOG(logERROR) << "KQueueWatchTowerDriver::addDir cannot open " << file_name; in addDir()
|
H A D | dbusexternalcom.h | 35 virtual void loadFile( const QString& file_name ) const; 51 void loadFile( const QString& file_name ); 55 void signalLoadFile( const QString& file_name );
|
H A D | dbusexternalcom.cpp | 78 void DBusInterfaceExternalCommunicator::loadFile( const QString& file_name ) in loadFile() argument 82 emit signalLoadFile( file_name ); in loadFile() 95 void DBusExternalInstance::loadFile( const QString& file_name ) const in loadFile() 97 QDBusReply<void> reply = dbusInterface_->call( "loadFile", file_name ); in loadFile()
|
H A D | inotifywatchtowerdriver.cpp | 48 const std::string& file_name ) in addFile() argument 51 int wd = inotify_add_watch( inotify_fd_, file_name.c_str(), in addFile() 60 const std::string& file_name ) in addSymlink() argument 62 int symlink_wd = inotify_add_watch( inotify_fd_, file_name.c_str(), in addSymlink() 71 const std::string& file_name ) in addDir() argument 73 int dir_wd = inotify_add_watch( inotify_fd_, file_name.c_str(), in addDir() 75 LOG(logDEBUG) << "INotifyWatchTower::addFile dir " << file_name in addDir()
|
H A D | session.cpp | 51 ViewInterface* Session::getViewIfOpen( const std::string& file_name ) const in getViewIfOpen() 55 { return ( o.second.fileName == file_name ); } ); in getViewIfOpen() 63 ViewInterface* Session::open( const std::string& file_name, in open() argument 68 QFileInfo fileInfo( file_name.c_str() ); in open() 70 return openAlways( file_name, view_factory, nullptr ); in open() 174 ViewInterface* Session::openAlways( const std::string& file_name, in openAlways() argument 193 { file_name, in openAlways() 199 log_data->attachFile( QString( file_name.c_str() ) ); in openAlways()
|
H A D | winwatchtowerdriver.cpp | 62 …const std::wstring file_name = { reinterpret_cast<const wchar_t*>( new_position + 12 ), length / 2… in updateCurrentNotification() local 68 current_notification_ = WinNotificationInfo( int_to_action.at( action ), file_name ); in updateCurrentNotification() 85 const std::string& file_name ) in readFromFile() argument 97 longstringize( file_name ).c_str(), in readFromFile() 99 ( file_name ).c_str(), in readFromFile() 160 const std::string& file_name ) in addFile() argument 167 const std::string& file_name ) in addSymlink() argument 176 const std::string& file_name ) in addDir() argument 188 serialisedAddDir( file_name, dir_id ); in addDir()
|
H A D | externalcom.h | 38 virtual void loadFile( const QString& file_name ) const = 0; 60 void loadFile( const QString& file_name );
|
H A D | watchtowerlist.h | 44 const std::string& file_name, in ObservedFile() 48 : file_name_( file_name ) { in ObservedFile() 115 ObservedFile<Driver>* searchByName( const std::string& file_name ); 146 … std::shared_ptr<ObservedDir<Driver>> watchedDirectoryForFile( const std::string& file_name ); 147 … std::shared_ptr<ObservedDir<Driver>> addWatchedDirectoryForFile( const std::string& file_name, 214 const std::string& file_name ) in searchByName() argument 220 if ( existing_observer->file_name_ == file_name ) in searchByName() 222 LOG(logDEBUG) << "Found " << file_name; in searchByName() 375 const std::string& file_name ) in watchedDirectoryForFile() argument 377 return watchedDirectory( directory_path( file_name ) ); in watchedDirectoryForFile() [all …]
|
H A D | session.h | 60 ViewInterface* getViewIfOpen( const std::string& file_name ) const; 65 ViewInterface* open( const std::string& file_name, 110 ViewInterface* openAlways( const std::string& file_name,
|