devicesrv_plat/powersave_api/inc/psmclientobserver.h
changeset 0 4e1aa6a622a0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/devicesrv_plat/powersave_api/inc/psmclientobserver.h	Tue Feb 02 00:53:00 2010 +0200
@@ -0,0 +1,63 @@
+/*
+* Copyright (c) 2007 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:  PSM Client Observer
+*
+*/
+
+
+
+#ifndef PSMCLIENTOBSERVER_H
+#define PSMCLIENTOBSERVER_H
+
+//  INCLUDES
+#include <e32base.h>
+#include <psmtypes.h>
+
+// CLASS DECLARATION
+
+/**
+ * PSM Client Observer for Power Save Mode change notification
+ *
+ *  @lib psmclient.lib
+ */
+class MPsmClientObserver
+    {
+public:
+
+    /**
+     * This method is called when Power Save Mode is changed.
+     *
+     * @param aMode Mode that is currently active
+     */
+    virtual void PowerSaveModeChanged( const TPsmsrvMode aMode ) = 0;
+
+    /**
+     * This method is called when there is an error during power save mode change
+     * 
+     * @param aError System wide error code. 
+     *               KErrNoMemory if memory allocation failed, 
+     *               KErrAlreadyExists if the requested mode is already in use, 
+     *               KErrArgument if the requested mode is not supported.
+     *               KErrCompletion if mode change done only partially, i.e. some 
+     *               actions are not done for certain reason.
+     */
+    virtual void PowerSaveModeChangeError( const TInt aError ) = 0;
+
+    };
+
+#endif //PSMCLIENTOBSERVER_H
+
+// End of File
+
+