void CschedulerDlg::OnFileQuit() { // TODO: Add your command handler code here m_app->WriteProfileInt(_T("KScheduler"),_T("update_time"),m_timeSyn); KillTimer(1); storeNote(); updatePosition(KS_SAVEPOS); //mutex ReleaseMutex(m_mutex); EndDialog(0); }
void CschedulerDlg::OnClose() { // TODO: Add your message handler code here and/or call default m_app->WriteProfileInt(_T("KScheduler"),_T("update_time"),m_timeSyn); KillTimer(1); KillTimer(2); KillTimer(3); storeNote(); updatePosition(KS_SAVEPOS); //mutex ReleaseMutex(m_mutex); //Remove the Icon from the Systray TrayMessage( NIM_DELETE ); CDialog::OnClose(); }
void NotesRepository::slotNotesReceived(const Akonadi::Item::List &items) { mNotesLoaded += items.count(); foreach(const Akonadi::Item &item, items) { storeNote(item); }