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
00086 void hideSource(CButton& button1, CButton& button2, bool* synctype, int sep1, int sep2);
00087
00089 void disableSource(CButton& button1, CButton& button2, bool* synctype, int sep1, int sep2);
00090
00096 CString composeCheckboxText(const char* sourceName);
00097
00098 DECLARE_MESSAGE_MAP()
00099
00100 public:
00101
00102 CButton checkContacts;
00103 CButton checkCalendar;
00104 CButton checkTasks;
00105 CButton checkNotes;
00106 CButton checkPictures;
00107
00108 CButton butContacts;
00109 CButton butCalendar;
00110 CButton butTasks;
00111 CButton butNotes;
00112 CButton butPictures;
00113
00114 bool saveSyncTypeContacts;
00115 bool saveSyncTypeCalendar;
00116 bool saveSyncTypeTasks;
00117 bool saveSyncTypeNotes;
00118 bool saveSyncTypePictures;
00119 bool saveScheduler;
00120 bool saveAttach;
00121
00122
00123 CButton checkEnabled;
00124 CButton checkEncryption;
00125 CButton checkAttach;
00126 CStatic groupItems;
00127 CStatic groupScheduler;
00128 CStatic groupSecurity;
00129 CComboBox comboSchedulerValue;
00130
00131 bool saveSettings(bool);
00132
00133 afx_msg void OnBnClickedSyncCheckContacts();
00134 afx_msg void OnBnClickedSyncCheckCalendar();
00135 afx_msg void OnBnClickedSyncCheckTasks();
00136 afx_msg void OnBnClickedSyncCheckNotes();
00137 afx_msg void OnBnClickedSyncCheckPictures();
00138 afx_msg void OnBnClickedSyncOk();
00139 afx_msg void OnBnClickedSyncCancel();
00140 afx_msg void OnBnClickedSyncButContacts();
00141 afx_msg void OnBnClickedSyncButCalendar();
00142 afx_msg void OnBnClickedSyncButTasks();
00143 afx_msg void OnBnClickedSyncButNotes();
00144 afx_msg void OnBnClickedSyncButPictures();
00145 afx_msg void OnNcPaint();
00146
00147 afx_msg void OnBnClickedSchedulerCheckEnabled();
00148 afx_msg void OnCbnSelchangeSchedulerComboValue();
00149 afx_msg void OnBnClickedSyncCheckOutlookOpen();
00150 };
00151
00152