connectivitylayer/isce/isicommunicationmanager_dll/inc/isicommunicationmanager.h
author mikaruus <mika.a.ruuskanen@nokia.com>
Thu, 14 Jan 2010 10:44:58 +0200
changeset 5 8ccc39f9d787
child 7 fa67e03b87df
permissions -rw-r--r--
New release based on our 2010wk02 release

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "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:
*
*/


#ifndef __ISICOMMUNICATIONMANAGER_H__
#define __ISICOMMUNICATIONMANAGER_H__

#include "misirouterobjectif.h"

class MISIObjectRouterIf;
class DISIIndicationHandler;

/*
* ISI router.
*/
NONSHARABLE_CLASS( DISICommunicationManager ) : public DBase, public MISIRouterObjectIf
    {

    public:

        /*
        * Default contructor
        */
        DISICommunicationManager();

        /*
        * Destructor
        */
        ~DISICommunicationManager();

        /*
        * See comments from MISIRouterObjectIf
        */
        void Receive( const TDesC8& aMessage );

        void SendNameAddReqs();
        
        void SendPNSSubscribeResp( const TDesC8& aMessage );
        
    private:

        static void InitDfc( TAny* aPtr );
        
        // Owned
        static DMutex*         iCommunicationManagerMutex;
        TDfc*                  iInitDfc;
        DISIIndicationHandler* iISIIndicationHandler;
        TUint8                 iObjId;
        // Not owned
        MISIObjectRouterIf*    iRouter;
        
    };

#endif /* __ISICOMMUNICATIONMANAGER_H__ */