|
1 /* |
|
2 * Copyright (c) 2006 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: Each application that connects WS-stack through client-server |
|
15 * interface has an application context of it's own, which can |
|
16 * hold a list for active connections and service sessions, |
|
17 * acting as a common place holder and bridge between the |
|
18 * smaller (contexts) that those contain. Class allows |
|
19 * application-wide information to be shared efficiently |
|
20 * at proper layer. |
|
21 * |
|
22 */ |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 #ifndef SEN_SESSION_CONTEXT_H |
|
32 #define SEN_SESSION_CONTEXT_H |
|
33 |
|
34 |
|
35 // INCLUDES |
|
36 #include <e32base.h> |
|
37 #include <e32std.h> |
|
38 //#include "SenContext.h" |
|
39 #include "senpointermap.h" |
|
40 |
|
41 // FORWARD DECLARATIONS |
|
42 |
|
43 // CLASS DECLARATION |
|
44 class CSenSessionContext : public CBase // CSenContext |
|
45 { |
|
46 public: |
|
47 /** |
|
48 * Standard 2-phased constructor |
|
49 * @return pointer to new application context. |
|
50 */ |
|
51 IMPORT_C static CSenSessionContext* NewL(); |
|
52 /** |
|
53 * Standard 2-phased constructor |
|
54 * @return pointer to new application context, |
|
55 * which is left on cleanupstack. |
|
56 */ |
|
57 IMPORT_C static CSenSessionContext* NewLC(); |
|
58 |
|
59 // Destructor: |
|
60 IMPORT_C virtual ~CSenSessionContext(); |
|
61 |
|
62 // New methods: |
|
63 |
|
64 protected: |
|
65 IMPORT_C CSenSessionContext(); |
|
66 |
|
67 IMPORT_C void BaseConstructL(); |
|
68 |
|
69 private: |
|
70 }; |
|
71 |
|
72 #endif // SEN_SESSION_CONTEXT_H |
|
73 |
|
74 // End of File |