alwayson_net_plugin/pdpcontextmanager2/inc/caoraumanager.h
author Simon Howkins <simonh@symbian.org>
Thu, 18 Nov 2010 15:05:52 +0000
branchRCL_3
changeset 76 40780c2f3a6b
parent 0 5a93021fdf25
permissions -rw-r--r--
Adjusted to avoid exports, etc, from a top-level bld.inf

/*
* Copyright (c) 2004,2006 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:  RAU manager
*
*/


#ifndef C_CAORAUMANAGER_H
#define C_CAORAUMANAGER_H

// INCLUDE FILES
#include <e32base.h>
#include "maoraumanager.h"
#include "alwaysonconfig.hrh"

// FORWARD DECLARATIONS
class MAORAUManagerObserver;
class CAORAUManagerImpl;
#ifdef __ALWAYS_ON_CUSTOM_API
class RMmCustomAPI;
#endif

/**
*  RAU manager. RAU manager listens RAU events (Routing Area Update)
*  and notifies them forwards.
*  Succesfull RAU events are notified through MAORAUManagerObserver
*  interface.
*
*  @lib PDPContextManager2.lib
*  @since S60 v3.1
*/
NONSHARABLE_CLASS( CAORAUManager ):
    public CBase,
    public MAORAUManager
    {
public: // Constructors & destructors

#ifdef __ALWAYS_ON_CUSTOM_API

    /**
     * Two-phased constructor.
     *
     * @since S60 v3.1
     * @param aObserver  Interface via receive notifications from RAU.
     * @param aCustomAPI Object via send notifications to TSY.
     * @return a pointer to the created instance of CAORAUManager.
     */
    static CAORAUManager* NewL( MAORAUManagerObserver& aObserver,
                                RMmCustomAPI& aCustomAPI );
#else

    /**
     * Two-phased constructor.
     *
     * @since S60 v3.1
     * @param aObserver  Interface via receive notifications from RAU.
     * @return a pointer to the created instance of CAORAUManager.
     */
    static CAORAUManager* NewL( MAORAUManagerObserver& aObserver );

#endif // __ALWAYS_ON_CUSTOM_API

    /**
     * Destructor
     *
     * @since S60 v3.1
     */
    virtual ~CAORAUManager();
    
private: // New methods

    /**
     * Constructor.
     *
     * @since S60 v3.1
     */
    CAORAUManager();

#ifdef __ALWAYS_ON_CUSTOM_API

    /**
     * Second-phase constructor.
     *
     * @since S60 v3.1
     * @param aObserver  Interface via receive notifications from RAU.
     * @param aCustomAPI Object via send notifications to TSY.
     * @return a pointer to the created instance of CAORAUManager.
     */
    void ConstructL( MAORAUManagerObserver& aObserver,
                     RMmCustomAPI& aCustomAPI );
#else

    /**
     * Second-phase constructor.
     *
     * @since S60 v3.1
     * @param aObserver  Interface via receive notifications from RAU.
     * @return a pointer to the created instance of CAORAUManager.
     */
    void ConstructL( MAORAUManagerObserver& aObserver );

#endif // __ALWAYS_ON_CUSTOM_API

private: // Data

    /** RAU manager implementation
     *
     * Own
     */
    CAORAUManagerImpl* iRAUManagerImpl;
    };

#endif // C_CAORAUMANAGER_H