|
1 /* |
|
2 * Copyright (c) 2002 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: Inline methods |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 inline CImpsServer* CImpsSession::Server() |
|
20 { |
|
21 return (CImpsServer*)( CSession2::Server() ); |
|
22 } |
|
23 |
|
24 inline void CImpsSession::SetCompleted( ) |
|
25 { |
|
26 iMessageCompleted = ETrue; |
|
27 } |
|
28 |
|
29 inline CImpsFields* CImpsSession::ImpsFields() const |
|
30 { |
|
31 return iFields; |
|
32 } |
|
33 |
|
34 inline HBufC8* CImpsSession::StreamBuf() const |
|
35 { |
|
36 return iStream; |
|
37 } |
|
38 |
|
39 |
|
40 inline HBufC8** CImpsSession::StreamBufAddr() |
|
41 { |
|
42 // Be careful with this buffer entity |
|
43 return &iStream; //lint !e1536 |
|
44 } |
|
45 |
|
46 |
|
47 inline TBool CImpsSession::IsCIRWatcherSession() const |
|
48 { |
|
49 return iCIRSess; |
|
50 } |
|
51 |
|
52 inline TInt CImpsSession::Types() const |
|
53 { |
|
54 return (TInt)iTypes; |
|
55 } |
|
56 |
|
57 inline TInt CImpsSession::NbrSubs() const |
|
58 { |
|
59 return iResourceCount; |
|
60 } |
|
61 |
|
62 inline RMessagePtr2 CImpsSession::Message() const |
|
63 { |
|
64 return iMsgR; |
|
65 } |
|
66 |
|
67 inline TPtrC CImpsSession::UserId( ) const |
|
68 { |
|
69 return iUserId ? TPtrC( *iUserId ) : TPtrC(); |
|
70 } |
|
71 |
|
72 inline TPtrC CImpsSession::SAP( ) const |
|
73 { |
|
74 return iSAP ? TPtrC( *iSAP ) : TPtrC(); |
|
75 } |
|
76 |
|
77 inline TPtrC CImpsSession::SID( ) const |
|
78 { |
|
79 return iSID ? TPtrC( *iSID ) : TPtrC(); |
|
80 } |
|
81 |
|
82 inline TBool CImpsSession::IsThisLogged() const |
|
83 { |
|
84 return ( SID().Length() ) ? ETrue : EFalse; |
|
85 } |
|
86 |
|
87 inline TBool CImpsSession::IsThisActive() const |
|
88 { |
|
89 return ( UserId().Length() ) ? ETrue : EFalse; |
|
90 } |
|
91 |
|
92 |
|
93 //------------------------------------------------------- |
|
94 |
|
95 |
|
96 // End of File |