WSF
ThreadNotifyEvent.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2003-2015 The Boeing Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12
13#ifndef THREADNOTIFYEVENT_HPP
14#define THREADNOTIFYEVENT_HPP
15
16#include <memory>
17
18#include <QEvent>
19
20#include "Project.hpp"
22
23namespace wizard
24{
26class ThreadNotifyEvent : public QEvent
27{
28public:
38 static const int cTHREAD_NOTIFY_EVENT_ID = QEvent::User + 1;
39 ThreadNotifyEvent(Project* aProjectPtr, NotificationType aNotificationType)
40 : QEvent((QEvent::Type)cTHREAD_NOTIFY_EVENT_ID)
41 , mNotificationType(aNotificationType)
42 , mProjectPtr(aProjectPtr)
43 , mTaskId(-1)
47 , mProxy(nullptr)
48 , mProxyHash(nullptr)
49 , mSerializeToComplete(nullptr)
50 {
51 }
52
57
58 ~ThreadNotifyEvent() override = default;
59
66 std::unique_ptr<WsfPProxy> mProxy;
67 std::unique_ptr<ProxyHash> mProxyHash;
68 // UtSharedPtr<WsfPProxyRegistry> mProxyRegistry;
69 std::unique_ptr<WsfPProxySerialize> mSerializeToComplete;
70};
71
72} // namespace wizard
73
74#endif
A WSF 'project'. Manages WSF sources files in a WSF project.
Definition Project.hpp:66
ThreadNotifyEvent & operator=(ThreadNotifyEvent &&)=default
NotificationType
Definition ThreadNotifyEvent.hpp:30
@ cSERIALIZE_COMPLETED
Definition ThreadNotifyEvent.hpp:35
@ cPROXY_READY
Definition ThreadNotifyEvent.hpp:33
@ cFAILED
Definition ThreadNotifyEvent.hpp:31
@ cWORK_COMPLETE
Definition ThreadNotifyEvent.hpp:36
@ cPARSE_RESULTS_READY
Definition ThreadNotifyEvent.hpp:32
@ cPERFORMANCE_TEST_RESULTS_READY
Definition ThreadNotifyEvent.hpp:34
ThreadNotifyEvent(const ThreadNotifyEvent &)=delete
std::unique_ptr< ProxyHash > mProxyHash
Definition ThreadNotifyEvent.hpp:67
ThreadNotifyEvent(ThreadNotifyEvent &&)=default
int mTimeToCompleteParseMs
Definition ThreadNotifyEvent.hpp:64
ThreadNotifyEvent(Project *aProjectPtr, NotificationType aNotificationType)
Definition ThreadNotifyEvent.hpp:39
ThreadNotifyEvent & operator=(const ThreadNotifyEvent &)=delete
std::unique_ptr< WsfPProxy > mProxy
Definition ThreadNotifyEvent.hpp:66
std::unique_ptr< WsfPProxySerialize > mSerializeToComplete
Definition ThreadNotifyEvent.hpp:69
int mTimeToCompleteProxyMs
Definition ThreadNotifyEvent.hpp:65
Project * mProjectPtr
Definition ThreadNotifyEvent.hpp:61
int mModificationSequenceNumber
Definition ThreadNotifyEvent.hpp:63
int mTaskId
Definition ThreadNotifyEvent.hpp:62
~ThreadNotifyEvent() override=default
NotificationType mNotificationType
Definition ThreadNotifyEvent.hpp:60
static const int cTHREAD_NOTIFY_EVENT_ID
Definition ThreadNotifyEvent.hpp:38
Definition Runner.hpp:22
@ Type
Definition EditorPrefObject.hpp:37
Copyrights Multiple, All Rights Reserved