screensaver/snsrdisplaycontrol_s60/inc/snsrdisplaycontrolsession.h
changeset 92 6727c5d0afc7
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/screensaver/snsrdisplaycontrol_s60/inc/snsrdisplaycontrolsession.h	Fri Sep 17 08:27:54 2010 +0300
@@ -0,0 +1,51 @@
+/*
+* Copyright (c) 2010 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: Header for server side session object of
+*              Screensaver Display Control Server 
+*
+*/
+
+#ifndef C_CSNSRDISPLAYCONTROLSESSION_H
+#define C_CSNSRDISPLAYCONTROLSESSION_H
+
+#include <e32base.h>
+
+class CPowerSaveDisplayMode;
+
+
+/**
+ *  Server side session object for Screensaver Display Control Server
+ */
+class CSnsrDisplayControlSession : public CSession2
+    {
+public:
+
+    IMPORT_C static CSnsrDisplayControlSession* NewL();
+    virtual ~CSnsrDisplayControlSession();
+
+public: // from CSession2
+    void ServiceL( const RMessage2& aMessage );
+    
+private:
+
+    CSnsrDisplayControlSession();
+    void ConstructL();
+
+private: // data
+
+    CPowerSaveDisplayMode* iPowerSave;
+    HBufC16* iPowerSavePixelBuffer;
+    };
+
+#endif // C_CSNSRDISPLAYCONTROLSESSION_H