2#if !defined(_background_worker_h_)
3#define _background_worker_h_
5#include <system/component_model/component.h>
6#include <system/smart_ptr.h>
7#include <system/multicast_delegate.h>
8#include <system/threading/thread.h>
10#include <system/component_model/do_work_event_args.h>
11#include <system/component_model/run_worker_completed_event_args.h>
12#include <system/component_model/progress_changed_event_args.h>
14namespace System {
namespace ComponentModel {
22 typedef System::BaseTypesInfo<Component> ThisBaseTypesInfo;
62 bool m_WorkerReportsProgress;
Objects of this class should only be allocated using System::MakeObject() function....
Definition: background_worker.h:20
void RunWorkerAsync()
Starts execution of a background operation.
System::MulticastDelegate< void(System::SharedPtr< System::Object >, System::SharedPtr< System::ComponentModel::DoWorkEventArgs >) > DoWork
Occurs when System::ComponentModel::BackgroundWorker::RunWorkerAsync is called.
Definition: background_worker.h:33
void RunWorkerAsync(const System::SharedPtr< System::Object > &argument)
Starts execution of a background operation.
System::MulticastDelegate< void(System::SharedPtr< System::Object >, System::SharedPtr< System::ComponentModel::RunWorkerCompletedEventArgs >)> RunWorkerCompleted
Occurs when the background operation has completed, has been canceled, or has raised an exception.
Definition: background_worker.h:35
BackgroundWorker()
RTTI information.
bool get_WorkerReportsProgress() const
Gets a value indicating whether the System::ComponentModel::BackgroundWorker can report progress upda...
Definition: background_worker.h:56
System::MulticastDelegate< void(System::SharedPtr< System::Object >, System::SharedPtr< System::ComponentModel::ProgressChangedEventArgs >)> ProgressChanged
Occurs when System::ComponentModel::BackgroundWorker::ReportProgress(int) is called.
Definition: background_worker.h:37
void set_WorkerReportsProgress(bool value)
Sets a value indicating whether the System::ComponentModel::BackgroundWorker can report progress upda...
Definition: background_worker.h:59
~BackgroundWorker()
Destructor.
void ReportProgress(int percentProgress, const System::SharedPtr< System::Object > &userState)
Raises the System::ComponentModel::BackgroundWorker::ProgressChanged event with userState object.
void ReportProgress(int percentProgress)
Raises the System::ComponentModel::BackgroundWorker::ProgressChanged event.
Dummy class to make translated code using Component class compilable. Objects of this class should on...
Definition: component.h:15
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
Definition: db_command.h:9