iaupdate/IAD/ui/inc/iaupdateaccesspointhandler.h
branchRCL_3
changeset 66 8b7f4e561641
parent 0 ba25891c3a9e
equal deleted inserted replaced
65:7333d7932ef7 66:8b7f4e561641
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:   Header file of CIAUpdateAccessPointHandler class
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef IAUPDATEACCESSPOINTHANDLER_H
       
    21 #define IAUPDATEACCESSPOINTHANDLER_H
       
    22 
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 // Access point selection
       
    28 #include <cmmanager.h>
       
    29 
       
    30 //FORWARD DECLARATIONS
       
    31 class CCmApplicationSettingsUi;
       
    32 
       
    33 
       
    34 /**
       
    35 * CIAUpdateAccessPointHandler 
       
    36 *
       
    37 * CIAUpdateAccessPointHandler is for setting internet access points.
       
    38 */
       
    39 class CIAUpdateAccessPointHandler : public CBase
       
    40     {
       
    41     public:
       
    42 	enum TExitMode
       
    43 		{
       
    44 	    EDialogSelect,
       
    45 	    EDialogCancel,
       
    46 	    EDialogExit
       
    47 		};
       
    48    
       
    49     public:
       
    50         /**
       
    51         * Two-phased constructor.
       
    52         */
       
    53         static CIAUpdateAccessPointHandler* NewL();
       
    54 
       
    55 	    /**
       
    56         * Destructor.
       
    57         */
       
    58         virtual ~CIAUpdateAccessPointHandler();
       
    59 
       
    60     private:
       
    61         /**
       
    62         * C++ default constructor.
       
    63         */
       
    64 	    CIAUpdateAccessPointHandler();
       
    65 
       
    66         /**
       
    67         * By default Symbian 2nd phase constructor is private.
       
    68         */
       
    69 	    void ConstructL();
       
    70 
       
    71     public: //functions
       
    72 	    /**
       
    73         * Displays dialog for selecting one access point.
       
    74         * @return ETrue if user selected access point, EFalse otherwise.
       
    75         */
       
    76         TInt ShowApSelectDialogL( TInt& aItemUid, HBufC*& aItemName );
       
    77 	          
       
    78         /**
       
    79         * Gets access point name
       
    80 		* @param aItemUid Access point id
       
    81 		* @paran aName Access point name
       
    82         * @return Error value.
       
    83         */
       
    84         TInt GetApNameL( TInt aItemUid, HBufC*& aItemName );
       
    85        
       
    86         /**
       
    87         * Get for Default Connection text
       
    88 		* @param aLabelText Localised text for "Default connection" text
       
    89         */
       
    90         void GetDefaultConnectionLabelL( HBufC*& aLabelText ); 
       
    91     
       
    92     private:  //data
       
    93     	TBool iIdAppCsdSupport;
       
    94     	
       
    95     	CCmApplicationSettingsUi* iCmUi;
       
    96     	RCmManager iCmManager;
       
    97     };
       
    98 
       
    99 
       
   100 #endif  //IAUPDATEACCESSPOINTHANDLER_H
       
   101             
       
   102 // End of File