aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/IStudioViewModel.cs
blob: be0906fc4637430f695a8b8635fced3566565d25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Tango.SharedUI.Controls.NavigationControl;

namespace Tango.MachineStudio.Common
{
    /// <summary>
    /// Represents a Machine Studio view model.
    /// </summary>
    public interface IStudioViewModel : INavigationViewModel
    {
        /// <summary>
        /// Called when application is shutting down.
        /// </summary>
        void OnShuttingDown();

        /// <summary>
        /// Called before the application is shutting down.
        /// Return false to cancel the shutdown in case an important process is in progress.
        /// </summary>
        /// <returns></returns>
        Task<bool> OnShutdownRequest();

        /// <summary>
        /// Called when the application has been started
        /// </summary>
        void OnApplicationStarted();

        /// <summary>
        /// Called when the application is ready and all modules are loaded.
        /// </summary>
        void OnApplicationReady();
    }
}
ategory; char *filename; protobuf_c_boolean has_linenumber; uint32_t linenumber; protobuf_c_boolean has_filter; uint32_t filter; char *message; protobuf_c_boolean has_moduleid; uint32_t moduleid; }; #define START_DEBUG_LOG_RESPONSE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&start_debug_log_response__descriptor) \ , 0, DEBUG_LOG_CATEGORY__Info, NULL, 0, 0, 0, 0, NULL, 0, 0 } /* StartDebugLogResponse methods */ void start_debug_log_response__init (StartDebugLogResponse *message); size_t start_debug_log_response__get_packed_size (const StartDebugLogResponse *message); size_t start_debug_log_response__pack (const StartDebugLogResponse *message, uint8_t *out); size_t start_debug_log_response__pack_to_buffer (const StartDebugLogResponse *message, ProtobufCBuffer *buffer); StartDebugLogResponse * start_debug_log_response__unpack (ProtobufCAllocator *allocator, size_t len, const uint8_t *data); void start_debug_log_response__free_unpacked (StartDebugLogResponse *message, ProtobufCAllocator *allocator); /* --- per-message closures --- */ typedef void (*StartDebugLogResponse_Closure) (const StartDebugLogResponse *message, void *closure_data); /* --- services --- */ /* --- descriptors --- */ extern const ProtobufCMessageDescriptor start_debug_log_response__descriptor; PROTOBUF_C__END_DECLS #endif /* PROTOBUF_C_StartDebugLogResponse_2eproto__INCLUDED */