aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication/PMR/MachineStatus/StartMachineStatusUpdateResponse.pb-c.h
blob: 2300eef68d9a21b4f8e2aca20d1ea37721e7f0a2 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: StartMachineStatusUpdateResponse.proto */

#ifndef PROTOBUF_C_StartMachineStatusUpdateResponse_2eproto__INCLUDED
#define PROTOBUF_C_StartMachineStatusUpdateResponse_2eproto__INCLUDED

#include <protobuf-c/protobuf-c.h>

PROTOBUF_C__BEGIN_DECLS

#if PROTOBUF_C_VERSION_NUMBER < 1003000
# error This file was generated by a newer version of protoc-c which is incompatible with your libprotobuf-c headers. Please update your headers.
#elif 1003000 < PROTOBUF_C_MIN_COMPILER_VERSION
# error This file was generated by an older version of protoc-c which is incompatible with your libprotobuf-c headers. Please regenerate this file with a newer version of protoc-c.
#endif

#include "MachineStatus.pb-c.h"

typedef struct _StartMachineStatusUpdateResponse StartMachineStatusUpdateResponse;


/* --- enums --- */


/* --- messages --- */

struct  _StartMachineStatusUpdateResponse
{
  ProtobufCMessage base;
  MachineStatus *status;
};
#define START_MACHINE_STATUS_UPDATE_RESPONSE__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&start_machine_status_update_response__descriptor) \
    , NULL }


/* StartMachineStatusUpdateResponse methods */
void   start_machine_status_update_response__init
                     (StartMachineStatusUpdateResponse         *message);
size_t start_machine_status_update_response__get_packed_size
                     (const StartMachineStatusUpdateResponse   *message);
size_t start_machine_status_update_response__pack
                     (const StartMachineStatusUpdateResponse   *message,
                      uint8_t             *out);
size_t start_machine_status_update_response__pack_to_buffer
                     (const StartMachineStatusUpdateResponse   *message,
                      ProtobufCBuffer     *buffer);
