datacommsserver/networkcontroller/ts_common/nifman.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #if !defined(__NIFMAN_H__)
       
    17 #define __NIFMAN_H__
       
    18 
       
    19 #ifndef __ES_PROT_H__
       
    20 #include <es_prot.h>
       
    21 #endif
       
    22 
       
    23 #ifndef __NIFVAR_H__
       
    24 #include <nifvar.h>
       
    25 #endif
       
    26 
       
    27 #ifndef __CDBOVER_H__
       
    28 #include <cdbover.h>
       
    29 #endif
       
    30 
       
    31 // Manager classes
       
    32 class CNifMan;
       
    33 class CNifFactory : public CObject
       
    34 	{
       
    35 friend class CNifMan;
       
    36 public:
       
    37 	IMPORT_C CNifFactory();
       
    38 	IMPORT_C virtual TInt Open();
       
    39 	IMPORT_C virtual void Close();
       
    40 	IMPORT_C static void Cleanup(TAny* aObject);
       
    41     IMPORT_C static TInt ControlledDelete(TAny* aFactory);
       
    42 	IMPORT_C void InitL(RLibrary& aLib, CObjectCon& aCon);
       
    43 
       
    44 protected:
       
    45 	IMPORT_C ~CNifFactory();
       
    46 	virtual void InstallL()=0;
       
    47 	RLibrary iLib;
       
    48 	CAsyncCallBack* iAsyncDtor;
       
    49 	};
       
    50 
       
    51 class CNifAgentBase;
       
    52 class Nif
       
    53 	{
       
    54 public:
       
    55 	static CNifAgentBase* CreateAgentL(const TDesC& aAgentName, const TBool aNewInstance = EFalse);
       
    56 	};
       
    57 
       
    58 enum TAgentConnectType 
       
    59 	{
       
    60 	EAgentStartDialOut,
       
    61 	EAgentReconnect,
       
    62 	EAgentStartCallBack,
       
    63 	EAgentNone,
       
    64 	EAgentStartDialIn
       
    65 	};
       
    66 
       
    67 #endif // __NIFMAN_H__
       
    68