notebookCounterRunner.setNoteIndex(getNoteIndex());
notebookCounterRunner.notebookSignal.countsChanged.connect(this, "setNotebookCounter(List)");
notebookThread = new QThread(notebookCounterRunner, "Notebook Counter Thread");
notebookThread.start();
tagSignal = new TagSignal();
tagCounterRunner = new CounterRunner("tag_counter.log", CounterRunner.TAG,
Global.getDatabaseUrl(), Global.getIndexDatabaseUrl(), Global.getResourceDatabaseUrl(),
Global.getDatabaseUserid(), Global.getDatabaseUserPassword(), Global.cipherPassword);
tagCounterRunner.setNoteIndex(getNoteIndex());
tagCounterRunner.tagSignal.countsChanged.connect(this, "setTagCounter(List)");
tagThread = new QThread(tagCounterRunner, "Tag Counter Thread");
tagThread.start();
trashSignal = new TrashSignal();
trashCounterRunner = new CounterRunner("trash_counter.log", CounterRunner.TRASH,
Global.getDatabaseUrl(), Global.getIndexDatabaseUrl(), Global.getResourceDatabaseUrl(),
Global.getDatabaseUserid(), Global.getDatabaseUserPassword(), Global.cipherPassword);
trashCounterRunner.trashSignal.countChanged.connect(this, "trashSignalReceiver(Integer)");
trashThread = new QThread(trashCounterRunner, "Trash Counter Thread");
trashThread.start();
// reloadTrashCount();
wordMap = new HashMap<String, String>();
tagSignal = new TagSignal();
logger.log(logger.EXTREME, "Setting save thread");
saveRunner = new SaveRunner("saveRunner.log",
Global.getDatabaseUrl(), Global.getIndexDatabaseUrl(), Global.getResourceDatabaseUrl(),
Global.getDatabaseUserid(), Global.getDatabaseUserPassword(), Global.cipherPassword);