StartMachineStatusUpdateResponse *
       start_machine_status_update_response__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   start_machine_status_update_response__free_unpacked
                     (StartMachineStatusUpdateResponse *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*StartMachineStatusUpdateResponse_Closure)
                 (const StartMachineStatusUpdateResponse *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor start_machine_status_update_response__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_StartMachineStatusUpdateResponse_2eproto__INCLUDED */
t; </Grid> <Grid controls:NavigationControl.NavigationName="WiFiSelectionView"> <DockPanel> <TextBlock DockPanel.Dock="Top" Margin="20 0" FontSize="{StaticResource TangoTitleFontSize}" HorizontalAlignment="Center" TextWrapping="Wrap" TextAlignment="Center"> <Run>We need an active internet connection in order to fetch the latest software package and machine configuration.</Run> <LineBreak/> <LineBreak/> <Run>Please connect to one of the available WiFi networks.</Run> </TextBlock> <connectivity:AvailableWiFiConnectionsControl DataContext="{Binding ConnectivityProvider}" Margin="50 100 50 20" BorderBrush="{StaticResource TangoDividerBrush}" BorderThickness="0 1 0 0" /> </DockPanel> </Grid> <Grid controls:NavigationControl.NavigationName="WiFiTestView"> <StackPanel HorizontalAlignment="Center" Margin="0 200 0 0"> <TextBlock DockPanel.Dock="Top" Margin="20 0" FontSize="{StaticResource TangoTitleFontSize}" HorizontalAlignment="Center" TextWrapping="Wrap" TextAlignment="Center"> Checking internet connection, please wait... </TextBlock> <touch:TouchBusyIndicator Width="250" Margin="0 100 0 0" Height="250" IsIndeterminate="{Binding CurrentView,Converter={StaticResource EnumToBooleanConverter},ConverterParameter='WiFiTestView'}" /> </StackPanel> </Grid> <Grid controls:NavigationControl.NavigationName="TimeZoneView"> <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Width="500"> <Image Source="/Images/time-zone.png" Width="128" /> <TextBlock HorizontalAlignment="Center" FontSize="{StaticResource TangoTitleFontSize}">Please select the machine time zone</TextBlock> <touch:TouchComboBox Margin="0 80 0 0" ItemsSource="{Binding TimeZones}" SelectedItem="{Binding SelectedTimeZone,Mode=TwoWay}"> </touch:TouchComboBox> <touch:TouchButton Margin="0 200 0 0" Padding="20" Width="300" CornerRadius="35" Command="{Binding TimeZoneSelectedCommand}">CONTINUE</touch:TouchButton> </StackPanel> </Grid> <Grid controls:NavigationControl.NavigationName="EnvironmentView"> <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Width="500"> <Image Source="/Images/environment.png" Width="128" /> <TextBlock Margin="0 20 0 0" HorizontalAlignment="Center" FontSize="{StaticResource TangoTitleFontSize}">Please select the machine working environment</TextBlock> <touch:TouchComboBox Margin="0 80 0 0" Title="Select Environment" ItemsSource="{Binding Source={x:Type web:DeploymentSlot},Converter={StaticResource EnumToItemsSourceConverter},ConverterParameter='false'}" SelectedItem="{Binding DeploymentSlot}"> <touch:TouchComboBox.ItemTemplate> <DataTemplate> <TextBlock Padding="10" FontSize="{StaticResource TangoTitleFontSize}" Text="{Binding Converter={StaticResource EnumToDescriptionConverter}}"> <TextBlock.Style> <Style TargetType="TextBlock"> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=touch:TouchListBoxItem},Path=IsSelected}" Value="True"> <Setter Property="Foreground" Value="{StaticResource TangoPrimaryAccentBrush}"></Setter> </DataTrigger> </Style.Triggers> </Style> </TextBlock.Style> </TextBlock> </DataTemplate> </touch:TouchComboBox.ItemTemplate> <touch:TouchComboBox.SelectedItemTemplate> <DataTemplate> <TextBlock FontSize="{StaticResource TangoTitleFontSize}" Text="{Binding Converter={StaticResource EnumToDescriptionConverter}}"></TextBlock> </DataTemplate> </touch:TouchComboBox.SelectedItemTemplate> </touch:TouchComboBox> <touch:TouchButton Margin="0 200 0 0" Padding="20" Width="300" CornerRadius="35" Command="{Binding EnvironmentSelectedCommand}">CONTINUE</touch:TouchButton> </StackPanel> </Grid> <Grid controls:NavigationControl.NavigationName="SetupWelcomeView"> <StackPanel> <TextBlock TextAlignment="Center" LineHeight="40" FontSize="{StaticResource TangoTitleFontSize}" Margin="40 0" TextWrapping="Wrap"> The next step is to download the latest software package and synchronize the machine data. Please enter your machine serial number and press 'install'. </TextBlock> <StackPanel Width="500" Margin="0 100 0 0" TextElement.FontSize="{StaticResource TangoTitleFontSize}"> <TextBlock>SERIAL NUMBER</TextBlock> <touch:TouchTextBox Foreground="{StaticResource TangoGrayTextBrush}" Margin="0 10 0 0" Text="{Binding SerialNumber}" KeyboardContainer="{Binding ElementName=Container}" /> <StackPanel HorizontalAlignment="Center"> <TextBlock Margin="0 80 0 0" FontSize="12" Foreground="{StaticResource TangoGrayTextBrush}">MACHINE SERVICE ADDRESS</TextBlock> <TextBlock FontSize="11" HorizontalAlignment="Center" Foreground="{StaticResource TangoGrayTextBrush}" Margin="0 5 0 0" Text="{Binding HostAddress}" /> </StackPanel> <touch:TouchButton Margin="0 200 0 0" Padding="20" Width="300" CornerRadius="35" Command="{Binding InstallCommand}">INSTALL</touch:TouchButton> </StackPanel> </StackPanel> </Grid> <Grid controls:NavigationControl.NavigationName="SetupProgressView"> <StackPanel> <TextBlock TextAlignment="Center" FontSize="{StaticResource TangoTitleFontSize}"> <Run>Please wait while we're setting up this machine.</Run> <Run>Do not turn off this PC.</Run> </TextBlock> <StackPanel Margin="0 200 0 0"> <TextBlock Text="{Binding MachineSetupManager.Status.Name,FallbackValue='Download Software Package'}" HorizontalAlignment="Center" FontSize="{StaticResource TangoTitleFontSize}"></TextBlock> <TextBlock HorizontalAlignment="Center" Text="{Binding MachineSetupManager.Status.Message,FallbackValue='Connecting to machine service...'}" Margin="0 40 0 0"></TextBlock> <touch:TouchProgressBar Margin="50 10" Height="10" IsIndeterminate="{Binding MachineSetupManager.Status.IsIntermediate}" Maximum="{Binding MachineSetupManager.Status.Total}" Value="{Binding MachineSetupManager.Status.Progress,Mode=OneWay}" /> </StackPanel> </StackPanel> </Grid> <Grid controls:NavigationControl.NavigationName="SetupCompletedView"> <StackPanel HorizontalAlignment="Center" Margin="0 50 0 0"> <touch:TouchIcon Icon="Check" Foreground="{StaticResource TangoPrimaryAccentBrush}" Width="70" Height="70" /> <TextBlock VerticalAlignment="Center" Margin="0 10 0 0" Foreground="{StaticResource TangoPrimaryAccentBrush}" FontSize="{StaticResource TangoTitleFontSize}">Setup completed successfully. Machine is ready!</TextBlock> <touch:TouchButton Margin="0 200 0 0" Padding="20" Width="300" CornerRadius="35" Command="{Binding CompleteCommand}">RESTART</touch:TouchButton> </StackPanel> </Grid> <Grid controls:NavigationControl.NavigationName="SetupFailedView"> <StackPanel HorizontalAlignment="Center" Margin="0 50 0 0"> <touch:TouchIcon Icon="AlertOutline" Foreground="{StaticResource TangoErrorBrush}" Width="70" Height="70" /> <TextBlock HorizontalAlignment="Center" Margin="0 10 0 0" FontSize="{StaticResource TangoTitleFontSize}">Setup Failed</TextBlock> <TextBlock HorizontalAlignment="Center" TextAlignment="Center" TextWrapping="Wrap" Margin="30 5 30 0" Foreground="{StaticResource TangoErrorBrush}" Text="{Binding FailedError,FallbackValue='Unexpected error'}"></TextBlock> <TextBlock HorizontalAlignment="Center" Margin="0 20 0 0">Tap 'RESTART' to restart the process</TextBlock> <touch:TouchButton Margin="0 180 0 0" Padding="20" Width="300" CornerRadius="35" Command="{Binding RestartCommand}">RESTART</touch:TouchButton> </StackPanel> </Grid> </controls:NavigationControl> </DockPanel> </Grid> </Grid> </UserControl>