aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Communication/PMR/Common/MessageContainer.pb-c.h
blob: a97cb63678e0f1d22ede7bfaaf98736a35bdfaca (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
/* Generated by the protocol buffer compiler.  DO NOT EDIT! */
/* Generated from: MessageContainer.proto */

#ifndef PROTOBUF_C_MessageContainer_2eproto__INCLUDED
#define PROTOBUF_C_MessageContainer_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 "MessageType.pb-c.h"
#include "ErrorCode.pb-c.h"

typedef struct _MessageContainer MessageContainer;


/* --- enums --- */


/* --- messages --- */

struct  _MessageContainer
{
  ProtobufCMessage base;
  protobuf_c_boolean has_type;
  MessageType type;
  char *token;
  protobuf_c_boolean has_timeout;
  uint32_t timeout;
  protobuf_c_boolean has_continuous;
  protobuf_c_boolean continuous;
  protobuf_c_boolean has_continuoustimeout;
  uint32_t continuoustimeout;
  protobuf_c_boolean has_completed;
  protobuf_c_boolean completed;
  protobuf_c_boolean has_data;
  ProtobufCBinaryData data;
  protobuf_c_boolean has_crc;
  uint32_t crc;
  protobuf_c_boolean has_error;
  ErrorCode error;
  char *errormessage;
};
#define MESSAGE_CONTAINER__INIT \
 { PROTOBUF_C_MESSAGE_INIT (&message_container__descriptor) \
    , 0, MESSAGE_TYPE__None, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, {0,NULL}, 0, 0, 0, ERROR_CODE__NONE, NULL }


/* MessageContainer methods */
void   message_container__init
                     (MessageContainer         *message);
size_t message_container__get_packed_size
                     (const MessageContainer   *message);
size_t message_container__pack
                     (const MessageContainer   *message,
                      uint8_t             *out);
size_t message_container__pack_to_buffer
                     (const MessageContainer   *message,
                      ProtobufCBuffer     *buffer);
MessageContainer *
       message_container__unpack
                     (ProtobufCAllocator  *allocator,
                      size_t               len,
                      const uint8_t       *data);
void   message_container__free_unpacked
                     (MessageContainer *message,
                      ProtobufCAllocator *allocator);
/* --- per-message closures --- */

typedef void (*MessageContainer_Closure)
                 (const MessageContainer *message,
                  void *closure_data);

/* --- services --- */


/* --- descriptors --- */

extern const ProtobufCMessageDescriptor message_container__descriptor;

PROTOBUF_C__END_DECLS


#endif  /* PROTOBUF_C_MessageContainer_2eproto__INCLUDED */
" HorizontalAlignment="Right"> <StackPanel> <TextBlock FontSize="16" FontWeight="SemiBold">LOGIN</TextBlock> <Border Width="300" BorderThickness="1" BorderBrush="Gray" Margin="0 5 0 0" Padding="15 5" Height="150" Background="#8EFFFFFF"> <local:UserView FontSize="10" DataContext="{Binding ManagedUser}" /> </Border> </StackPanel> <StackPanel Margin="10 0 0 0"> <TextBlock FontSize="16" FontWeight="SemiBold">CONTACT</TextBlock> <Border Width="300" BorderThickness="1" BorderBrush="Gray" Margin="0 5 0 0" Padding="15 5" Height="250" Background="#8EFFFFFF"> <local:ContactView FontSize="10" DataContext="{Binding ManagedUser.Contact}" /> </Border> </StackPanel> <StackPanel Margin="10 0 0 0"> <TextBlock FontSize="16" FontWeight="SemiBold">ADDRESS</TextBlock> <Border Width="300" BorderThickness="1" BorderBrush="Gray" Margin="0 5 0 0" Padding="15 5" Height="300" Background="#8EFFFFFF"> <DockPanel> <DockPanel DockPanel.Dock="Top"> <materialDesign:PackIcon Kind="Magnify" DockPanel.Dock="Left" Width="24" Height="24" /> <autoComplete:AutoCompleteTextBox x:Name="address_auto" Margin="5 0 0 0" Delay="500" DisplayMember="DisplayName" SelectedItem="{Binding SelectedUserPlace,Mode=OneWayToSource}" Provider="{StaticResource PlacesProvider}" materialDesign:HintAssist.Hint="Find address" /> </DockPanel> <local:AddressView FontSize="10" DataContext="{Binding ManagedUser.Address}" /> </DockPanel> </Border> </StackPanel> </StackPanel> </StackPanel> </Grid> </Grid> <Grid DockPanel.Dock="Bottom"> <Button Margin="0 10 0 0" MinWidth="200" Height="60" Command="{Binding SaveManagedUserCommand}" HorizontalAlignment="Right"> <StackPanel Orientation="Horizontal"> <TextBlock FontSize="18" VerticalAlignment="Center">SAVE</TextBlock> <materialDesign:PackIcon Margin="5 0 0 0" Kind="ContentSave" Width="30" Height="30" /> </StackPanel> </Button> </Grid> <Grid> <DockPanel Margin="0 20 0 0"> <TextBlock DockPanel.Dock="Top" FontSize="16" FontWeight="SemiBold">ROLES</TextBlock> <Grid Margin="0 5 0 0" Style="{StaticResource droppableGrid}" dragAndDrop:DragAndDropService.Drop="OnDropRole" Background="#7BFFFFFF"> <TextBlock HorizontalAlignment="Center" VerticalAlignment="Top" Foreground="Silver" FontSize="20">DRAG &amp; DROP ROLES</TextBlock> <Border BorderBrush="Gray" BorderThickness="1" Padding="10"> <ListBox ItemsSource="{Binding ManagedUserRoles}" ItemContainerStyle="{StaticResource basicListBoxItem}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.VerticalScrollBarVisibility="Disabled"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPanel Orientation="Horizontal" /> </ItemsPanelTemplate> </ListBox.ItemsPanel> <ListBox.ItemTemplate> <DataTemplate DataType="{x:Type entities:Role}"> <Grid> <Grid.ToolTip> <StackPanel> <TextBlock Text="{Binding Description}" FontSize="10" Margin="0 0 0 10"></TextBlock> <ItemsControl ItemsSource="{Binding RolesPermissions}"> <ItemsControl.ItemTemplate> <DataTemplate> <Grid> <StackPanel Orientation="Horizontal"> <materialDesign:PackIcon Kind="Security" Width="12" /> <TextBlock Margin="5 0 0 0" FontSize="10" Text="{Binding Permission.Name}"></TextBlock> </StackPanel> </Grid> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </StackPanel> </Grid.ToolTip> <Border Margin="5" CornerRadius="5" Width="100" Height="100" BorderThickness="1" Padding="2"> <Border.Style> <Style TargetType="Border"> <Setter Property="BorderBrush" Value="Silver"></Setter> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=ListBoxItem},Path=IsSelected}" Value="True"> <Setter Property="BorderBrush" Value="{StaticResource AccentColorBrush}"></Setter> </DataTrigger> </Style.Triggers> </Style> </Border.Style> <Border.Background> <LinearGradientBrush> <GradientStop Color="White"/> <GradientStop Color="#FFD6D6D6" Offset="1"/> </LinearGradientBrush> </Border.Background> <Grid> <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> <Image Source="../Images/roles.png" Width="32" RenderOptions.BitmapScalingMode="Fant"></Image> <TextBlock Text="{Binding Name}" TextWrapping="Wrap" HorizontalAlignment="Center" TextAlignment="Center" FontSize="13" Margin="5"></TextBlock> </StackPanel> </Grid> </Border> <Button HorizontalAlignment="Right" VerticalAlignment="Top" Margin="10" Cursor="Hand" ToolTip="Remove Role" Command="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=DataContext.RemoveRoleCommand}" CommandParameter="{Binding}"> <Button.Style> <Style TargetType="Button" BasedOn="{StaticResource emptyButton}"> <Setter Property="Visibility" Value="Hidden"></Setter> <Style.Triggers> <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType=Grid},Path=IsMouseOver}" Value="True"> <Setter Property="Visibility" Value="Visible"></Setter> </DataTrigger> </Style.Triggers> </Style> </Button.Style> <materialDesign:PackIcon Kind="Delete" Foreground="#FF5C5C" Width="16" Height="16" /> </Button> </Grid> </DataTemplate> </ListBox.ItemTemplate> </ListBox> </Border> </Grid> </DockPanel> </Grid> </DockPanel> </Grid> <Grid Grid.Column="1" Background="White"> <DockPanel Margin="10"> <StackPanel Orientation="Horizontal" DockPanel.Dock="Top"> <Image Source="../Images/roles.png" Width="70" RenderOptions.BitmapScalingMode="Fant"></Image> <TextBlock FontSize="16" FontWeight="SemiBold" VerticalAlignment="Center" Margin="10 0 0 0">AVAILABLE ROLES</TextBlock> </StackPanel> <Grid> <ListBox ItemsSource="{Binding Roles}" ItemContainerStyle="{StaticResource basicListBoxItem}" HorizontalContentAlignment="Stretch" Background="Transparent"> <ListBox.ItemTemplate> <DataTemplate> <Grid Background="Transparent" IsHitTestVisible="True" Style="{StaticResource draggableGrid}" dragAndDrop:DragAndDropService.DraggableBorderBrush="{StaticResource AccentColorBrush}" dragAndDrop:DragAndDropService.Draggable="True" dragAndDrop:DragAndDropService.DraggingSurface="{Binding RelativeSource={RelativeSource AncestorType=UserControl},Path=DraggingSurface}"> <Grid.ToolTip> <StackPanel> <TextBlock Text="{Binding Description}" FontSize="10" Margin="0 0 0 10"></TextBlock> <ItemsControl ItemsSource="{Binding RolesPermissions}"> <ItemsControl.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <materialDesign:PackIcon Kind="Security" Width="12" /> <TextBlock Margin="5 0 0 0" FontSize="10" Text="{Binding Permission.Name}"></TextBlock> </StackPanel> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </StackPanel> </Grid.ToolTip> <DockPanel> <Border DockPanel.Dock="Left" Width="100" Height="100" IsHitTestVisible="False" BorderBrush="Silver" BorderThickness="1" CornerRadius="5" Margin="5" Padding="2"> <Border.Background> <LinearGradientBrush> <GradientStop Color="White"/> <GradientStop Color="#FFD6D6D6" Offset="1"/> </LinearGradientBrush> </Border.Background> <Grid> <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center"> <Image Source="../Images/roles.png" Width="32" RenderOptions.BitmapScalingMode="Fant"></Image> <TextBlock Text="{Binding Name}" TextWrapping="Wrap" HorizontalAlignment="Center" TextAlignment="Center" FontSize="13" Margin="5"></TextBlock> </StackPanel> </Grid> </Border> <Grid MaxHeight="85" HorizontalAlignment="Left" Margin="20 0 0 0"> <ItemsControl ItemsSource="{Binding RolesPermissions}"> <ItemsControl.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <materialDesign:PackIcon Kind="Security" Width="12" /> <TextBlock Margin="5 0 0 0" FontSize="10" TextTrimming="CharacterEllipsis" MaxWidth="150" Text="{Binding Permission.Name}"></TextBlock> </StackPanel> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> <Grid> <Grid.Background> <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1"> <GradientStop/> <GradientStop Color="White" Offset="1"/> </LinearGradientBrush> </Grid.Background> </Grid> </Grid> </DockPanel> </Grid> </DataTemplate> </ListBox.ItemTemplate> </ListBox> </Grid> </DockPanel> <Rectangle HorizontalAlignment="Left" Stroke="#BBBBBB" StrokeThickness="1"></Rectangle> </Grid> </Grid> <dragAndDrop:DraggingSurface x:Name="dragSurface" /> </Grid> </UserControl>