CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
progress_changed_event_args.h
1
2#ifndef __progress_changed_event_args_h__
3#define __progress_changed_event_args_h__
4
5#include <system/eventargs.h>
6
7namespace System { namespace ComponentModel {
8
13 class ASPOSECPP_SHARED_CLASS ProgressChangedEventArgs : public EventArgs
14 {
15 public:
20 : m_progressPercentage(progressPercentage)
21 , m_userState(userState)
22 {}
23
25 inline int get_ProgressPercentage() const { return m_progressPercentage; }
27 inline System::SharedPtr<System::Object> get_UserState() const { return m_userState; }
28
29 private:
30 int m_progressPercentage;
32 };
33
34} }
35
36#endif
An instance of this class is passed as the argument on to the ProgressChangedEventHandler delegate....
Definition: progress_changed_event_args.h:14
System::SharedPtr< System::Object > get_UserState() const
Gets a unique user state.
Definition: progress_changed_event_args.h:27
ProgressChangedEventArgs(int progressPercentage, System::SharedPtr< System::Object > userState)
Constructor.
Definition: progress_changed_event_args.h:19
int get_ProgressPercentage() const
Gets the asynchronous task progress percentage.
Definition: progress_changed_event_args.h:25
The base class for classes that represent a context that is passed to the event subscribers when an e...
Definition: eventargs.h:19
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