latest SDK
This commit is contained in:
20
foobar2000/SDK/progress_meter.h
Normal file
20
foobar2000/SDK/progress_meter.h
Normal file
@@ -0,0 +1,20 @@
|
||||
//! Interface for setting current operation progress state to be visible on Windows 7 taskbar. Use progress_meter::get()->acquire() to instantiate.
|
||||
class NOVTABLE progress_meter_instance : public service_base {
|
||||
FB2K_MAKE_SERVICE_INTERFACE(progress_meter_instance, service_base);
|
||||
public:
|
||||
//! Sets the current progress state.
|
||||
//! @param value Progress state, in 0..1 range.
|
||||
virtual void set_progress(float value) = 0;
|
||||
//! Toggles paused state.
|
||||
virtual void set_pause(bool isPaused) = 0;
|
||||
|
||||
static bool serviceRequiresMainThreadDestructor() { return true; }
|
||||
};
|
||||
|
||||
//! Entrypoint interface for instantiating progress_meter_instance objects.
|
||||
class NOVTABLE progress_meter : public service_base {
|
||||
FB2K_MAKE_SERVICE_COREAPI(progress_meter);
|
||||
public:
|
||||
//! Creates a progress_meter_instance object.
|
||||
virtual progress_meter_instance::ptr acquire() = 0;
|
||||
};
|
||||
Reference in New Issue
Block a user