equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 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: Abstract class providing CBase |
|
15 * functionality in top of MSenTransport |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 #ifndef SEN_TRANSPORT_BASE_H |
|
28 #define SEN_TRANSPORT_BASE_H |
|
29 |
|
30 // INCLUDES |
|
31 #include <e32std.h> |
|
32 #include <e32base.h> // for CActive |
|
33 #include "msentransport.h" |
|
34 |
|
35 /** |
|
36 * This base class makes it possible to create a "Transport Factory", |
|
37 * which may produce instancies of different CSenTransportBase subclasses. |
|
38 * It might be useful to be able to create both ECOM and non-ECOM versions |
|
39 * of transports, if such factory pattern is further utilized. |
|
40 */ |
|
41 |
|
42 // CLASS DECLARATION |
|
43 |
|
44 class CSenTransportBase : public CBase, public MSenTransport |
|
45 { |
|
46 public: |
|
47 inline virtual ~CSenTransportBase() { }; |
|
48 CSenTransportBase(TBool aSessionOwned): iSessionOwned(aSessionOwned) |
|
49 { |
|
50 } |
|
51 TBool SessionOwned() |
|
52 { |
|
53 return iSessionOwned; |
|
54 } |
|
55 |
|
56 private: |
|
57 TBool iSessionOwned; |
|
58 }; |
|
59 |
|
60 #endif // SEN_TRANSPORT_BASE_H |
|
61 |
|
62 // End of File |