CopaApp
Change of Plan Application
 All Classes Functions Variables Pages
Public Member Functions | Protected Member Functions | List of all members
unicopa.copa.app.gui.LoginActivity Class Reference

In this activity a user can enter his name and password to login or click a button to logout. More...

Inheritance diagram for unicopa.copa.app.gui.LoginActivity:
Inheritance graph
Collaboration diagram for unicopa.copa.app.gui.LoginActivity:
Collaboration graph

Public Member Functions

void onBackPressed ()
 Lead to MainActivity if PopUp.loginFail happened before.
 
boolean onCreateOptionsMenu (Menu menu)
 Shows the menu.
 
void onLoginButtonClick (View view)
 Is used if LoginButton is clicked. More...
 
void onLogoutButtonClick (View view)
 Is used if LogoutButton is clicked. More...
 
boolean onOptionsItemSelected (MenuItem item)
 Handles clicks on a menu-item and switches to other activity, depending on which item was clicked.
 
void onChangeUserButtonClick (View view)
 Is used if ChangeUserButton is clicked. More...
 

Protected Member Functions

void onCreate (Bundle savedInstanceState)
 Shows Layout and depending on whether the user is logged in or not the logout- oder login-button.
 

Detailed Description

In this activity a user can enter his name and password to login or click a button to logout.

Author
Christiane Kuhn, Martin Rabe, Robin Muench

Member Function Documentation

void unicopa.copa.app.gui.LoginActivity.onChangeUserButtonClick ( View  view)

Is used if ChangeUserButton is clicked.

Does the necessary steps to change the user if its possible. Informs the user about the other necessary steps.

Parameters
view
void unicopa.copa.app.gui.LoginActivity.onLoginButtonClick ( View  view)

Is used if LoginButton is clicked.

Calls the ServerConnection.login method and logs in the user.If it was successful switches back to MainActivity and changes layout of Login before, so that its correct if the backbutton is pressed.

Parameters
view
void unicopa.copa.app.gui.LoginActivity.onLogoutButtonClick ( View  view)

Is used if LogoutButton is clicked.

Calls the ServerConnection.logout method and logs out the user. If it was successful switches back to MainActivity and changes layout of Login before, so that its correct if the backbutton is pressed.

Parameters
view

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