equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2007 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: Implementation of customization components |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __SCREENSAVER_SERVER_H__ |
|
21 #define __SCREENSAVER_SERVER_H__ |
|
22 |
|
23 #include <e32base.h> |
|
24 #include <e32std.h> |
|
25 #include <ecom/implementationinformation.h> |
|
26 #include<ScreensaverpluginIntDef.h> |
|
27 |
|
28 |
|
29 // CLASS DECLARATION |
|
30 class CShutdown : public CTimer |
|
31 { |
|
32 enum |
|
33 { |
|
34 KScreenSaverServerShutdownDelay = 0x300000//0x1000000 changed to 3 sec |
|
35 }; |
|
36 public: |
|
37 inline CShutdown(); |
|
38 inline void ConstructL(); |
|
39 inline void Start(); |
|
40 private: |
|
41 void RunL(); |
|
42 }; |
|
43 |
|
44 |
|
45 |
|
46 class CScreenSaverServer: public CServer2 |
|
47 { |
|
48 friend class CScreenSaverSession; |
|
49 |
|
50 public: |
|
51 ~CScreenSaverServer(); |
|
52 static CServer2* NewLC(); |
|
53 void AddSession(); |
|
54 void DropSession(); |
|
55 |
|
56 private: |
|
57 TInt iSessionCount; |
|
58 CShutdown iShutdown; |
|
59 private: |
|
60 void GetAvailableScreenSaversL(RImplInfoPtrArray& aScreenSaverList); |
|
61 void ConstructL(); |
|
62 CScreenSaverServer(); |
|
63 protected: |
|
64 CSession2* NewSessionL(const TVersion&,const RMessage2&) const; |
|
65 |
|
66 }; |
|
67 |
|
68 |
|
69 #endif |