1
0
Fork 0
mirror of synced 2024-04-29 01:52:39 +12:00
czkawka/czkawka_gui/src/taskbar_progress_dummy.rs
Rafał Mikrut 8ea9b4b800
Run pydantic clippy lints on project (#901)
* Update dependencies

* Pydantic part 1

* Some renames, basic Cambalache view

* 2

* 3

* Unwrap

* Tests

* Update CLI to Ubuntu 20.04
2023-01-28 18:54:02 +01:00

51 lines
944 B
Rust

#![allow(clippy::upper_case_acronyms)]
#![allow(clippy::needless_pass_by_value)]
#![cfg(not(target_os = "windows"))]
use std::convert::From;
enum HWND__ {}
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) {}
}