GME  13
SvnLoginDlg.h
Go to the documentation of this file.
00001 #pragma once
00002 #include "afxwin.h"
00003 
00004 
00005 // CSvnLoginDlg dialog
00006 
00007 class CSvnLoginDlg : public CDialog
00008 {
00009         DECLARE_DYNAMIC(CSvnLoginDlg)
00010 
00011 public:
00012         CSvnLoginDlg( int prefChoice, CWnd* pParent = NULL);   // standard constructor
00013         virtual ~CSvnLoginDlg();
00014 
00015 // Dialog Data
00016         enum { IDD = IDD_DIALOG_SVNLOGIN };
00017 
00018 public:
00019         bool wasAborted();
00020         void setSshOptionInitially();
00021         void disableSshOption();
00022 
00023 protected:
00024         bool getDataFromCache( const std::string& p_inRealm, std::string& p_realm, std::string& p_uname);
00025         bool loadCacheFile   ( const char* p_fileNamePtr, std::string& p_realm, std::string& p_uname);
00026 
00027 protected:
00028         const int m_prefChoice;
00029         bool m_aborted;
00030         bool m_sshDisabled;
00031         int  m_leftPad;
00032         int  m_rightPad;
00033 
00034 protected:
00035         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
00036         virtual BOOL OnInitDialog();
00037 
00038         DECLARE_MESSAGE_MAP()
00039 public:
00040         afx_msg void OnSize(UINT nType, int cx, int cy);
00041         afx_msg void OnBnClickedAbort();
00042         afx_msg void OnBnClickedRadioUspw();
00043         afx_msg void OnBnClickedRadioCached();
00044         afx_msg void OnBnClickedRadioPpk();
00045         afx_msg void OnBnClickedLoadFromCache();
00046 
00047         CString m_password;
00048         CString m_user;
00049         CString m_database;
00050         CString m_project;
00051 
00052         CButton m_radBtnLoginMethod;
00053         CButton m_btnLoadFromCache;
00054         CEdit m_userCtrl;
00055         CEdit m_passwordCtrl;
00056         int m_credRadioBtn;
00057 };