sysstatemgmt/systemstarter/test/tinc/tpowerdownclient.h
changeset 0 4e1aa6a622a0
equal deleted inserted replaced
-1:000000000000 0:4e1aa6a622a0
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @test
       
    19  @internalComponent - Internal Symbian test code
       
    20 */
       
    21 
       
    22 #ifndef __TPOWERDOWNCLIENT_H
       
    23 #define __TPOWERDOWNCLIENT_H
       
    24 
       
    25 #include <savenotf.h>
       
    26 
       
    27 /**
       
    28 This is a test class with the same name of the friend class 'CPowerdownClient' of CSaveNotifier.
       
    29 It helps to access the exported private method CSaveNotifier::ServerPowerState() to send a request
       
    30 to query the power state of the shutdown server.
       
    31 */
       
    32 class CPowerdownClient: public CBase
       
    33 	{
       
    34 public:
       
    35     static CPowerdownClient* NewL();
       
    36     ~CPowerdownClient();
       
    37 	TInt QueryServerPowerState(CSaveNotifier* aNotifier, TBool& aPowerOff);
       
    38 private:
       
    39     CPowerdownClient();
       
    40 	};
       
    41 
       
    42 #endif // __TPOWERDOWNCLIENT_H