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 checkPictures;
00093
00094 CButton butContacts;
00095 CButton butCalendar;
00096 CButton butTasks;
00097 CButton butNotes;
00098 CButton butPictures;
00099
00100 bool saveSyncTypeContacts;
00101 bool saveSyncTypeCalendar;
00102 bool saveSyncTypeTasks;
00103 bool saveSyncTypeNotes;
00104 bool saveSyncTypePictures;
00105 bool saveScheduler;
00106
00107
00108 CButton checkEnabled;
00109 CButton checkEncryption;
00110 CStatic groupItems;
00111 CStatic groupScheduler;
00112 CStatic groupSecurity;
00113 CComboBox comboSchedulerValue;
00114
00115 bool saveSettings(bool);
00116
00117 afx_msg void OnBnClickedSyncCheckContacts();
00118 afx_msg void OnBnClickedSyncCheckCalendar();
00119 afx_msg void OnBnClickedSyncCheckTasks();
00120 afx_msg void OnBnClickedSyncCheckNotes();
00121 afx_msg void OnBnClickedSyncCheckPictures();
00122 afx_msg void OnBnClickedSyncOk();
00123 afx_msg void OnBnClickedSyncCancel();
00124 afx_msg void OnBnClickedSyncButContacts();
00125 afx_msg void OnBnClickedSyncButCalendar();
00126 afx_msg void OnBnClickedSyncButTasks();
00127 afx_msg void OnBnClickedSyncButNotes();
00128 afx_msg void OnBnClickedSyncButPictures();
00129 afx_msg void OnNcPaint();
00130
00131 afx_msg void OnBnClickedSchedulerCheckEnabled();
00132 afx_msg void OnCbnSelchangeSchedulerComboValue();
00133 };
00134
00135