#include <MainSyncFrm.h>
Public Member Functions | |
virtual BOOL | PreCreateWindow (CREATESTRUCT &cs) |
void | backupSyncModeSettings () |
void | restoreSyncModeSettings () |
void | showSettingsWindow (const int paneToDisplay=1) |
bool | checkConnectionSettings () |
int | getDpiX () |
int | getDpiY () |
void | OnConfigClosed () |
void | StartSync () |
int | CancelSync () |
afx_msg LRESULT | OnMsgSyncBegin (WPARAM, LPARAM) |
afx_msg LRESULT | OnMsgSyncEnd (WPARAM, LPARAM) |
afx_msg LRESULT | OnMsgSyncSourceBegin (WPARAM, LPARAM) |
afx_msg LRESULT | OnMsgSyncSourceEnd (WPARAM, LPARAM) |
afx_msg LRESULT | OnMsgItemSynced (WPARAM, LPARAM) |
afx_msg LRESULT | OnMsgTotalItems (WPARAM, LPARAM) |
afx_msg LRESULT | OnMsgStartSyncBegin (WPARAM, LPARAM) |
afx_msg LRESULT | OnMsgStartsyncEnded (WPARAM, LPARAM) |
Message received when sync thread has exited. | |
afx_msg LRESULT | OnMsgRefreshStatusBar (WPARAM, LPARAM) |
afx_msg LRESULT | OnMsgSyncSourceState (WPARAM, LPARAM) |
afx_msg LRESULT | OnMsgUnlockButtons (WPARAM, LPARAM) |
Used to re-enable UI buttons (called after 'continueAfterPrepareSync()' method). | |
afx_msg LRESULT | OnMsgLockButtons (WPARAM, LPARAM) |
Used to re-enable UI buttons (called after 'continueAfterPrepareSync()' method). | |
afx_msg void | OnFileConfiguration () |
afx_msg void | OnToolsFullSync () |
afx_msg void | OnFileSynchronize () |
afx_msg int | OnCancelSync () |
afx_msg void | OnToolsSetloglevel () |
afx_msg BOOL | OnNcActivate (BOOL bActive) |
afx_msg void | OnClose () |
afx_msg LRESULT | OnMsgPopup (WPARAM wParam, LPARAM lParam) |
afx_msg LRESULT | OnOKMsg (WPARAM wParam, LPARAM lParam) |
Public Attributes | |
CConfigFrame * | pConfigFrame |
HBITMAP | hBmpDarkBlue |
HBITMAP | hBmpBlue |
HBITMAP | hBmpDark |
HBITMAP | hBmpLight |
CStatusBar | wndStatusBar |
CSplitter | wndSplitter |
bool | bSyncStarted |
Protected Member Functions | |
afx_msg int | OnCreate (LPCREATESTRUCT lpCreateStruct) |
virtual BOOL | OnCreateClient (LPCREATESTRUCT lpcs, CCreateContext *pContext) |
afx_msg void | OnInitMenuPopup (CMenu *pPopupMenu, UINT nIndex, BOOL bSysMenu) |
Overrided to dynamically remove the 'view User Guide' button & separator. | |
Protected Attributes | |
HANDLE | hSyncThread |
DWORD | dwThreadId |
bool | configOpened |
int | dpiX |
int | dpiY |
int | syncModeCalendar |
int | syncModeContacts |
int | syncModeTasks |
int | syncModeNotes |
int | syncModePictures |
bool | backupEnabledContacts |
bool | backupEnabledCalendar |
bool | backupEnabledTasks |
bool | backupEnabledNotes |
bool | backupEnabledPictures |
int | currentSource |
int | totalItems |
int | currentItem |
CFont | fontBold |
Private Attributes | |
int | contactsBegin |
int | calendarBegin |
int | tasksBegin |
int | notesBegin |
int | picturesBegin |
Contains:
TODO: refactoring: use arrays of ssources
LRESULT CMainSyncFrame::OnMsgStartsyncEnded | ( | WPARAM | wParam, | |
LPARAM | lParam | |||
) |
Message received when sync thread has exited.
'lParam' is the exitThread code (0 if no errors). Here errors of sync process are managed, and then UI refreshed.
References CSyncForm::iconStatusSync, manageSyncErrorMsg(), CSyncForm::paneSync, CSyncForm::refreshSources(), CSyncForm::syncSourceCalendarState, CSyncForm::syncSourceContactState, CSyncForm::syncSourceNoteState, CSyncForm::syncSourcePictureState, CSyncForm::syncSourceTaskState, and CSyncForm::unlockButtons().