Automatic reload of a database when it get modified

When the database if modified by an other instance of KeePassX, KeePassX
detect it and reload automatically the database.
This commit is contained in:
Sebastien Fricker 2014-05-03 16:59:41 +02:00
parent e263c475c9
commit 7a8d4577f1
7 changed files with 162 additions and 0 deletions

View file

@ -24,6 +24,7 @@
#include "core/Global.h"
#include "gui/entry/EntryModel.h"
#include "core/FileSystemWatcher.h"
class ChangeMasterKeyWidget;
class DatabaseOpenWidget;
@ -118,6 +119,7 @@ private Q_SLOTS:
void switchToGroupEdit(Group* entry, bool create);
void updateMasterKey(bool accepted);
void openDatabase(bool accepted);
void databaseModifedExternally();
void unlockDatabase(bool accepted);
void emitCurrentModeChanged();
void clearLastGroup(Group* group);
@ -152,6 +154,7 @@ private:
QTimer* m_searchTimer;
QWidget* widgetBeforeLock;
QString m_filename;
FileSystemWatcher m_file_watcher;
};
#endif // KEEPASSX_DATABASEWIDGET_H