00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #pragma once
00020 #include "afxwin.h"
00021
00032 int getSchedulerMinutes(int position);
00033
00038 int getSchedulerPosition(int minutes);
00039
00040
00041
00045 class CSyncSettings : public CFormView
00046 {
00047 DECLARE_DYNCREATE(CSyncSettings)
00048
00049 protected:
00050 CSyncSettings();
00051 virtual ~CSyncSettings();
00052
00053 public:
00054 enum { IDD = IDD_SYNC };
00055 #ifdef _DEBUG
00056 virtual void AssertValid() const;
00057 #ifndef _WIN32_WCE
00058 virtual void Dump(CDumpContext& dc) const;
00059 virtual void PostNcDestroy( ){delete this;}
00060 #endif
00061 #endif
00062
00063 protected:
00064 virtual void DoDataExchange(CDataExchange* pDX);
00065 virtual BOOL PreTranslateMessage(MSG* pMsg);
00066 afx_msg LRESULT OnInitForm(WPARAM, LPARAM);
00067
00068 DECLARE_MESSAGE_MAP()
00069 public:
00070
00071 CButton checkContacts;
00072 CButton checkCalendar;
00073 CButton checkTasks;
00074 CButton checkNotes;
00075 CButton butContacts;
00076 CButton butCalendar;
00077 CButton butTasks;
00078 CButton butNotes;
00079 bool saveSyncTypeContacts;
00080 bool saveSyncTypeCalendar;
00081 bool saveSyncTypeTasks;
00082 bool saveSyncTypeNotes;
00083 bool saveScheduler;
00084
00085
00086 CButton checkEnabled;
00087 CButton checkEncryption;
00088 CStatic groupItems;
00089 CStatic groupScheduler;
00090 CStatic groupSecurity;
00091 CComboBox comboSchedulerValue;
00092
00093 bool saveSettings(bool);
00094
00095 afx_msg void OnBnClickedSyncCheckContacts();
00096 afx_msg void OnBnClickedSyncCheckCalendar();
00097 afx_msg void OnBnClickedSyncCheckTasks();
00098 afx_msg void OnBnClickedSyncCheckNotes();
00099 afx_msg void OnBnClickedSyncOk();
00100 afx_msg void OnBnClickedSyncCancel();
00101 afx_msg void OnBnClickedSyncButContacts();
00102 afx_msg void OnBnClickedSyncButCalendar();
00103 afx_msg void OnBnClickedSyncButTasks();
00104 afx_msg void OnBnClickedSyncButNotes();
00105 afx_msg void OnNcPaint();
00106
00107 afx_msg void OnBnClickedSchedulerCheckEnabled();
00108 afx_msg void OnCbnSelchangeSchedulerComboValue();
00109 };
00110
00111