D:/develop/v65/clients/outlook/install/output/export/funambol/clients/outlook/UI/src/SyncSettings.h

00001  /*
00002  * Copyright (C) 2007 Funambol, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 2 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00016  * 02111-1307  USA
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();           // protected constructor used by dynamic creation
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);    // DDX/DDV support
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; // true if scheduler settings have changed
00084 
00085     // scheduler
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 

Generated on Fri Nov 9 12:21:27 2007 for Funambol Outlook Plug-in Library by  doxygen 1.5.2