コード例 #1
0
ファイル: schedulerDlg.cpp プロジェクト: khiemnv/utilities
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);
}
コード例 #2
0
ファイル: schedulerDlg.cpp プロジェクト: khiemnv/utilities
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();

}
コード例 #3
0
ファイル: notesrepository.cpp プロジェクト: krf/FatCRM
void NotesRepository::slotNotesReceived(const Akonadi::Item::List &items)
{
    mNotesLoaded += items.count();
    foreach(const Akonadi::Item &item, items) {
        storeNote(item);
    }