xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
do_work_event_args.h
Go to the documentation of this file.
1 #pragma once
5 #include <any>
6 #include <cstdint>
7 #include "cancel_event_args.h"
8 
10 namespace xtd {
12  namespace forms {
20  public:
23  do_work_event_args& operator=(const do_work_event_args& do_work_event_args) = default;
25 
27 
31  do_work_event_args(const std::any& argument) : argument_(argument) {}
33 
35 
39  std::any argument() const {return argument_;}
40 
43  std::any result() const {return result_;}
46  void result(std::any value) {result_ = value;}
48 
49  private:
50  std::any argument_;
51  std::any result_;
52  };
53  }
54 }
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::any argument() const
Gets a value that represents the argument of an asynchronous operation.
Definition: do_work_event_args.h:39
Contains xtd::forms::cancel_event_args event args.
void result(std::any value)
Sets a value that represents the result of an asynchronous operation.
Definition: do_work_event_args.h:46
Provides data for the do_work event handler.
Definition: do_work_event_args.h:19
Indicates that all styles except allow_binary_specifier, allow_octal_specifier and allow_hex_specifie...
std::any result() const
Gets a value that represents the result of an asynchronous operation.
Definition: do_work_event_args.h:43
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
Provides data for a cancelable event.
Definition: cancel_event_args.h:19
do_work_event_args(const std::any &argument)
Initializes a new instance of the DoWorkEventArgs class.
Definition: do_work_event_args.h:31