epoc32/include/savepriv.h
branchSymbian2
changeset 2 2fe1408b6811
equal deleted inserted replaced
1:666f914201fb 2:2fe1408b6811
       
     1 // Copyright (c) 1997-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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #if !defined(SAVEPRIV_H)
       
    17 #define SAVEPRIV_H
       
    18 
       
    19 
       
    20 _LIT(__SHUTDOWN_SERVER_NAME,"!ShutdownServer");
       
    21 
       
    22 /**
       
    23 @internalTechnology
       
    24 */
       
    25 const TInt KShutdownMajorVN			=6;
       
    26 const TInt KShutdownMinorVN			=0;
       
    27 const TInt KShutdownBuildVN			=1;
       
    28 const TInt KShutdownMessageSlots	=1;
       
    29 
       
    30 /**
       
    31 @internalTechnology
       
    32 */
       
    33 enum TSaveNotifierOpCode
       
    34 	{
       
    35 	TSaveOpCodeNotify,
       
    36 	TSaveOpCodeNotifyCancel,
       
    37 	TSaveOpCodeHandleError,
       
    38 	TSaveOpCodePowerOff,        //Supported only in special test debug build.
       
    39 	TSaveOpCodeQueryPowerState  //Supported only in special test debug build.
       
    40 	};
       
    41 
       
    42 /**
       
    43 @internalTechnology
       
    44 */
       
    45 struct TErrorAndClientId
       
    46 	{
       
    47 	TInt iError;
       
    48 	TUint iClientId;
       
    49 	};
       
    50 
       
    51 //
       
    52 // TShutdownServerStart
       
    53 //
       
    54 /**
       
    55 @internalTechnology
       
    56 */
       
    57 class TShutdownServerStart
       
    58 	{
       
    59 public:
       
    60 	TShutdownServerStart(TRequestStatus& aStatus);
       
    61 	TPtrC AsCommand() const;
       
    62 //
       
    63 	TShutdownServerStart();
       
    64 	TInt GetCommand();
       
    65 	void SignalL();
       
    66 private:
       
    67 	TThreadId iId;
       
    68 	TRequestStatus* iStatus;
       
    69 	};
       
    70 
       
    71 
       
    72 #endif