Halyri - Mobiili  0.9
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events
Halyri.Urgent Class Reference

Here is where the connection happens visualy. When connection is taken to process by emergency exchange handler navigates to Connected.xaml. User can turn GPS on and toggle NoSound. More...

Inheritance diagram for Halyri.Urgent:

Public Member Functions

void InitializeComponent ()
 InitializeComponent More...
 
void InitializeComponent ()
 InitializeComponent More...
 
void InitializeComponent ()
 InitializeComponent More...
 
void InitializeComponent ()
 InitializeComponent More...
 
 Urgent ()
 If gps is not enabled shows gps switch. Connection goes to own thread so UI thread does not get blocked. More...
 

Protected Member Functions

override void OnNavigatedTo (NavigationEventArgs e)
 if navigationservice url contains "NotUrgent", changes priority to not urgent so in connection it can determine it to server. More...
 

Private Member Functions

void Connect ()
 Connects using connection class and sends priority, personalinfo, deviceinfo and phones location. Connection class handles what information is send to server. More...
 
void connection_ConnectionFailedEvent ()
 
void NotConnectedThread ()
 
void connection_ConnectedEvent ()
 Invokes ui thread when connected. More...
 
void ConnectedUiThread ()
 Navigates to connected.xaml. Adds no sound to url if it is checked. Also removes backentry so it wont come back to this view from connected.xaml More...
 
void GPSToggle_Checked (object sender, RoutedEventArgs e)
 Saves gps settings to true. More...
 
void GPSToggle_Unchecked (object sender, RoutedEventArgs e)
 Saves gps settings to false. More...
 
void CantMakeNoiseTextBox_Tap (object sender, System.Windows.Input.GestureEventArgs e)
 Switchs checkbox value. More...
 
void CantMakeNoiseCheckBox_Checked (object sender, RoutedEventArgs e)
 Changes canMakeNoiseBool value to false. More...
 
void CantMakeNoiseCheckBox_Unchecked (object sender, RoutedEventArgs e)
 Changes canMakeNoiseBool to true. More...
 
void CancelButton_Click (object sender, RoutedEventArgs e)
 Changes connectionabort to true so it wont navigate to connnected.xaml and then navigates back. More...
 

Private Attributes

bool _contentLoaded
 
Settings settings = new Settings()
 
bool canMakeNoiseBool = true
 
Connection connection
 
bool ConnectionAborted = false
 
PhoneCallTask phoneCallTask
 
UpdateConnectionPriorityRequest priority
 
String emergencyType
 

Detailed Description

Here is where the connection happens visualy. When connection is taken to process by emergency exchange handler navigates to Connected.xaml. User can turn GPS on and toggle NoSound.

Constructor & Destructor Documentation

Halyri.Urgent.Urgent ( )

If gps is not enabled shows gps switch. Connection goes to own thread so UI thread does not get blocked.

Member Function Documentation

void Halyri.Urgent.CancelButton_Click ( object  sender,
RoutedEventArgs  e 
)
private

Changes connectionabort to true so it wont navigate to connnected.xaml and then navigates back.

void Halyri.Urgent.CantMakeNoiseCheckBox_Checked ( object  sender,
RoutedEventArgs  e 
)
private

Changes canMakeNoiseBool value to false.

void Halyri.Urgent.CantMakeNoiseCheckBox_Unchecked ( object  sender,
RoutedEventArgs  e 
)
private

Changes canMakeNoiseBool to true.

void Halyri.Urgent.CantMakeNoiseTextBox_Tap ( object  sender,
System.Windows.Input.GestureEventArgs  e 
)
private

Switchs checkbox value.

void Halyri.Urgent.Connect ( )
private

Connects using connection class and sends priority, personalinfo, deviceinfo and phones location. Connection class handles what information is send to server.

void Halyri.Urgent.ConnectedUiThread ( )
private

Navigates to connected.xaml. Adds no sound to url if it is checked. Also removes backentry so it wont come back to this view from connected.xaml

void Halyri.Urgent.connection_ConnectedEvent ( )
private

Invokes ui thread when connected.

void Halyri.Urgent.connection_ConnectionFailedEvent ( )
private
void Halyri.Urgent.GPSToggle_Checked ( object  sender,
RoutedEventArgs  e 
)
private

Saves gps settings to true.

void Halyri.Urgent.GPSToggle_Unchecked ( object  sender,
RoutedEventArgs  e 
)
private

Saves gps settings to false.

void Halyri.Urgent.InitializeComponent ( )

InitializeComponent

void Halyri.Urgent.InitializeComponent ( )

InitializeComponent

void Halyri.Urgent.InitializeComponent ( )

InitializeComponent

void Halyri.Urgent.InitializeComponent ( )

InitializeComponent

void Halyri.Urgent.NotConnectedThread ( )
private
override void Halyri.Urgent.OnNavigatedTo ( NavigationEventArgs  e)
protected

if navigationservice url contains "NotUrgent", changes priority to not urgent so in connection it can determine it to server.

Member Data Documentation

bool Halyri.Urgent._contentLoaded
private
bool Halyri.Urgent.canMakeNoiseBool = true
private
Connection Halyri.Urgent.connection
private
bool Halyri.Urgent.ConnectionAborted = false
private
String Halyri.Urgent.emergencyType
private
PhoneCallTask Halyri.Urgent.phoneCallTask
private
Initial value:
= new PhoneCallTask()
{
DisplayName = "Hätäpuhelu",
PhoneNumber = "0408054955"
}
UpdateConnectionPriorityRequest Halyri.Urgent.priority
private
Initial value:
= new UpdateConnectionPriorityRequest()
{
priority = ConnectionPriorityDto.Urgent
}
Settings Halyri.Urgent.settings = new Settings()
private

The documentation for this class was generated from the following files: