es.cesar.quitesleep.operations
Class StartStopServicesOperations

java.lang.Object
  extended by es.cesar.quitesleep.operations.StartStopServicesOperations

public class StartStopServicesOperations
extends java.lang.Object

Author:
Cesar Valiente Gordo

Constructor Summary
StartStopServicesOperations()
           
 
Method Summary
static boolean startStopMailService(boolean mailServiceState)
          Function that update the ddbb with the state of mailService
static boolean startStopQuiteSleepService(boolean stateQuiteSleepService)
          Start or Stop the QuiteSleep incoming call service.
static boolean startStopSmsService(boolean smsServiceState)
          Function that update the ddbb with the state of smsService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartStopServicesOperations

public StartStopServicesOperations()
Method Detail

startStopQuiteSleepService

public static boolean startStopQuiteSleepService(boolean stateQuiteSleepService)
Start or Stop the QuiteSleep incoming call service. If the service is already started nothing to do and return true, if the service isn't active, return true saving the state in the Settings object in the ddbb.

Parameters:
stateQuiteSleepService -
Returns:
True if the operation was sucessfully. False if an exception occurred.
See Also:
boolean

startStopMailService

public static boolean startStopMailService(boolean mailServiceState)
Function that update the ddbb with the state of mailService

Parameters:
mailServiceState -
Returns:
true if the operation was sucessfully or false if some exception occurred
See Also:
boolean

startStopSmsService

public static boolean startStopSmsService(boolean smsServiceState)
Function that update the ddbb with the state of smsService

Parameters:
smsServiceState -
Returns:
true if the operation was sucessfully or false if not
See Also:
boolean