diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:05:53 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:05:53 +0200 |
commit | 618dfb51d93898632830f1b87443d3f748780871 (patch) | |
tree | bac520a2e261154f8d35b0cb8aa345f5ab373811 /shared/taskbar.h | |
parent | 3.4 (diff) | |
download | FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.gz FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.tar.bz2 FreeFileSync-618dfb51d93898632830f1b87443d3f748780871.zip |
3.5
Diffstat (limited to 'shared/taskbar.h')
-rw-r--r-- | shared/taskbar.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/shared/taskbar.h b/shared/taskbar.h new file mode 100644 index 00000000..ca836609 --- /dev/null +++ b/shared/taskbar.h @@ -0,0 +1,48 @@ +// ************************************************************************** +// * This file is part of the FreeFileSync project. It is distributed under * +// * GNU General Public License: http://www.gnu.org/licenses/gpl.html * +// * Copyright (C) 2008-2010 ZenJu (zhnmju123 AT gmx.de) * +// ************************************************************************** +// +#ifndef TASKBARPROGRESS_H_INCLUDED +#define TASKBARPROGRESS_H_INCLUDED + +#ifndef FFS_WIN +use in windows build only! +#endif + +#include <wx/toplevel.h> +#include <memory> + + +namespace Utility +{ +class TaskbarNotAvailable {}; + +//show progress in windows superbar via ITaskbarList3 Interfce (http://msdn.microsoft.com/en-us/library/dd391692(VS.85).aspx) +class TaskbarProgress +{ +public: + TaskbarProgress(const wxTopLevelWindow& window); //throw TaskbarNotAvailable() + ~TaskbarProgress(); + + enum Status + { + STATUS_NOPROGRESS, + STATUS_INDETERMINATE, + STATUS_NORMAL, + STATUS_ERROR, + STATUS_PAUSED + }; + + void setStatus(Status status); + void setProgress(size_t current, size_t total); + +private: + struct Pimpl; + std::auto_ptr<Pimpl> pimpl_; +}; + +} + +#endif // TASKBARPROGRESS_H_INCLUDED |