1 /* |
|
2 * Copyright (c) 2003 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: This class represents the base class for all server-side subsession |
|
15 * classes. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 |
|
22 #include "CbsCommon.h" |
|
23 #include "CCbsSession.h" |
|
24 #include "CCbsObject.h" |
|
25 #include "CbsLogger.h" |
|
26 |
|
27 // ================= MEMBER FUNCTIONS ======================= |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // CCbsObject::CCbsObject |
|
31 // C++ default constructor can NOT contain any code, that |
|
32 // might leave. |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 CCbsObject::CCbsObject( CCbsSession& aSession ) |
|
36 : iSession( aSession ) |
|
37 { |
|
38 } |
|
39 |
|
40 // Destructor |
|
41 CCbsObject::~CCbsObject() |
|
42 { |
|
43 CBSLOGSTRING("CBSSERVER: >>> CCbsObject::~CCbsObject()"); |
|
44 CBSLOGSTRING("CBSSERVER: <<< CCbsObject::~CCbsObject()"); |
|
45 } |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // CCbsObject::Message |
|
49 // Returns the current message. |
|
50 // (other items were commented in a header). |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 const RMessage2& CCbsObject::Message() |
|
54 { |
|
55 return iSession.Message(); |
|
56 } |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // CCbsObject::Session |
|
60 // Returns the current session. |
|
61 // (other items were commented in a header). |
|
62 // ----------------------------------------------------------------------------- |
|
63 // |
|
64 CCbsSession& CCbsObject::Session() |
|
65 { |
|
66 return iSession; |
|
67 } |
|
68 |
|
69 // ----------------------------------------------------------------------------- |
|
70 // CCbsObject::PanicClient |
|
71 // Panics the client. |
|
72 // (other items were commented in a header). |
|
73 // ----------------------------------------------------------------------------- |
|
74 // |
|
75 void CCbsObject::PanicClient( |
|
76 TCbsSessionPanic aPanic ) const |
|
77 { |
|
78 iSession.PanicClient( aPanic ); |
|
79 } |
|
80 |
|
81 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
82 |
|
83 // End of File |
|