syncmlfw/common/http/inc/nsmldialiap.h
changeset 0 b497e44ab2fc
child 9 57a65a3a658c
child 54 085438c28042
equal deleted inserted replaced
-1:000000000000 0:b497e44ab2fc
       
     1 /*
       
     2 * Copyright (c) 2002 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:  SyncML HTTP client
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __NSMLDIALIAP_H__
       
    20 #define __NSMLDIALIAP_H__
       
    21 
       
    22 #include <e32base.h>
       
    23 #include <commdb.h>
       
    24 #include <cdbstore.h>
       
    25 #include <in_iface.h>
       
    26 
       
    27 #include <nifman.h>
       
    28 #include <connectprog.h>
       
    29 #include <commdbconnpref.h>
       
    30 #include <es_enum.h>
       
    31 #include <nsmldebug.h>
       
    32 
       
    33 
       
    34 
       
    35 //============================================================
       
    36 // CNSmlDialUpAgent declaration
       
    37 //============================================================
       
    38 class CNSmlDialUpAgent : public CActive 
       
    39     {
       
    40 
       
    41 	public:
       
    42 		CNSmlDialUpAgent();
       
    43 		void ConstructL();
       
    44 		void ConnectL( CArrayFixFlat<TUint32>* aIAPIdArray, TRequestStatus &aStatus );
       
    45 		~CNSmlDialUpAgent();
       
    46 	
       
    47 	private:
       
    48 		void DoCancel();
       
    49 		void RunL();
       
    50 
       
    51 	private:
       
    52 		TBool IsConnectedL() const;
       
    53 		void DoSettingsL();
       
    54 		void StartDatacallL();
       
    55 		void AttachToConnectionL();
       
    56 		TBool IsInOfflineModeL();
       
    57 	private:
       
    58 		TRequestStatus* iEngineStatus;
       
    59 		RConnection iConnection;
       
    60 		RSocketServ iSocketServer;
       
    61 
       
    62 		TUint iIAPid;
       
    63 		TCommDbConnPref iPref;
       
    64 		TBool iCancelCalled;
       
    65 		TBool iSocketConnection;
       
    66         CArrayFixFlat<TUint32>* iIAPArray;
       
    67         TInt iIAPCnt;
       
    68         TInt iOffline;
       
    69         TBool iTimerReturn;
       
    70         TInt iRetryCounter;
       
    71         RTimer iTimer;
       
    72 
       
    73 	private:
       
    74 		friend class CNSmlHTTP;
       
    75 
       
    76 };
       
    77 
       
    78 
       
    79 
       
    80 #endif