CSyncForm Class Reference
[User Interface]

Form of the main window. More...

#include <SyncForm.h>

Collaboration diagram for CSyncForm:
[legend]

List of all members.

Public Types

enum  { IDD = IDD_SYNC_FORM }

Public Member Functions

void refreshSource (int sourceId)
 refresh UI info about a source
void refreshSources ()
void repaintPaneControls (int paneType)
 repaints sync controls from a pane associated to a source
void showSyncControls (BOOL show)
void lockButtons ()
 Lock UI buttons of main window.
void unlockButtons ()
 Unlock UI buttons of main window.
void changeContactsStatus (CString &status)
 Used to change the status text for a source.
void changeCalendarStatus (CString &status)
void changeTasksStatus (CString &status)
void changeNotesStatus (CString &status)
afx_msg LRESULT OnInitForm (WPARAM, LPARAM)
afx_msg void OnBnClickedMainButSync ()
afx_msg void OnNcPaint ()
afx_msg HBRUSH OnCtlColor (CDC *pDC, CWnd *pWnd, UINT nCtlColor)
afx_msg BOOL OnEraseBkgnd (CDC *pDC)
afx_msg void OnStnClickedMainBkSync ()
afx_msg void OnStnClickedMainBkContacts ()
afx_msg void OnStnClickedMainBkCalendar ()
afx_msg void OnStnClickedMainBkTasks ()
afx_msg void OnStnClickedMainBkNotes ()

Public Attributes

CFont fontBold
CFont fontNormal
CAnimatedIcon butStart
CAnimatedIcon iconContacts
CAnimatedIcon iconCalendar
CAnimatedIcon iconTasks
CAnimatedIcon iconNotes
CBrush brushHollow
CAnimatedIcon iconStatusContacts
CAnimatedIcon iconStatusCalendar
CAnimatedIcon iconStatusTasks
CAnimatedIcon iconStatusNotes
CAnimatedIcon iconStatusSync
CCustomPane paneSync
CCustomPane paneContacts
CCustomPane paneCalendar
CCustomPane paneTasks
CCustomPane paneNotes
int syncSourceContactState
int syncSourceCalendarState
int syncSourceTaskState
int syncSourceNoteState

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
virtual void OnDraw (CDC *pDC)

Private Attributes

bool lockedUI
CString contactsStatusLabel
CString calendarStatusLabel
CString tasksStatusLabel
CString notesStatusLabel
CString contactsLabel
CString calendarLabel
CString tasksLabel
CString notesLabel


Detailed Description

Form of the main window.

Contains objects on the main screen of the UI (panes, labels, ...).


Member Function Documentation

void CSyncForm::changeContactsStatus ( CString &  status  ) 

Used to change the status text for a source.

Using a buffer to avoid re-paintings.

Referenced by refreshSource().

void CSyncForm::lockButtons (  ) 

Lock UI buttons of main window.

Buttons are locked when starting sync, to avoid errors clicking quickly on buttons, and avoid displaying the cancel msg together with the full-sync msg. Buttons are locked when canceling sync.

LRESULT CSyncForm::OnInitForm ( WPARAM  ,
LPARAM   
)

void CSyncForm::refreshSource ( int  sourceId  ) 

refresh UI info about a source

Parameters:
sourceId : the source type id {SYNCSOURCE_CONTACTS,..}, defined in ClientUtil.h

References changeContactsStatus(), CCustomPane::hPrevStatusIcon, CCustomPane::state, CAnimatedIcon::StopAnim(), and SYNCSOURCE_CALENDAR.

void CSyncForm::repaintPaneControls ( int  paneType  ) 

repaints sync controls from a pane associated to a source

Parameters:
paneType : the pane type id {PANE_TYPE_CONTACTS, ..}, defined in CustomPane.h

void CSyncForm::unlockButtons (  ) 

Unlock UI buttons of main window.

Buttons are unlocked after the 'ContinueAfterPrepareSync()' method. Buttons are unlocked when the sync process has finished.


The documentation for this class was generated from the following files:

Generated on Tue Jun 30 12:52:37 2009 for Funambol Outlook Plug-in Library by  doxygen 1.5.7.1