|
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 "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 #if !defined(SAVEPRIV_H) |
|
17 #define SAVEPRIV_H |
|
18 |
|
19 |
|
20 _LIT(__SHUTDOWN_SERVER_NAME,"!ShutdownServer"); |
|
21 _LIT(__TEST_SHUTDOWN_SERVER_NAME,"!TestShutdownServer"); |
|
22 |
|
23 /** |
|
24 @internalTechnology |
|
25 */ |
|
26 const TInt KShutdownMajorVN =6; |
|
27 const TInt KShutdownMinorVN =0; |
|
28 const TInt KShutdownBuildVN =1; |
|
29 const TInt KShutdownMessageSlots =1; |
|
30 |
|
31 /** |
|
32 @internalTechnology |
|
33 */ |
|
34 enum TSaveNotifierOpCode |
|
35 { |
|
36 TSaveOpCodeNotify, |
|
37 TSaveOpCodeNotifyCancel, |
|
38 TSaveOpCodeHandleError, |
|
39 TSaveOpCodePowerOff, //Supported only in special test debug build. |
|
40 TSaveOpCodeQueryPowerState //Supported only in special test debug build. |
|
41 }; |
|
42 |
|
43 #ifdef SYMBIAN_SSM_GRACEFUL_SHUTDOWN |
|
44 /** |
|
45 Opcodes for handling shutdown event from ssm/ssmutilsrv/sup for shutdown. |
|
46 This is required for sup (running in ssmutilsrv.exe) to interact with shutdownsrv.dll (running in shutdownsrvs.exe) |
|
47 |
|
48 @internalTechnology |
|
49 */ |
|
50 enum TEventObserverAdaptorOpCode |
|
51 { |
|
52 EEventObsAdaptHandleShutdown = TSaveOpCodeQueryPowerState + 1, //handle shutdown event |
|
53 EEventObsAdaptClientArrayCount, //client array count |
|
54 EEventObsAdaptClientArray, //client array |
|
55 EEventObsAdaptIsClientHung, //is client hung |
|
56 EEventObsAdaptGetShutdownState //information about the shutdown status |
|
57 }; |
|
58 #endif // SYMBIAN_SSM_GRACEFUL_SHUTDOWN |
|
59 |
|
60 /** |
|
61 @internalTechnology |
|
62 */ |
|
63 struct TErrorAndClientId |
|
64 { |
|
65 TInt iError; |
|
66 TUint iClientId; |
|
67 }; |
|
68 |
|
69 // |
|
70 // TShutdownServerStart |
|
71 // |
|
72 /** |
|
73 @internalTechnology |
|
74 */ |
|
75 class TShutdownServerStart |
|
76 { |
|
77 public: |
|
78 TShutdownServerStart(TRequestStatus& aStatus); |
|
79 TPtrC AsCommand() const; |
|
80 // |
|
81 TShutdownServerStart(); |
|
82 TInt GetCommand(); |
|
83 void SignalL(); |
|
84 private: |
|
85 TThreadId iId; |
|
86 TRequestStatus* iStatus; |
|
87 }; |
|
88 |
|
89 |
|
90 #endif |