Vesna
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
PowerLossBusinessLogic Class Reference

#include <PowerLossBusinessLogic.h>

Inheritance diagram for PowerLossBusinessLogic:
Inheritance graph
[legend]
Collaboration diagram for PowerLossBusinessLogic:
Collaboration graph
[legend]

Classes

class  DataClass
 

Public Types

enum  PowerLossAction {
  PowerLossActionDoNothing = 0x00, PowerLossActionShowCancellableNotification = 0x01, PowerLossActionShowShutdownNotification = 0x02, PowerLossActionShutdown = 0x04,
  PowerLossActionPowerRestored = 0x08, PowerLossActionFirstPowerLossOccurence = 0x10
}
 

Public Member Functions

 PowerLossBusinessLogic ()
 
virtual ~PowerLossBusinessLogic ()
 
PowerLossBusinessLogic::PowerLossActions AnalyzePowerState ()
 AnalyzePowerState - checks power state from system business logic and returns appropriate action from enum. More...
 
void PowerLossPopupStateChanged (const bool isPopupShown, const bool cancellablePopup=true)
 PowerLossPopupStateChanged - application state should notify this BL about showing/hiding popup message. More...
 
- Public Member Functions inherited from BusinessLogic
 BusinessLogic (ApplicationDefines::BusinessLogicType businessLogicType, ApplicationDefines::BusinessLogicLifeTimeType businessLogicLifeTimeType)
 
virtual ~BusinessLogic ()
 
ApplicationDefines::BusinessLogicType GetBusinessLogicType () const
 
ApplicationDefines::BusinessLogicLifeTimeType GetBusinessLogicLifeTimeType () const
 

Static Public Attributes

static const
ApplicationDefines::BusinessLogicType 
mBusinessLogicType = ApplicationDefines::PowerLossBusinessLogic
 

Member Enumeration Documentation

Enumerator
PowerLossActionDoNothing 
PowerLossActionShowCancellableNotification 
PowerLossActionShowShutdownNotification 
PowerLossActionShutdown 
PowerLossActionPowerRestored 
PowerLossActionFirstPowerLossOccurence 

Constructor & Destructor Documentation

PowerLossBusinessLogic::PowerLossBusinessLogic ( )
PowerLossBusinessLogic::~PowerLossBusinessLogic ( )
virtual

Member Function Documentation

PowerLossBusinessLogic::PowerLossActions PowerLossBusinessLogic::AnalyzePowerState ( )

AnalyzePowerState - checks power state from system business logic and returns appropriate action from enum.

Returns
power loss action, which should be executed by application state
void PowerLossBusinessLogic::PowerLossPopupStateChanged ( const bool  isPopupShown,
const bool  cancellablePopup = true 
)

PowerLossPopupStateChanged - application state should notify this BL about showing/hiding popup message.

Parameters
isPopupShown
cancellablePopup

Member Data Documentation

const ApplicationDefines::BusinessLogicType PowerLossBusinessLogic::mBusinessLogicType = ApplicationDefines::PowerLossBusinessLogic
static

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