internetradio2.0/networkcontrollerinc/irnetworkcontroller.h
changeset 11 f683e24efca3
parent 0 09774dfdd46b
equal deleted inserted replaced
8:3b03c28289e6 11:f683e24efca3
    21 
    21 
    22 #include <badesca.h>
    22 #include <badesca.h>
    23 #include <es_sock.h>
    23 #include <es_sock.h>
    24 #include <rhttpsession.h>
    24 #include <rhttpsession.h>
    25 
    25 
    26 //Added for ALR/SNAP
       
    27 #include <cmmanager.h>
       
    28 #include <connpref.h>
       
    29 #include <commdbconnpref.h>
       
    30 #include <comms-infras/cs_mobility_apiext.h>
    26 #include <comms-infras/cs_mobility_apiext.h>
    31 #include "iractivenetworkobserver.h"
    27 #include "iractivenetworkobserver.h"
    32 
    28 
    33 
    29 
    34 #include "irnetworkcontrollerobserver.h"
    30 #include "irnetworkcontrollerobserver.h"
    35 #include "irdatatransfertracker.h"
    31 #include "irdatatransfertracker.h"
    36 
    32 
    37 class CIRNetworkObserver;
    33 class CIRNetworkObserver;
    38 class CIRSettings;
    34 class CIRSettings;
    39 class MIRActiveNetworkObserver;
    35 class MIRActiveNetworkObserver;
    40 
       
    41 typedef RArray<TUint32> RDestinationArray;
       
    42 
       
    43 //Added for ALR/SNAP
       
    44 enum TUserDefinedSelection
       
    45    {
       
    46     EUserDefinedSelectionAlwaysAsk = 0,
       
    47     EUserDefinedSelectionDefaultConnection,
       
    48     EUserDefinedSelectionDestination,
       
    49     EUserDefinedSelectionConnectionMethod
       
    50     };
       
    51     
       
    52     
       
    53 namespace CommsDat
       
    54     {
       
    55     class CMDBSession;
       
    56     }
       
    57 
       
    58 using namespace CommsDat;
       
    59 
    36 
    60 /**
    37 /**
    61  * This class provides the interface to IRNetworkController component
    38  * This class provides the interface to IRNetworkController component
    62  *
    39  *
    63  * @code
    40  * @code
   100  *
    77  *
   101  * // This API returns the IAP id of the connected connection
    78  * // This API returns the IAP id of the connected connection
   102  * // this is used by download manager for choosing the access point
    79  * // this is used by download manager for choosing the access point
   103  * iNetworkController->GetIAPId();
    80  * iNetworkController->GetIAPId();
   104  *
    81  *
   105  * // This API returns the list of available access points
       
   106  * iNetworkController->GetAccessPointList();
       
   107  *
       
   108  * // This API returns the list of bearer ids for available access points
       
   109  * iNetworkController->GetBearerList();
       
   110  *
       
   111  * // This API returns the list of network ids for available access points
       
   112  * iNetworkController->GetNetworkList();
       
   113  *
       
   114  * // This API returns the list of iap ids for available access points
       
   115  * iNetworkController->GetApList();
       
   116  *
       
   117  * // This API is called to initiate access point selection
    82  * // This API is called to initiate access point selection
   118  * iNetworkController->ChooseAccessPointL();
    83  * iNetworkController->ChooseAccessPointL();
   119  *
    84  *
   120  * // This API returns ETrue if the phone is in offline mode, EFalse
    85  * // This API returns ETrue if the phone is in offline mode, EFalse
   121  * // otherwise
    86  * // otherwise
   199 	/**
   164 	/**
   200 	 *  Gets the IAP Id of the chosen IAP
   165 	 *  Gets the IAP Id of the chosen IAP
   201 	 *  @return TInt Error code.
   166 	 *  @return TInt Error code.
   202 	 */
   167 	 */
   203 	IMPORT_C TInt GetIAPId(TUint32& aIapId) const;
   168 	IMPORT_C TInt GetIAPId(TUint32& aIapId) const;
   204 
       
   205 	/**
       
   206 	 *  Returns the list of available access points
       
   207 	 *  @return CDesCArray* array specifying the access point names
       
   208 	 */
       
   209 	IMPORT_C const CDesCArray* GetAccessPointList() const;
       
   210 
       
   211 	/**
       
   212 	 *  Returns the list of bearer ids for available access points
       
   213 	 *  @return const RArray<TUint32> array specifying the bearer ids
       
   214 	 */
       
   215 	IMPORT_C const RArray<TUint32> GetBearerList() const;
       
   216 
       
   217 	/**
       
   218 	 *  Returns the list of network ids for available access points
       
   219 	 *  @return const RArray<TUint32> array specifying the network ids
       
   220 	 */
       
   221 	IMPORT_C const RArray<TUint32> GetNetworkList() const;
       
   222 
       
   223 	/**
       
   224 	 *  Returns the list of iap ids for available access points
       
   225 	 *  @return const RArray<TUint32> array specifying the iap ids
       
   226 	 */
       
   227 	IMPORT_C const RArray<TUint32> GetApList() const;
       
   228 
   169 
   229 	/**
   170 	/**
   230 	 *  Configures the Access Point which is used by all the components for network connectivity
   171 	 *  Configures the Access Point which is used by all the components for network connectivity
   231 	 */
   172 	 */
   232 	IMPORT_C void ChooseAccessPointL(TBool aDefaultConnection = ETrue);
   173 	IMPORT_C void ChooseAccessPointL(TBool aDefaultConnection = ETrue);
   520 	 * Access point list for settings view
   461 	 * Access point list for settings view
   521 	 */
   462 	 */
   522 	CDesCArrayFlat* iIapList;
   463 	CDesCArrayFlat* iIapList;
   523 
   464 
   524 	/**
   465 	/**
   525 	 * Array of bearer ids for access points
       
   526 	 */
       
   527 	RArray<TUint32> iBearerList;
       
   528 
       
   529 	/**
       
   530 	 * Array of network ids for access points
       
   531 	 */
       
   532 	RArray<TUint32> iNetworkList;
       
   533 
       
   534 	/**
       
   535 	 * Array of iap ids for access points
       
   536 	 */
       
   537 	RArray<TUint32> iIapIdList;
       
   538 
       
   539 	/**
       
   540 	 * Indicates if WiFi is supported or not
   466 	 * Indicates if WiFi is supported or not
   541 	 */
   467 	 */
   542 	TBool iIsWlanSupported;
   468 	TBool iIsWlanSupported;
   543 
   469 
   544 	/**
   470 	/**