diff -r 000000000000 -r 4e1aa6a622a0 sysstatemgmt/ssmutilityplugins/ssmpowersup/inc/ssmpowersup.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sysstatemgmt/ssmutilityplugins/ssmpowersup/inc/ssmpowersup.h Tue Feb 02 00:53:00 2010 +0200 @@ -0,0 +1,76 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: Declaration of CSsmPowerSup class. +* +*/ + +#ifndef C_SSMPOWERSUP_H +#define C_SSMPOWERSUP_H + +#include +#include +#include + +/** +* SSM Utility plugin listening for DOS originated reset and shutdown events. +*/ +NONSHARABLE_CLASS( CSsmPowerSup ) : public CActive, public MSsmUtility + { + +public: + + /** + * Two-phase constructor. + */ + IMPORT_C static MSsmUtility* NewL(); + + /** + * Destructor. + */ + virtual ~CSsmPowerSup(); + +private: // From CActive + + void RunL(); + void DoCancel(); + +private: // From MSsmUtility + + void InitializeL(); + void StartL(); + void Release(); + +private: + + /** + * First phase constructor. + */ + CSsmPowerSup(); + + /** + * Activate the active object. + */ + void Activate(); + +private: // data + + /** Session with adaptation server. */ + RSsmStateAdaptation iAdaptation; + + /** Event data will be received here. */ + TPckgBuf iEventBuf; + + }; + +#endif // C_SSMPOWERSUP_H