hotspotfw/hsserver/src/hssnotif.cpp
changeset 0 56b72877c1cb
child 61 e1d68407ed06
equal deleted inserted replaced
-1:000000000000 0:56b72877c1cb
       
     1 /*
       
     2 * Copyright (c) 2002-2007 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:   Implementation of Notifications receiving
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include "hssnotif.h"
       
    22 #include "hssinterface.h"
       
    23 #include "am_debug.h"
       
    24 
       
    25 // ============================ MEMBER FUNCTIONS ===============================
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // HssNotifications::NewNetworksDetected
       
    29 // New networks have been detected during scan.
       
    30 // -----------------------------------------------------------------------------
       
    31 void HssNotifications::NewNetworksDetected()
       
    32 	{
       
    33     DEBUG( "HssNotifications::NewNetworksDetected()" );
       
    34     TBuf8<1> tmp;
       
    35     iSession.AddNotification( EHssNewNetworksDetected, tmp );
       
    36 	}
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // HssNotifications::OldNetworksLost
       
    40 // One or more networks have been lost since the last scan.
       
    41 // -----------------------------------------------------------------------------
       
    42 void HssNotifications::OldNetworksLost()
       
    43 	{
       
    44 	DEBUG( "HssNotifications::OldNetworksLost()" );
       
    45 	TBuf8<1> tmp;
       
    46 	iSession.AddNotification( EHssOldNetworksLost, tmp ); 
       
    47 	}
       
    48 
       
    49 // -----------------------------------------------------------------------------
       
    50 // CSessionNotification::CSessionNotification
       
    51 // C++ default constructor can NOT contain any code, that
       
    52 // might leave.
       
    53 // -----------------------------------------------------------------------------
       
    54 //
       
    55 CSessionNotification::CSessionNotification(
       
    56     CHotSpotSession& aSession ) :
       
    57     iSession( aSession )
       
    58     {
       
    59     DEBUG( "CSessionNotification::CSessionNotification()" );
       
    60     }
       
    61 
       
    62 // -----------------------------------------------------------------------------
       
    63 // CSessionNotification::NewL
       
    64 // Two-phased constructor.
       
    65 // -----------------------------------------------------------------------------
       
    66 CSessionNotification* CSessionNotification::NewL(
       
    67     CHotSpotSession& aSession )
       
    68     {
       
    69     DEBUG( "CSessionNotification::NewL()" );
       
    70     CSessionNotification* self =
       
    71         new( ELeave ) CSessionNotification( aSession );
       
    72     return self;
       
    73     }
       
    74 
       
    75 // Destructor
       
    76 CSessionNotification::~CSessionNotification()
       
    77     {
       
    78     DEBUG( "CSessionNotification::~CSessionNotification()" );
       
    79     }
       
    80 
       
    81 // -----------------------------------------------------------------------------
       
    82 // CSessionNotification::AddNotification
       
    83 // -----------------------------------------------------------------------------
       
    84 void CSessionNotification::AddNotification(
       
    85     TUint aNotification,
       
    86     TDes8& aData )
       
    87     {
       
    88     DEBUG( "CSessionNotification::AddNotification()" );
       
    89     iSession.AddNotification( aNotification, aData );
       
    90     }
       
    91 
       
    92 //  End of File