connectionutilities/ConnectionDialogs/cconndlg/inc/ActiveSelectExplicit.h
changeset 20 9c97ad6591ae
parent 18 fcbbe021d614
child 21 b8e8e15e80f2
child 23 7ec726f93df1
child 28 860702281757
equal deleted inserted replaced
18:fcbbe021d614 20:9c97ad6591ae
     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:  Declaration of Active Iap 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __ACTIVESELECTEXPLICIT_H__
       
    21 #define __ACTIVESELECTEXPLICIT_H__
       
    22 
       
    23 
       
    24 // INCLUDES
       
    25 #include "ConnDlgPlugin.h"
       
    26 #include "ActiveIAPListing.h"
       
    27 #include "SelectConnectionDialog.h"
       
    28 #include "ActiveBase.h"
       
    29 #include <cmmanagerext.h>
       
    30 #include <rmpm.h>
       
    31 
       
    32 
       
    33 // FORWARD DECLARATION
       
    34 class CSelectExplicitDialog;
       
    35 
       
    36 
       
    37 // CLASS DECLARATION
       
    38 
       
    39 /**
       
    40  * CActiveSelectExplicit class,
       
    41  * an active object for SelectExplicit
       
    42  */     
       
    43 NONSHARABLE_CLASS( CActiveSelectExplicit ) : public CActiveBase
       
    44     {
       
    45     public:
       
    46         /**
       
    47         * NewL function
       
    48         * @param  aPlugin a pointer to notifier plugin
       
    49         * @param aIAPId iap id
       
    50         * @param aPrefs preferences pointer    
       
    51         */
       
    52         static CActiveSelectExplicit* NewL( 
       
    53                                         CSelectConnectionDialog* aCallerDialog,
       
    54                                         TUint aDestId, 
       
    55                                         TInt aRefreshInterval,
       
    56                                         TUint32 aBearerSet, 
       
    57                                         TBool aIsWLANFeatureSupported, 
       
    58                                         TUint aDefaultCMId );
       
    59 
       
    60         /**
       
    61         * Setactive and starts active object
       
    62         */    
       
    63         void ShowSelectExplicitL();
       
    64 
       
    65         /**
       
    66         * Destructor
       
    67         */    
       
    68         virtual ~CActiveSelectExplicit();
       
    69     
       
    70         /**
       
    71         * Cancels the active object
       
    72         */
       
    73         void Cancel();
       
    74 
       
    75         /**
       
    76         * Gives back the id of preferred iap.
       
    77         * @return the id of iap
       
    78         */
       
    79         TUint32 GetPreferredIapIdL();
       
    80     
       
    81     
       
    82         /**
       
    83         * Sets the preferred iap into db.
       
    84         * @param aIAPId id of the preferred iap
       
    85         */
       
    86         void SetPreferredIapIdL( TUint32 aIAPId );
       
    87 
       
    88         
       
    89     protected:
       
    90         /**
       
    91         * ConstructL 
       
    92         */
       
    93         void ConstructL();
       
    94     
       
    95         /**
       
    96         * Constructor
       
    97         * @param  aPlugin a pointer to notifier plugin    
       
    98         * @param aIAPId iap id
       
    99         * @param aPrefs preferences pointer        
       
   100         */    
       
   101         CActiveSelectExplicit( CSelectConnectionDialog* aCallerDialog,
       
   102                                TUint aDestId, 
       
   103                                TInt aRefreshInterval,
       
   104                                TUint32 aBearerSet, 
       
   105                                TBool aIsWLANFeatureSupported, 
       
   106                                TUint aDefaultCMId );
       
   107 
       
   108 
       
   109         /**
       
   110         * DoCancel from CActive
       
   111         */    
       
   112         virtual void DoCancel();
       
   113 
       
   114         /**
       
   115         * RunL from CActive
       
   116         */
       
   117         virtual void RunL();
       
   118 
       
   119         /**
       
   120         * BuildConnectionListL
       
   121         * @param    -
       
   122         */
       
   123         void BuildConnectionListL();
       
   124 
       
   125         void AddConnectionMethodItemL( TUint32 aId,
       
   126                                        TBool aCheckForEasyWlan, 
       
   127                                        TBool& aEasyWlanIsInDb, 
       
   128                                        TBool aDefaultCM );
       
   129                                        
       
   130         void AddAdhocWlanIapsL();                               
       
   131 
       
   132 
       
   133     protected:
       
   134         // contains all iaps from db, owned
       
   135         CConnectionInfoArray *iItems;   
       
   136 
       
   137         CSelectConnectionDialog* iCallerDialog;
       
   138 
       
   139         TUint iDestId;
       
   140 
       
   141         ///< Pointer to the dialog, not owned 
       
   142         CSelectExplicitDialog* iDialog;
       
   143     
       
   144         TInt iRefreshInterval;
       
   145 
       
   146         CArrayPtr< CGulIcon >* iIcons;
       
   147 
       
   148         RMPM iMPM;
       
   149         RCmManagerExt iCmManagerExt;
       
   150 
       
   151         TUint32 iBearerSet;
       
   152         TBool iIsWLANFeatureSupported;
       
   153         TUint iDefaultCMId;
       
   154     };     
       
   155 
       
   156 
       
   157 #endif
       
   158 
       
   159 // End of File