connectionutilities/ConnectionDialogs/ConnectionUiUtilities/inc/ConnectionUiUtilitiesImpl.h
branchRCL_3
changeset 57 05bc53fe583b
parent 15 4dc3bb0099b0
child 58 83ca720e2b9a
equal deleted inserted replaced
55:fc7b30ed2058 57:05bc53fe583b
    38 
    38 
    39 // FORWARD DECLARATIONS
    39 // FORWARD DECLARATIONS
    40 class CCommsDatabase;
    40 class CCommsDatabase;
    41 class TConnectionPrefs;
    41 class TConnectionPrefs;
    42 class CAknGlobalNote;
    42 class CAknGlobalNote;
    43 
    43 class CConnectionStatusPopup;
    44 
    44 
    45 // CLASS DECLARATION
    45 // CLASS DECLARATION
    46 
    46 
    47 /**
    47 /**
    48 * Connection Ui Utilities.
    48 * Connection Ui Utilities.
   368         * "Selected WLAN network has no coverage"
   368         * "Selected WLAN network has no coverage"
   369         */        
   369         */        
   370         void WLANNetworkUnavailableNote();           
   370         void WLANNetworkUnavailableNote();           
   371 
   371 
   372         /**
   372         /**
   373         * DEPRECATED, PLEASE USE ASYNC VERSION!
       
   374         * Confirmation note is used after the connection has been successfully 
       
   375         * established via destination and connection method.
       
   376         * @param aDestId Id of used destination.
       
   377         * @param aConnMId Id of used connection method.
       
   378         */
       
   379         void ConnectedViaDestAndConnMethodNote( const TUint32 aDestId, 
       
   380                                                 const TUint32 aConnMId );
       
   381 
       
   382         /**
       
   383         * Confirmation note is used after the connection has been successfully 
       
   384         * established via destination and connection method.
       
   385         * @param aDestId Id of used destination.
       
   386         * @param aConnMId Id of used connection method.
       
   387         * @param aStatus caller's TRequestStatus to handle asynchronous call.
       
   388         */
       
   389         void ConnectedViaDestAndConnMethodNote( const TUint32 aDestId, 
       
   390                                                 const TUint32 aConnMId, 
       
   391                                                 TRequestStatus& aStatus );
       
   392 
       
   393         /**
       
   394         * Cancel ConnectedViaDestAndConnMethodNote notifier.
       
   395         */
       
   396         void CancelConnectedViaDestAndConnMethodNote();
       
   397 
       
   398 
       
   399         /**
       
   400         * Information note is used when "Automatically" roaming is enabled. The
       
   401         * actual connection establishment take places in the background 
       
   402         * (no wait note).
       
   403         * @param aConnMId Id of used connection method.
       
   404         */
       
   405         void ChangingConnectionToNote( const TUint32 aConnMId );
       
   406         
       
   407         /**
       
   408         * Information note is used when "Automatically" roaming is enabled. The
       
   409         * actual connection establishment take places in the background 
       
   410         * (no wait note).
       
   411         * @param aConnMId Id of used connection method.
       
   412         * @param aStatus Status object of notifier.
       
   413         */       
       
   414         void ChangingConnectionToNote( const TUint32 aConnMId, 
       
   415         								TRequestStatus& aStatus );
       
   416 
       
   417         /**
       
   418         * Cancel ChangingConnectionToNote notifier.
       
   419         */
       
   420         void CancelChangingConnectionToNote();
       
   421         
       
   422         /**
       
   423         * Notifier. Shows a query, "Connect to\n '%0U' via\n '%1U'?"
   373         * Notifier. Shows a query, "Connect to\n '%0U' via\n '%1U'?"
   424         * @param aResult Result of user selection, ETrue if user accepted 
   374         * @param aResult Result of user selection, ETrue if user accepted 
   425         * roaming, to more preferred method, EFlase otherwise
   375         * roaming, to more preferred method, EFlase otherwise
   426         * @param aHomeNetwork   home or foreign network
   376         * @param aHomeNetwork   home or foreign network
   427         * @param aStatus Status object of notifier.
   377         * @param aStatus Status object of notifier.
   434         * Cancel ConfirmMethodUsageQuery
   384         * Cancel ConfirmMethodUsageQuery
   435         */
   385         */
   436         void CancelConfirmMethodUsageQuery();
   386         void CancelConfirmMethodUsageQuery();
   437 
   387 
   438         /**
   388         /**
   439         * DEPRECATED, PLEASE USE ASYNC VERSION!
   389         * This note is displayed when power-save feature of the WLAN station 
   440         * Confirmation note is used after the connection has been successfully 
   390         * is incompatible and thus battery consumption of the mobile will increase.
   441         * established via a connection method.
   391         * @param aDisable ETrue if user wants to disable this note in the future.
   442         * @param aConnMId Id of used connection method.
   392         * @param aStatus Status object of notifier.
   443         */
   393         */
   444         void ConnectedViaConnMethodNote( const TUint32 aConnMId );
   394         void WlanPowerSaveTestNote( TBool& aDisable, TRequestStatus& aStatus );
   445 
   395         
   446         /**
   396         /**
   447         * Confirmation note is used after the connection has been successfully 
   397         * Cancel WlanPowerSaveTestNote notifier.
   448         * established via a connection method.
   398         */
   449         * @param aConnMId Id of used connection method.
   399         void CancelWlanPowerSaveTestNote();
   450         * @param aStatus caller's TRequestStatus to handle asynchronous call.
       
   451         */
       
   452         void ConnectedViaConnMethodNote( const TUint32 aConnMId, 
       
   453                                          TRequestStatus& aStatus );
       
   454                 /**
       
   455         * Cancel ConnectedViaConnMethodNote notifier.
       
   456         */
       
   457         void CancelConnectedViaConnMethodNote();
       
   458         
   400         
   459         /**
   401         /**
   460         * Notifier. Query for prompting WAPI-PSK. 
   402         * Notifier. Query for prompting WAPI-PSK. 
   461         * Displays a query: "Enter pre-shared key for WLAN" 
   403         * Displays a query: "Enter pre-shared key for WLAN" 
   462         * @param aKey Key entered by user
   404         * @param aKey Key entered by user
   463         * @return ETrue if user select OK, EFalse otherwise
   405         * @return ETrue if user select OK, EFalse otherwise
   464         */
   406         */
   465         TBool EasyWapiDlg( TDes* aKey );
   407         TBool EasyWapiDlg( TDes* aKey );
   466 
   408 
   467         /**
   409         /**           
   468         * Pops up an information note: 
   410         * Discreet popup. Shows "Connecting" discreet popup 
   469         * "No WLAN networks are available at the moment. Connection not available."
   411         */
   470         */        
   412         void ConnectingViaDiscreetPopup( );
   471         void NoWLANNetworksAvailableNote();
       
   472 
   413 
   473         /**           
   414         /**           
   474         * Discreet popup. Shows "Connecting via %U" discreet popup 
   415         * Discreet popup. Shows "Connecting via %U" discreet popup 
   475         * @param aIapId IAP id of the access point.
   416         * @param aIapId IAP id of the access point.
   476         */
   417         * @param aConnectionAlreadyActive True if connection is already active
   477         void ConnectingViaDiscreetPopup( const TUint32& aIapId );
   418         *   (shared).
   478 
   419         */
   479         
   420         void ConnectingViaDiscreetPopup( const TUint32& aIapId, 
       
   421                                          TBool aConnectionAlreadyActive );
       
   422 
       
   423         /**           
       
   424         * Cancels (hides) "Connecting via %U" discreet popup. 
       
   425         */
       
   426         void CancelConnectingViaDiscreetPopup();
       
   427 
   480         /**           
   428         /**           
   481         * Discreet popup. Shows discreet popup about connection errors 
   429         * Discreet popup. Shows discreet popup about connection errors 
   482         * @param aErrorCode Error code
   430         * @param aErrorCode Error code
   483         */
   431         */
   484         void ConnectionErrorDiscreetPopup( const TInt& aErrorCode );
   432         void ConnectionErrorDiscreetPopup( const TInt& aErrorCode );
   526         CActiveWrapper* iActiveWrapper[KNumberOfWrappedDialogs];
   474         CActiveWrapper* iActiveWrapper[KNumberOfWrappedDialogs];
   527         
   475         
   528         // buffer for passing WAPI key between client and server
   476         // buffer for passing WAPI key between client and server
   529         TPckgBuf< TBuf< KEasyWapiQueryMaxLength > > iWapiKey;
   477         TPckgBuf< TBuf< KEasyWapiQueryMaxLength > > iWapiKey;
   530         
   478         
   531         // buffer for passing connecting discreet popup info
   479         // Connection status (via, error) implementation
   532         TPckgBuf< TConnUiConnectingViaDiscreetPopup > iConnInfo;
   480         CConnectionStatusPopup* iConnStatusPopup;
   533         
   481         
   534     };
   482     };
   535 
   483 
   536 
   484 
   537 #endif  // CONNECTIONUIUTILITIESIMPL_H
   485 #endif  // CONNECTIONUIUTILITIESIMPL_H