Show Gravatar in Log Dialog
[TortoiseGit.git] / src / TortoiseProc / GravatarPictureBox.h
blob7ebdf6cd82589aa0307edf57606c7bfb8a6b0a84
1 // TortoiseGit - a Windows shell extension for easy version control
3 // Copyright (C) 2013 - TortoiseGit
5 // This program is free software; you can redistribute it and/or
6 // modify it under the terms of the GNU General Public License
7 // as published by the Free Software Foundation; either version 2
8 // of the License, or (at your option) any later version.
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software Foundation,
17 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
19 #pragma once
20 #include <afx.h>
21 #include "gittype.h"
23 class CGravatar : public CStatic
25 public:
26 CGravatar();
27 virtual ~CGravatar();
28 void Init();
29 bool IsGravatarEnabled() const { return m_bEnableGravatar; }
30 void LoadGravatar(CString email = _T(""));
31 void GravatarThread();
32 void SafeTerminateGravatarThread();
33 afx_msg void OnPaint();
35 private:
36 bool m_bEnableGravatar;
37 CString m_filename;
38 CString m_email;
39 HANDLE m_gravatarEvent;
40 CWinThread* m_gravatarThread;
41 bool m_gravatarExit;
42 CComCriticalSection m_gravatarLock;
44 DECLARE_MESSAGE_MAP();