wvuing/IMPSConnectionUI/ConnectionSrc/CIMPSPresenceAAConnection.cpp
changeset 0 094583676ce7
equal deleted inserted replaced
-1:000000000000 0:094583676ce7
       
     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:  AA connection.
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include <e32std.h>
       
    20 #include "cimpspresenceaaconnectionng.h"
       
    21 #include "CIMPSPresenceAAConnectionImp.h"
       
    22 #include "IMPSCommonUiDebugPrint.h"
       
    23 
       
    24 // ================= MEMBER FUNCTIONS =======================
       
    25 // Two-phased constructor.
       
    26 EXPORT_C CIMPSPresenceAAConnection* CIMPSPresenceAAConnection::NewL(
       
    27     TIMPSConnectionClient aClient,
       
    28     CIMPSSAPSettingsStore* aSapStore )
       
    29     {
       
    30     CIMPSPresenceAAConnection* self = CIMPSPresenceAAConnection::NewLC( aClient, aSapStore );
       
    31     CleanupStack::Pop( self );  //self
       
    32     return self;
       
    33     }
       
    34 
       
    35 
       
    36 // Two-phased constructor.
       
    37 EXPORT_C CIMPSPresenceAAConnection* CIMPSPresenceAAConnection::NewLC(
       
    38     TIMPSConnectionClient aClient,
       
    39     CIMPSSAPSettingsStore* aSapStore )
       
    40     {
       
    41     CIMPSPresenceAAConnection* self = new ( ELeave  ) CIMPSPresenceAAConnection;
       
    42     CleanupStack::PushL( self );
       
    43     self->ConstructL( aClient, aSapStore );
       
    44     return self;
       
    45     }
       
    46 
       
    47 
       
    48 // Destructor
       
    49 EXPORT_C CIMPSPresenceAAConnection::~CIMPSPresenceAAConnection()
       
    50     {
       
    51     IMPSCUI_DP_TXT( "CIMPSPresenceAAConnection::~CIMPSPresenceAAConnection()" );
       
    52     delete iImp;
       
    53     }
       
    54 
       
    55 
       
    56 // C++ constructor
       
    57 CIMPSPresenceAAConnection::CIMPSPresenceAAConnection()
       
    58     {
       
    59     IMPSCUI_DP_TXT( "CIMPSPresenceAAConnection::CIMPSPresenceAAConnection()" );
       
    60     }
       
    61 
       
    62 
       
    63 // Symbian OS constructor
       
    64 void CIMPSPresenceAAConnection::ConstructL( TIMPSConnectionClient aClient,
       
    65                                             CIMPSSAPSettingsStore* aSapStore )
       
    66     {
       
    67     // set the client information to the TLS
       
    68     User::LeaveIfError( Dll::SetTls( reinterpret_cast<TAny*>( aClient ) ) );
       
    69     iImp = CIMPSPresenceAAConnectionImp::NewL( aSapStore );
       
    70     }
       
    71 
       
    72 
       
    73 
       
    74 // -----------------------------------------------------------------------------
       
    75 // CIMPSPresenceAAConnection::LoginL()
       
    76 //
       
    77 // -----------------------------------------------------------------------------
       
    78 //
       
    79 EXPORT_C TInt CIMPSPresenceAAConnection::LoginL( TIMPSConnectionClient aClient,
       
    80                                                  TBool aShowDetailedError /* = EFalse */ )
       
    81     {
       
    82     IMPSCUI_DP_TXT( "CIMPSPresenceAAConnection::LoginL()" );
       
    83     return iImp->LoginL( aClient, aShowDetailedError );
       
    84     }
       
    85 
       
    86 
       
    87 // -----------------------------------------------------------------------------
       
    88 // CIMPSPresenceAAConnection::LogoutL()
       
    89 //
       
    90 // -----------------------------------------------------------------------------
       
    91 //
       
    92 EXPORT_C TInt CIMPSPresenceAAConnection::LogoutL( TIMPSConnectionClient aClient,
       
    93                                                   TBool aIsScheduled /* = EFalse */ )
       
    94     {
       
    95     IMPSCUI_DP_TXT( "CIMPSPresenceAAConnection::LogoutL()" );
       
    96     iImp->LogoutL( aClient, aIsScheduled );
       
    97     return KErrNone;
       
    98     }
       
    99 
       
   100 
       
   101 // -----------------------------------------------------------------------------
       
   102 // CIMPSPresenceAAConnection::LoggedInL
       
   103 // -----------------------------------------------------------------------------
       
   104 //
       
   105 EXPORT_C TBool CIMPSPresenceAAConnection::LoggedInL( TIMPSConnectionClient aClient )
       
   106     {
       
   107     IMPSCUI_DP_TXT( "CIMPSPresenceAAConnection::LoggedInL()" );
       
   108     return iImp->LoggedInL( aClient );
       
   109     }
       
   110 
       
   111 
       
   112 // -----------------------------------------------------------------------------
       
   113 // CIMPSPresenceAAConnection::PureServiceStatusL
       
   114 // -----------------------------------------------------------------------------
       
   115 //
       
   116 EXPORT_C TPEngNWSessionSlotState CIMPSPresenceAAConnection::PureServiceStatusL(
       
   117     const CPEngNWSessionSlotID2& aNWSessionSlotID )
       
   118     {
       
   119     IMPSCUI_DP_TXT( "CIMPSPresenceAAConnection::PureServiceStatusL()" );
       
   120     return iImp->PureServiceStatusL( aNWSessionSlotID );
       
   121     }
       
   122 
       
   123 
       
   124 // -----------------------------------------------------------------------------
       
   125 // CIMPSPresenceAAConnection::DefaultServerNameL
       
   126 // -----------------------------------------------------------------------------
       
   127 //
       
   128 EXPORT_C HBufC* CIMPSPresenceAAConnection::DefaultServerNameL( TIMPSConnectionClient aClient )
       
   129     {
       
   130     IMPSCUI_DP_TXT( "CIMPSPresenceAAConnection::DefaultServerNameL()" );
       
   131     return iImp->DefaultServerNameL( aClient );
       
   132     }
       
   133 
       
   134 
       
   135 // -----------------------------------------------------------------------------
       
   136 // CIMPSPresenceAAConnection::DefaultServerNameL
       
   137 // -----------------------------------------------------------------------------
       
   138 //
       
   139 EXPORT_C CPEngNWSessionSlotID2* CIMPSPresenceAAConnection::GetActiveNWSessionSlotIDL(
       
   140     TIMPSConnectionClient aClient )
       
   141     {
       
   142     IMPSCUI_DP_TXT( "CIMPSPresenceAAConnection::DefaultServerNameL()" );
       
   143     return iImp->GetActiveNWSessionSlotIDL( aClient );
       
   144     }
       
   145 //  End of File
       
   146 
       
   147 
       
   148 
       
   149