IMPSengine/engsrv/inc/impscspsession.inl
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     1 /*
       
     2 * Copyright (c) 2004 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: Inl file for CImpsCSPSession inline functions
       
    15 * 
       
    16 */
       
    17 
       
    18 
       
    19 inline TBool CImpsCSPSession::DoIsLogged() const
       
    20     {
       
    21     return  ( iCSPState >= EImpsCSPLogged  ) ? ETrue : EFalse; 
       
    22     }
       
    23 
       
    24 inline TBool CImpsCSPSession::DoIsLogging() const
       
    25     {
       
    26     return  ( iCSPState == EImpsCSPLogging  ) ? ETrue : EFalse; 
       
    27     }
       
    28 
       
    29 inline TBool CImpsCSPSession::DoIsNegotiated() const
       
    30     {
       
    31     return  ( iCSPState >= EImpsCSPOnLine  ) ? ETrue : EFalse; 
       
    32     }
       
    33 
       
    34 inline TPtrC CImpsCSPSession::DoUserId() const
       
    35     {
       
    36     return iUserId ? TPtrC( *iUserId ) : TPtrC();
       
    37     }
       
    38 
       
    39 inline TBool CImpsCSPSession::DoIsShuttingDown() const
       
    40     {
       
    41     return iCSPState == EImpsCSPShuttingDown ? ETrue : EFalse;
       
    42     }
       
    43 
       
    44 inline TPtrC CImpsCSPSession::LogoutTID() const
       
    45     {
       
    46     return iLogoutTID;
       
    47     }
       
    48 
       
    49 inline TPtrC CImpsCSPSession::DoSAP() const
       
    50     {
       
    51     return iSAP ? TPtrC( *iSAP ) : TPtrC(); 
       
    52     }
       
    53 
       
    54 inline TPtrC CImpsCSPSession::LogTid() const
       
    55     {
       
    56     return iLogTid ? TPtrC( *iLogTid ) : TPtrC();
       
    57     }
       
    58 
       
    59 inline TPtrC CImpsCSPSession::LogPwd() const
       
    60     {
       
    61     return iLogPwd ? TPtrC( *iLogPwd ) : TPtrC();
       
    62     }
       
    63 
       
    64 inline TBool CImpsCSPSession::IsPDPIdleOnLine() const
       
    65     {
       
    66     return iCSPState >= EImpsCSPOnLineIdle && iIntStatus == EInternal_ON_LINE ? 
       
    67         ETrue : EFalse;
       
    68     }
       
    69 
       
    70 inline TBool CImpsCSPSession::IsPDPIdleOffLine() const
       
    71     {
       
    72     return iCSPState >= EImpsCSPOnLineIdle && iIntStatus == EInternal_OFF_LINE ? 
       
    73         ETrue : EFalse;
       
    74     }
       
    75 
       
    76 inline TBool CImpsCSPSession::IsPDPIdle() const
       
    77     {
       
    78     return ( iCSPState >= EImpsCSPOnLineIdle ? ETrue : EFalse );
       
    79     }
       
    80