hotspotfw/hsserver/src/hssnotif.cpp
author Pat Downey <patd@symbian.org>
Wed, 01 Sep 2010 12:20:32 +0100
branchRCL_3
changeset 55 f28ada11abbf
parent 0 56b72877c1cb
child 61 e1d68407ed06
permissions -rw-r--r--
Revert incorrect RCL_3 drop: Revision: 201029 Kit: 201035

/*
* Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:   Implementation of Notifications receiving
*
*/



// INCLUDE FILES
#include "hssnotif.h"
#include "hssinterface.h"
#include "am_debug.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// HssNotifications::NewNetworksDetected
// New networks have been detected during scan.
// -----------------------------------------------------------------------------
void HssNotifications::NewNetworksDetected()
	{
    DEBUG( "HssNotifications::NewNetworksDetected()" );
    TBuf8<1> tmp;
    iSession.AddNotification( EHssNewNetworksDetected, tmp );
	}

// -----------------------------------------------------------------------------
// HssNotifications::OldNetworksLost
// One or more networks have been lost since the last scan.
// -----------------------------------------------------------------------------
void HssNotifications::OldNetworksLost()
	{
	DEBUG( "HssNotifications::OldNetworksLost()" );
	TBuf8<1> tmp;
	iSession.AddNotification( EHssOldNetworksLost, tmp ); 
	}

// -----------------------------------------------------------------------------
// CSessionNotification::CSessionNotification
// C++ default constructor can NOT contain any code, that
// might leave.
// -----------------------------------------------------------------------------
//
CSessionNotification::CSessionNotification(
    CHotSpotSession& aSession ) :
    iSession( aSession )
    {
    DEBUG( "CSessionNotification::CSessionNotification()" );
    }

// -----------------------------------------------------------------------------
// CSessionNotification::NewL
// Two-phased constructor.
// -----------------------------------------------------------------------------
CSessionNotification* CSessionNotification::NewL(
    CHotSpotSession& aSession )
    {
    DEBUG( "CSessionNotification::NewL()" );
    CSessionNotification* self =
        new( ELeave ) CSessionNotification( aSession );
    return self;
    }

// Destructor
CSessionNotification::~CSessionNotification()
    {
    DEBUG( "CSessionNotification::~CSessionNotification()" );
    }

// -----------------------------------------------------------------------------
// CSessionNotification::AddNotification
// -----------------------------------------------------------------------------
void CSessionNotification::AddNotification(
    TUint aNotification,
    TDes8& aData )
    {
    DEBUG( "CSessionNotification::AddNotification()" );
    iSession.AddNotification( aNotification, aData );
    }

//  End of File