|
1 /* |
|
2 * Copyright (c) 2009 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: Telephony Multimedia Service |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TMSCALLSERVER_H |
|
19 #define TMSCALLSERVER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 |
|
24 namespace TMS { |
|
25 |
|
26 const TUint KTMSCallServerMajorVersionNumber = 8; |
|
27 const TUint KTMSCallServerMinorVersionNumber = 0; |
|
28 const TUint KTMSCallServerBuildVersionNumber = 1; |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class TMSCallServerStartParam; |
|
32 class TMSServer; |
|
33 class TMSCallDelayTimer; |
|
34 |
|
35 // ----------------------------------------------------------------------------- |
|
36 // TMSCallServer class |
|
37 // ----------------------------------------------------------------------------- |
|
38 class TMSCallServer : public CServer2 |
|
39 { |
|
40 public: |
|
41 static TMSCallServer* NewL(TMSServer* aTMSServer); |
|
42 ~TMSCallServer(); |
|
43 |
|
44 void AddSession(); |
|
45 void DropSession(); |
|
46 |
|
47 IMPORT_C static TInt StartThread(TAny* aParams); |
|
48 |
|
49 private: |
|
50 TMSCallServer(TMSServer* aTMSServer); |
|
51 void ConstructL(); |
|
52 CSession2* NewSessionL(const TVersion& aVersion, |
|
53 const RMessage2& aMessage) const; |
|
54 |
|
55 static void StartThreadL(TMSCallServerStartParam& aStart); |
|
56 |
|
57 private: |
|
58 TMSServer* iTMSServer; |
|
59 TMSCallDelayTimer* iDelayTimer; |
|
60 TUint iSessionCount; |
|
61 }; |
|
62 |
|
63 } //namespace TMS |
|
64 |
|
65 #endif // TMSCALLSERVER_H |
|
66 |
|
67 // End of file |