sipplugins/sippsystemstatemonitor/inc/sipdevicestateaware.h
branchRCL_3
changeset 9 1e1cc61f56c3
parent 0 307788aac0a8
equal deleted inserted replaced
4:dd3853b8dc3f 9:1e1cc61f56c3
    47 		/**
    47 		/**
    48 		 * SIP sub-components should call this function in order
    48 		 * SIP sub-components should call this function in order
    49          * to stop themselves getting notified for system state changes 
    49          * to stop themselves getting notified for system state changes 
    50 		 */
    50 		 */
    51         void RemoveObserver( MSipSystemStateObserver& aObserver );
    51         void RemoveObserver( MSipSystemStateObserver& aObserver );
    52         
       
    53         /**
       
    54          * In case if profile de-registration could not be completed by
       
    55          * observers, TimerExpiredL will call this function to indicate 
       
    56          * that event processing is complete and further notification will
       
    57          * be given to the System State Manager. 
       
    58          */
       
    59 		void EventProcessingCompleted();
       
    60 		
    52 		
    61 		/**
    53 		/**
    62 		 * In case if the profiles de-registration is completed within the 
    54 		 * In case if the profiles de-registration is completed within the 
    63 		 * timer started, this function will be called from Observers to indicate
    55 		 * timer started, this function will be called from Observers to indicate
    64 		 * that the  procession has been done. This function notifies to the SSM
    56 		 * that the  procession has been done. This function notifies to the SSM
    73 		 */
    65 		 */
    74 		static TInt TimerExpired(TAny* aSelf);
    66 		static TInt TimerExpired(TAny* aSelf);
    75         
    67         
    76         //Destructor
    68         //Destructor
    77         ~CSipDeviceStateAware();
    69         ~CSipDeviceStateAware();
       
    70         
    78     private:
    71     private:
    79         //Default Construtor
    72         //Default Construtor
    80         CSipDeviceStateAware();
    73         CSipDeviceStateAware();
    81         //Second Phase Constructor
    74         //Second Phase Constructor
    82         void ConstructL();
    75         void ConstructL();
    88         /**
    81         /**
    89          * This function will notify all the observers when the
    82          * This function will notify all the observers when the
    90          * state of the phone changes
    83          * state of the phone changes
    91          */
    84          */
    92         void NotifyObservers(CSipSystemStateMonitor::TSystemState aState) const;
    85         void NotifyObservers(CSipSystemStateMonitor::TSystemState aState) const;
       
    86         
       
    87         /**
       
    88          * In case if profile de-registration could not be completed by
       
    89          * observers, TimerExpiredL will call this function to indicate 
       
    90          * that event processing is complete and further notification will
       
    91          * be given to the System State Manager. 
       
    92          */
       
    93         void EventProcessingCompleted();
       
    94         
    93     private:
    95     private:
    94         
    96         
    95         //List of observers who have opted for system state changes
    97         //List of observers who have opted for system state changes
    96         RPointerArray<MSipSystemStateObserver> iObservers;
    98         RPointerArray<MSipSystemStateObserver> iObservers;
    97         //SystemAwareSession object used for monitoring system state
    99         //SystemAwareSession object used for monitoring system state