connectionutilities/ConnectionDialogs/ConnectionUiUtilities/inc/ConnectionUiUtilitiesImpl.h
changeset 20 9c97ad6591ae
parent 0 5a93021fdf25
child 61 8b0c979bbe8c
equal deleted inserted replaced
18:fcbbe021d614 20:9c97ad6591ae
    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!
       
   440         * Confirmation note is used after the connection has been successfully 
       
   441         * established via a connection method.
       
   442         * @param aConnMId Id of used connection method.
       
   443         */
       
   444         void ConnectedViaConnMethodNote( const TUint32 aConnMId );
       
   445 
       
   446         /**
       
   447         * Confirmation note is used after the connection has been successfully 
       
   448         * established via a connection method.
       
   449         * @param aConnMId Id of used connection method.
       
   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         
       
   459         /**
       
   460         * This note is displayed when power-save feature of the WLAN station 
   389         * This note is displayed when power-save feature of the WLAN station 
   461         * is incompatible and thus battery consumption of the mobile will increase.
   390         * is incompatible and thus battery consumption of the mobile will increase.
   462         * @param aDisable ETrue if user wants to disable this note in the future.
   391         * @param aDisable ETrue if user wants to disable this note in the future.
   463         * @param aStatus Status object of notifier.
   392         * @param aStatus Status object of notifier.
   464         */
   393         */
   475         * @param aKey Key entered by user
   404         * @param aKey Key entered by user
   476         * @return ETrue if user select OK, EFalse otherwise
   405         * @return ETrue if user select OK, EFalse otherwise
   477         */
   406         */
   478         TBool EasyWapiDlg( TDes* aKey );
   407         TBool EasyWapiDlg( TDes* aKey );
   479 
   408 
   480         /**
   409         /**           
   481         * Pops up an information note: 
   410         * Discreet popup. Shows "Connecting" discreet popup 
   482         * "No WLAN networks are available at the moment. Connection not available."
   411         */
   483         */        
   412         void ConnectingViaDiscreetPopup( );
   484         void NoWLANNetworksAvailableNote();
       
   485 
   413 
   486         /**           
   414         /**           
   487         * Discreet popup. Shows "Connecting via %U" discreet popup 
   415         * Discreet popup. Shows "Connecting via %U" discreet popup 
   488         * @param aIapId IAP id of the access point.
   416         * @param aIapId IAP id of the access point.
       
   417         * @param aConnectionAlreadyActive True if connection is already active
       
   418         *   (shared).
   489         */
   419         */
   490         void ConnectingViaDiscreetPopup( const TUint32& aIapId, 
   420         void ConnectingViaDiscreetPopup( const TUint32& aIapId, 
   491                                          TBool aConnectionAlreadyActive );
   421                                          TBool aConnectionAlreadyActive );
   492 
   422 
   493         
   423         /**           
       
   424         * Cancels (hides) "Connecting via %U" discreet popup. 
       
   425         */
       
   426         void CancelConnectingViaDiscreetPopup();
       
   427 
   494         /**           
   428         /**           
   495         * Discreet popup. Shows discreet popup about connection errors 
   429         * Discreet popup. Shows discreet popup about connection errors 
   496         * @param aErrorCode Error code
   430         * @param aErrorCode Error code
   497         */
   431         */
   498         void ConnectionErrorDiscreetPopup( const TInt& aErrorCode );
   432         void ConnectionErrorDiscreetPopup( const TInt& aErrorCode );
   540         CActiveWrapper* iActiveWrapper[KNumberOfWrappedDialogs];
   474         CActiveWrapper* iActiveWrapper[KNumberOfWrappedDialogs];
   541         
   475         
   542         // buffer for passing WAPI key between client and server
   476         // buffer for passing WAPI key between client and server
   543         TPckgBuf< TBuf< KEasyWapiQueryMaxLength > > iWapiKey;
   477         TPckgBuf< TBuf< KEasyWapiQueryMaxLength > > iWapiKey;
   544         
   478         
   545         // buffer for passing connecting discreet popup info
   479         // Connection status (via, error) implementation
   546         TPckgBuf< TConnUiConnectingViaDiscreetPopup > iConnInfo;
   480         CConnectionStatusPopup* iConnStatusPopup;
   547         
   481         
   548     };
   482     };
   549 
   483 
   550 
   484 
   551 #endif  // CONNECTIONUIUTILITIESIMPL_H
   485 #endif  // CONNECTIONUIUTILITIESIMPL_H