OSDN Git Service

Complete Send mail coding and mail send have some problem.
[tortoisegit/TortoiseGitJp.git] / src / TortoiseProc / SVNProgressDlg.h
index c6a8e65..7d7d102 100644 (file)
@@ -69,9 +69,15 @@ typedef enum
 typedef enum\r
 {\r
        git_wc_notify_add,\r
+       git_wc_notify_sendmail,\r
        git_wc_notify_resolved\r
 \r
 }git_wc_notify_action_t;\r
+typedef enum\r
+{\r
+       SENDMAIL_ATTACHMENT=0x1,\r
+       SENDMAIL_COMBINED =0x2\r
+};\r
 /**\r
  * \ingroup TortoiseProc\r
  * Handles different Subversion commands and shows the notify messages\r
@@ -99,6 +105,7 @@ public:
                GitProgress_Switch,\r
                GitProgress_Unlock,\r
                GitProgress_Update,\r
+               GitProgress_SendMail,\r
        } Command;\r
 \r
 \r
@@ -122,6 +129,7 @@ public:
 //     void SetRevisionEnd(const GitRev& rev) {m_RevisionEnd = rev;}\r
        \r
        void SetDiffOptions(const CString& opts) {m_diffoptions = opts;}\r
+       void SetSendMailOption(CString &TO, CString &CC,DWORD flags){m_SendMailTO=TO; m_SendMailCC=CC;this->m_SendMailFlags = flags;}\r
        void SetDepth(git_depth_t depth = git_depth_unknown) {m_depth = depth;}\r
        void SetPegRevision(GitRev pegrev = GitRev()) {m_pegRev = pegrev;}\r
        void SetProjectProperties(ProjectProperties props) {m_ProjectProperties = props;}\r
@@ -273,6 +281,7 @@ private:
        bool            CmdSwitch(CString& sWindowTitle, bool& localoperation);\r
        bool            CmdUnlock(CString& sWindowTitle, bool& localoperation);\r
        bool            CmdUpdate(CString& sWindowTitle, bool& localoperation);\r
+       bool            CmdSendMail(CString& sWindowTitle, bool& localoperation);\r
 \r
 private:\r
        typedef std::map<CStringA, git_revnum_t> StringRevMap;\r
@@ -334,6 +343,10 @@ private:
 \r
        bool                                    m_AlwaysConflicted;\r
 \r
+       DWORD                                   m_SendMailFlags;\r
+       CString                                 m_SendMailTO;\r
+       CString                                 m_SendMailCC;\r
+       \r
 ///    CComPtr<IBugTraqProvider> m_BugTraqProvider;\r
 \r
        // some strings different methods can use\r