screensaver/snsrdisplaycontrol_s60/inc/snsrdisplaycontrolserver.h
changeset 92 6727c5d0afc7
equal deleted inserted replaced
85:35368b604b28 92:6727c5d0afc7
       
     1 /*
       
     2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: Header of Screensaver Display Control Server
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef C_CSNSRDISPLAYCONTROLSERVER_H
       
    19 #define C_CSNSRDISPLAYCONTROLSERVER_H
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 /**
       
    24  *  Screensaver Display Control Server
       
    25  *  A server to act as capability proxy to allow controlling display power save
       
    26  *  mode from dialog plugin running in HbDeviceDialogServer process. That process
       
    27  *  has no WriteDeviceDialog capability and can't call CPowerSaveDisplayMode
       
    28  *  platform API directly.
       
    29  */
       
    30 class CSnsrDisplayControlServer : public CServer2
       
    31     {
       
    32 public:
       
    33 
       
    34     static CSnsrDisplayControlServer* NewLC();
       
    35     virtual ~CSnsrDisplayControlServer();
       
    36 
       
    37 private: // from CServer2
       
    38     CSession2* NewSessionL( const TVersion& aVersion, const RMessage2& aMessage ) const;
       
    39     
       
    40 private:
       
    41 
       
    42     CSnsrDisplayControlServer();
       
    43     void ConstructL();
       
    44 
       
    45 private: // data
       
    46 
       
    47     };
       
    48 
       
    49 #endif // C_CSNSRDISPLAYCONTROLSERVER_H