2021-03-28 01:14:02 +13:00
|
|
|
#![allow(clippy::upper_case_acronyms)]
|
2023-01-29 06:54:02 +13:00
|
|
|
#![allow(clippy::needless_pass_by_value)]
|
2021-02-21 00:24:36 +13:00
|
|
|
#![cfg(not(target_os = "windows"))]
|
2021-11-28 08:49:20 +13:00
|
|
|
|
2021-02-21 00:24:36 +13:00
|
|
|
use std::convert::From;
|
|
|
|
|
|
|
|
enum HWND__ {}
|
2021-11-28 08:57:10 +13:00
|
|
|
|
2021-02-21 00:24:36 +13:00
|
|
|
type HWND = *mut HWND__;
|
|
|
|
|
|
|
|
#[allow(non_camel_case_types, dead_code)]
|
|
|
|
pub enum TBPFLAG {
|
|
|
|
TBPF_NOPROGRESS = 0,
|
|
|
|
TBPF_INDETERMINATE = 0x1,
|
|
|
|
TBPF_NORMAL = 0x2,
|
|
|
|
TBPF_ERROR = 0x4,
|
|
|
|
TBPF_PAUSED = 0x8,
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod tbp_flags {
|
|
|
|
pub use super::TBPFLAG::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub struct TaskbarProgress {}
|
|
|
|
|
|
|
|
impl TaskbarProgress {
|
|
|
|
pub fn new() -> TaskbarProgress {
|
|
|
|
TaskbarProgress {}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn set_progress_state(&self, _tbp_flags: TBPFLAG) {}
|
|
|
|
|
|
|
|
pub fn set_progress_value(&self, _completed: u64, _total: u64) {}
|
|
|
|
|
|
|
|
pub fn hide(&self) {}
|
|
|
|
|
|
|
|
pub fn show(&self) {}
|
|
|
|
|
|
|
|
pub fn release(&mut self) {}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl From<HWND> for TaskbarProgress {
|
|
|
|
fn from(_hwnd: HWND) -> Self {
|
|
|
|
TaskbarProgress {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Drop for TaskbarProgress {
|
|
|
|
fn drop(&mut self) {}
|
|
|
|
}
|