From 6fb037ec6c7804f6ff7eca16903ca1eb01b03056 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 16 May 2012 09:49:32 +0000 Subject: [PATCH] add logging for kimmo; refs #155 --- src/qbrowserlib/filestorage.hxx | 21 +++++++-- src/smartcardauth.hxx | 76 +++++++++++++++++++++++++++++++++ test/qmake.pro.in | 4 ++ 3 files changed, 98 insertions(+), 3 deletions(-) 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: "<