equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 1999-2005 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef JESSERVER_H |
|
19 #define JESSERVER_H |
|
20 |
|
21 |
|
22 /** |
|
23 * Event server async shutdown interface. |
|
24 */ |
|
25 class MJesShutdown |
|
26 { |
|
27 public: |
|
28 virtual void Shutdown() = 0; |
|
29 }; |
|
30 |
|
31 /** |
|
32 * Event server async shutdown handler. |
|
33 */ |
|
34 class CJesShutdown : public CActive |
|
35 { |
|
36 public: |
|
37 CJesShutdown(MJesShutdown*); |
|
38 |
|
39 void Start(); |
|
40 |
|
41 protected: |
|
42 virtual void RunL(); |
|
43 virtual TInt RunError(TInt aError); |
|
44 virtual void DoCancel(); |
|
45 |
|
46 private: |
|
47 MJesShutdown* iShutdown; |
|
48 }; |
|
49 |
|
50 /** |
|
51 * Java Event Server |
|
52 */ |
|
53 class CJesServer : public CServer2 |
|
54 { |
|
55 public: |
|
56 IMPORT_C CJesServer(MJesShutdown* aShutdown); |
|
57 ~CJesServer(); |
|
58 |
|
59 void Shutdown(); |
|
60 |
|
61 private: |
|
62 CSession2* NewSessionL(const TVersion& aVersion, const RMessage2& aMessage) const; |
|
63 |
|
64 private: |
|
65 CJesShutdown iShutdown; |
|
66 }; |
|
67 |
|
68 #endif // JESSERVER_H |