diff --git a/src/qbrowserlib/filestorage.hxx b/src/qbrowserlib/filestorage.hxx index 023b822..7e7f13d 100644 --- a/src/qbrowserlib/filestorage.hxx +++ b/src/qbrowserlib/filestorage.hxx @@ -5,6 +5,7 @@ // 1 2 3 4 5 6 7 8 // 45678901234567890123456789012345678901234567890123456789012345678901234567890 +#include #include #include #include @@ -22,7 +23,12 @@ class Storage: public QObject { //! Emitted if file content has changed. void changed(); public: - Storage() {} + Storage() { + TRC; + } + ~Storage() { + TRC; + } /*! @return true if readable or writable */ bool valid() { return readable() || writeable(); @@ -41,6 +47,11 @@ class Storage: public QObject { virtual QStringList read() = 0; //! Writes storage content from string list. virtual bool write(const QStringList& out) = 0; + public Q_SLOTS: + void emitChanged() { + TRC; + changed(); + } }; //! Implement @ref Storage for files. @@ -49,11 +60,12 @@ class FileStorage: public Storage { public: /*! @param file full path to storage file */ FileStorage(QString file): _file(file) { + TRC; LOG<<"file: "<