|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // opensessionparams.h |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __OPENSESSIONPARAMS_H__ |
|
19 #define __OPENSESSIONPARAMS_H__ |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <e32base.h> |
|
23 |
|
24 // class used to pass data about the sub session type to/from the client/server |
|
25 class TSubSessionType |
|
26 { |
|
27 public: |
|
28 enum TSubSessionTypeEnum |
|
29 { |
|
30 EExInvalidSubsession = 0, |
|
31 EExTimeSubSession = 1, |
|
32 EExServerNameSubSession = 2 |
|
33 }; |
|
34 public: |
|
35 TSubSessionType() |
|
36 { |
|
37 }; |
|
38 TSubSessionType(const TSubSessionTypeEnum aSubSessionType) : iSubSessionType(aSubSessionType) |
|
39 { |
|
40 }; |
|
41 const TSubSessionTypeEnum GetSubSessionType() const |
|
42 { |
|
43 return iSubSessionType; |
|
44 }; |
|
45 protected: |
|
46 TSubSessionTypeEnum iSubSessionType; |
|
47 }; |
|
48 |
|
49 |
|
50 // this is a sample calss, to to show that you can pass |
|
51 // blocks of data around |
|
52 class TTimeOpenSessionParams |
|
53 { |
|
54 public: |
|
55 TInt iDummyNumberParam; |
|
56 TBuf<32> iDummyBufParam; |
|
57 }; |
|
58 |
|
59 // this is another sample to prove that you don't need a class |
|
60 typedef TInt TServerNameOpenSessionParams; |
|
61 |
|
62 #endif // __ OPENSESSIONPARAMS_H__ |