A simple Qt based browser with no bullshit that supports PKCS#11 tokens (such as the SuisseID).
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
/*! @file
|
|
|
|
|
|
|
|
@id $Id$
|
|
|
|
*/
|
|
|
|
// 1 2 3 4 5 6 7 8
|
|
|
|
// 45678901234567890123456789012345678901234567890123456789012345678901234567890
|
|
|
|
|
|
|
|
#include <qbrowserlib/filestorage.hxx>
|
|
|
|
|
|
|
|
#include<QtCore/QDebug>
|
|
|
|
|
|
|
|
class TestFileWatch: public QObject {
|
|
|
|
Q_OBJECT;
|
|
|
|
public:
|
|
|
|
TestFileWatch(QString file): _storage(file) {
|
|
|
|
assert(connect(&_storage, SIGNAL(changed()), SLOT(changed())));
|
|
|
|
}
|
|
|
|
private Q_SLOTS:
|
|
|
|
void changed() {
|
|
|
|
qDebug()<<"File has changed: "<<_storage.read().join("; ");
|
|
|
|
}
|
|
|
|
private:
|
|
|
|
qbrowserlib::FileStorage _storage;
|
|
|
|
};
|