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