00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036 #pragma once
00037 #include "afxwin.h"
00038
00049 int getSchedulerMinutes(int position);
00050
00055 int getSchedulerPosition(int minutes);
00056
00057
00058
00062 class CSyncSettings : public CFormView
00063 {
00064 DECLARE_DYNCREATE(CSyncSettings)
00065
00066 protected:
00067 CSyncSettings();
00068 virtual ~CSyncSettings();
00069
00070 public:
00071 enum { IDD = IDD_SYNC };
00072 #ifdef _DEBUG
00073 virtual void AssertValid() const;
00074 #ifndef _WIN32_WCE
00075 virtual void Dump(CDumpContext& dc) const;
00076 virtual void PostNcDestroy( ){delete this;}
00077 #endif
00078 #endif
00079
00080 protected:
00081 virtual void DoDataExchange(CDataExchange* pDX);
00082 virtual BOOL PreTranslateMessage(MSG* pMsg);
00083 afx_msg LRESULT OnInitForm(WPARAM, LPARAM);
00084
00085 DECLARE_MESSAGE_MAP()
00086 public:
00087
00088 CButton checkContacts;
00089 CButton checkCalendar;
00090 CButton checkTasks;
00091 CButton checkNotes;
00092 CButton butContacts;
00093 CButton butCalendar;
00094 CButton butTasks;
00095 CButton butNotes;
00096 bool saveSyncTypeContacts;
00097 bool saveSyncTypeCalendar;
00098 bool saveSyncTypeTasks;
00099 bool saveSyncTypeNotes;
00100 bool saveScheduler;
00101
00102
00103 CButton checkEnabled;
00104 CButton checkEncryption;
00105 CStatic groupItems;
00106 CStatic groupScheduler;
00107 CStatic groupSecurity;
00108 CComboBox comboSchedulerValue;
00109
00110 bool saveSettings(bool);
00111
00112 afx_msg void OnBnClickedSyncCheckContacts();
00113 afx_msg void OnBnClickedSyncCheckCalendar();
00114 afx_msg void OnBnClickedSyncCheckTasks();
00115 afx_msg void OnBnClickedSyncCheckNotes();
00116 afx_msg void OnBnClickedSyncOk();
00117 afx_msg void OnBnClickedSyncCancel();
00118 afx_msg void OnBnClickedSyncButContacts();
00119 afx_msg void OnBnClickedSyncButCalendar();
00120 afx_msg void OnBnClickedSyncButTasks();
00121 afx_msg void OnBnClickedSyncButNotes();
00122 afx_msg void OnNcPaint();
00123
00124 afx_msg void OnBnClickedSchedulerCheckEnabled();
00125 afx_msg void OnCbnSelchangeSchedulerComboValue();
00126 };
00127
00128