equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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 * This file defines the interface into the STS server. |
|
16 */ |
|
17 |
|
18 #ifndef STSSERVER_H_ |
|
19 #define STSSERVER_H_ |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 class CSts; |
|
24 class CStsServerSession; |
|
25 |
|
26 class CStsServer : private CPolicyServer |
|
27 { |
|
28 public: |
|
29 |
|
30 // Runs the server on the current thread, and blocks until the server exits. |
|
31 IMPORT_C static void RunServerL(bool aPerformProcessRendezvous = EFalse, |
|
32 bool aPerformThreadRendezvous = EFalse); |
|
33 |
|
34 void AddSession(CStsServerSession* aSession); |
|
35 |
|
36 void DropSession(CStsServerSession* aSession); |
|
37 |
|
38 private: |
|
39 |
|
40 static CStsServer* NewLC(); |
|
41 |
|
42 CStsServer(); |
|
43 void ConstructL(); |
|
44 virtual ~CStsServer(); |
|
45 |
|
46 // inherited from CPolicyServer |
|
47 CSession2* NewSessionL(const TVersion& aVersion, |
|
48 const RMessage2& aMessage) const; |
|
49 |
|
50 RPointerArray<CStsServerSession> iSessions; |
|
51 CSts* iSts; |
|
52 |
|
53 }; |
|
54 |
|
55 #endif //STSSERVER_H_ |