satui/satapp/inc/satappeventprovider.h
changeset 15 d7fc66ccd6fb
parent 12 ae8abd0db65c
equal deleted inserted replaced
13:e32024264ebb 15:d7fc66ccd6fb
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:
    14 * Description:
    15 *
    15 *
    16 */
    16 */
       
    17 
    17 #ifndef SATAPPEVENTPROVIDER_H
    18 #ifndef SATAPPEVENTPROVIDER_H
    18 #define SATAPPEVENTPROVIDER_H
    19 #define SATAPPEVENTPROVIDER_H
    19 
    20 
    20 #include <QObject>
    21 #include <QObject>
    21 #include <msatuiobserver.h>
    22 #include <msatuiobserver.h>
    22 #include "msatuiactionimplementer.h"
    23 #include "msatuiactionimplementer.h"
    23 
    24 
    24 class CSatUiObserver;
    25 class CSatUiObserver;
    25 //class QPixmap; // For future icon support
    26 class SatAppPlayToneProvider;
       
    27 
    26 
    28 
    27 class SatAppEventProvider: public QObject,
    29 class SatAppEventProvider: public QObject,
    28                            public MSatUiActionImplementer
    30                            public MSatUiActionImplementer
    29 {
    31 {
    30     Q_OBJECT
    32     Q_OBJECT
    57      */
    59      */
    58     void displayTextEvent(
    60     void displayTextEvent(
    59         TSatUiResponse &aRes,
    61         TSatUiResponse &aRes,
    60         const QString &aText,
    62         const QString &aText,
    61         const QString &aSimApplicationName,
    63         const QString &aSimApplicationName,
    62         //const HbIcon &aIcon,
       
    63         bool &aRequestedIconDisplayed,
    64         bool &aRequestedIconDisplayed,
    64         const bool aSustainedText,
    65         const bool aSustainedText,
    65         const int aDuration,
    66         const int aDuration,
    66         const bool aWaitUserToClear);
    67         const bool aWaitUserToClear);
    67 
    68 
    84         const TSatCharacterSet aCharacterSet,
    85         const TSatCharacterSet aCharacterSet,
    85         QString &aInputText,
    86         QString &aInputText,
    86         const int aMinLength,
    87         const int aMinLength,
    87         const int aMaxLength,
    88         const int aMaxLength,
    88         const bool aHideInput,
    89         const bool aHideInput,
    89         //const QPixmap* /*aIconBitmapGetInput*/,
       
    90         const bool aSelfExplanatory,
    90         const bool aSelfExplanatory,
    91         unsigned int &aDuration );
    91         unsigned int &aDuration);
    92 
    92 
    93     /**
    93     /**
    94      * Notification of the SAT Get Inkey command.
    94      * Notification of the SAT Get Inkey command.
    95      * @param aText The query text.
    95      * @param aText The query text.
    96      * @param aCharacterSet The character range allowed.
    96      * @param aCharacterSet The character range allowed.
   103     void getInkeyEvent(
   103     void getInkeyEvent(
   104         TSatUiResponse &aRes,
   104         TSatUiResponse &aRes,
   105         const QString &aTitleText,
   105         const QString &aTitleText,
   106         const TSatCharacterSet aCharacterSet,
   106         const TSatCharacterSet aCharacterSet,
   107         QString &aInputText,
   107         QString &aInputText,
   108         //const QPixmap* /*aIconBitmapGetInput*/,
       
   109         const bool aSelfExplanatory,
   108         const bool aSelfExplanatory,
   110         unsigned int &aDuration );
   109         unsigned int &aDuration);
   111 
   110 
   112     /**
   111     /**
   113      * Notification of the SAT Get YesNo command.
   112      * Notification of the SAT Get YesNo command.
   114      * @param aText The query text.
   113      * @param aText The query text.
   115      * @param aCharacterSet The character range allowed.
   114      * @param aCharacterSet The character range allowed.
   128         const TSatCharacterSet aCharacterSet,
   127         const TSatCharacterSet aCharacterSet,
   129         unsigned int &aInkey,
   128         unsigned int &aInkey,
   130         //const TSatIconId &aIconId,
   129         //const TSatIconId &aIconId,
   131         const bool &aSelfExplanatory,
   130         const bool &aSelfExplanatory,
   132         unsigned int &aDuration,
   131         unsigned int &aDuration,
   133         const bool aImmediateDigitResponse );
   132         const bool aImmediateDigitResponse);
       
   133         
       
   134     /**
       
   135      * Notification of the SAT Call Control command.
       
   136      * @param aRes The response.
       
   137      * @param aText The heading.
       
   138      * @param aAlphaIdStatus The alpha ID status.
       
   139      * 
       
   140      */
       
   141     void callControlEvent(
       
   142         const QString &aText,
       
   143         const TSatAlphaIdStatus aAlphaIdStatus);
       
   144 
       
   145     /**
       
   146      * Notification of the SAT Call Control command.
       
   147      * @param aRes The response.
       
   148      * @param aText The heading.
       
   149      * @param aAlphaIdStatus The alpha ID status.
       
   150      *
       
   151      */
       
   152     void moSmControlEvent(
       
   153         const QString &aText,
       
   154         const TSatAlphaIdStatus aAlphaIdStatus);
   134 
   155 
   135     /**
   156     /**
   136     * Handles the SetUpMenu command.
   157     * Handles the SetUpMenu command.
   137     * @param aRes the out parameter. the result of the command.
   158     * @param aRes the out parameter. the result of the command.
   138     * @param aText The title text.
   159     * @param aText The title text.
   146     */
   167     */
   147     void setUpMenuEvent(
   168     void setUpMenuEvent(
   148         TSatUiResponse &aRes,
   169         TSatUiResponse &aRes,
   149         const QString &aText,
   170         const QString &aText,
   150         const QStringList &aMenuItems,
   171         const QStringList &aMenuItems,
   151         //const CArrayFixFlat<TSatAction>* aMenuItemNextActions,
       
   152         //const HbIcon &aIcon,
       
   153         //const CAknIconArray* aItemIconsArray,
       
   154         const bool aSelfExplanatoryItems,
   172         const bool aSelfExplanatoryItems,
   155         const bool aHelpIsAvailable);
   173         const bool aHelpIsAvailable);
   156 
   174 
   157     /**
   175     /**
   158     * Handles the SelectItem view.
   176     * Handles the SelectItem view.
   170     */
   188     */
   171     void selectItemEvent(
   189     void selectItemEvent(
   172         TSatUiResponse &aRes,
   190         TSatUiResponse &aRes,
   173         const QString &aText,
   191         const QString &aText,
   174         const QStringList &aMenuItems,
   192         const QStringList &aMenuItems,
   175         //const CArrayFixFlat<TSatAction>* aMenuItemNextActions,
       
   176         const int aDefaultItem,
   193         const int aDefaultItem,
   177         unsigned char &aSelection,
   194         unsigned char &aSelection,
   178         //const HbIcon &aIcon,
       
   179         //const CAknIconArray* aItemsIconArray,
       
   180         const bool aSelfExplanatoryItems,
   195         const bool aSelfExplanatoryItems,
   181         const bool aHelpIsAvailable);
   196         const bool aHelpIsAvailable);
   182 
   197 
   183     /**
   198     /**
   184     * Shows the confirmation note about the SAT Send SMS, Send SS or
   199     * Shows the confirmation note about the SAT Send SMS, Send SS or
   200      * @param aIconBitmapSendSM Sending dialog icon.
   215      * @param aIconBitmapSendSM Sending dialog icon.
   201      * @param aSelfExplanatoryIcon A flag indicating if only icon is shown.
   216      * @param aSelfExplanatoryIcon A flag indicating if only icon is shown.
   202      */
   217      */
   203     void showSmsWaitNoteEvent(
   218     void showSmsWaitNoteEvent(
   204         const QString &aText,
   219         const QString &aText,
   205         //const CFbsBitmap* aIconBitmapSendSM,
   220         const bool aSelfExplanatoryIcon);
   206         const bool aSelfExplanatoryIcon
       
   207         );
       
   208     
   221     
   209     /**
   222     /**
   210     * Shows the confirmation not about SetUpCall.
   223     * Shows the confirmation not about SetUpCall.
   211     * @param aText The text to be displayed.
   224     * @param aText The text to be displayed.
   212     * @param aSimAppName The header to be displayed.
   225     * @param aSimAppName The header to be displayed.
   213     * @param aActionAccepted Indicates whether the command was accepted.
   226     * @param aActionAccepted Indicates whether the command was accepted.
   214     */
   227     */
   215    void showSetUpCallConfirmEvent(
   228    void showSetUpCallConfirmEvent(
   216         const QString &aText,
   229         const QString &aText,
   217         const QString &aSimAppName,
   230         const QString &aSimAppName,
   218         bool &aActionAccepted//,
   231         bool &aActionAccepted);
   219         //const CFbsBitmap* aIconBitmap,
       
   220         //const TBool aSelfExplanatory
       
   221        );
       
   222 
   232 
   223      /**
   233      /**
   224      * Shows the wait note about the Send DTMF command.
   234      * Shows the wait note about the Send DTMF command.
   225      * @param aText The text to be displayed.
   235      * @param aText The text to be displayed.
   226      * @param aIconBitmapSendSM Sending dialog icon.
   236      * @param aIconBitmapSendSM Sending dialog icon.
   227      */
   237      */
   228     void showDtmfWaitNoteEvent(
   238     void showDtmfWaitNoteEvent(
   229         TSatUiResponse &aRes,
   239         TSatUiResponse &aRes,
   230         const QString &aText);
   240         const QString &aText);
   231 
   241 
   232     /**
   242 
   233      * Notification of the SAT Play Tone command.
   243      /**
       
   244      * Shows the wait note about the Send Ss or Ussd command.
   234      * @param aText The text to be displayed.
   245      * @param aText The text to be displayed.
   235      * @param aTone The tone to be played.
   246      * @param aIconBitmapSendSM Sending dialog icon.
   236      * @param aDuration The duration of the tone to be played.
   247      * @param aSelfExplanatoryIcon A flag indicating if only icon is shown.
   237      * @param aIconId The id of icon.
   248      */
   238      * @param aRequestedIconDisplayed Informs if icon is not used.
   249     void showSsWaitNoteEvent(
   239      * @return The response of the UI to this command.
   250         const QString &aText,
   240      */
   251         const bool aSelfExplanatoryIcon);
   241 //        virtual TSatUiResponse PlayTone(
   252 
   242 //            const TDesC &aText,
   253      /**
   243 //            const TSatTone aTone,
   254      * Shows the wait note about Open Channel
   244 //            const TTimeIntervalMicroSeconds aDuration,
       
   245 //            const TSatIconId &aIconId,
       
   246 //            TBool &aRequestedIconDisplayed ) = 0;
       
   247 
       
   248     /**
       
   249      * General confirmation request
       
   250      * @param aCommandId ID of the quering command
       
   251      * @param aAlphaIdStatus Alpha Identifier status
       
   252      * @param aText The text to be displayed.
   255      * @param aText The text to be displayed.
   253      * @param aAdditionalText Additional text to be used in queries.
       
   254      * @param aActionAccepted Indicates whether the command was accepted.
   256      * @param aActionAccepted Indicates whether the command was accepted.
   255      * @param aIconId The id of icon.
   257      */
   256      * @param aRequestedIconDisplayed Informs if icon is not used.
   258     void showOpenChannelConfirmEvent(
   257      * @param aTerminatedByUser Informs if end key is used.
   259         const QString &aText,
   258      */
   260         bool &aActionAccepted);
   259 //        virtual void ConfirmCommand(
   261 
   260 //            const TSatSQueryCommand aCommandId,
       
   261 //            const TSatAlphaIdStatus aAlphaIdStatus,
       
   262 //            const TDesC &aText,
       
   263 //            const TDesC &aAdditionalText,
       
   264 //            TBool &aActionAccepted,
       
   265 //            const TSatIconId &aIconId,
       
   266 //            TBool &aRequestedIconDisplayed,
       
   267 //            TBool &aTerminatedByUser ) = 0;
       
   268 
       
   269     /**
       
   270      * General notification
       
   271      * @param aCommandId ID of the notifying command
       
   272      * @param aAlphaIdStatus Alpha Identifier status
       
   273      * @param aText Alpha Identifier
       
   274      * @param aIconId The id of icon.
       
   275      * @param aRequestedIconDisplayed Informs if icon is not used.
       
   276      * @param aControlResult Control result of the MoSm and CallControl
       
   277      * @return The response of the UI to this command.
       
   278      */
       
   279 //        virtual TSatUiResponse Notification(
       
   280 //            const TSatSNotifyCommand aCommandId,
       
   281 //            const TSatAlphaIdStatus aAlphaIdStatus,
       
   282 //            const TDesC &aText,
       
   283 //            const TSatIconId &aIconId,
       
   284 //            TBool &aRequestedIconDisplayed,
       
   285 //            const TSatControlResult aControlResult ) = 0;
       
   286 
       
   287     /**
       
   288      * General event notification. Used for example to tell UI that command
       
   289      * has completed its execution.
       
   290      * @param aEventId, identifies the event
       
   291      * @param aEventStatus, status of the event, used as additional info for
       
   292      *        the event
       
   293      * @param aError, possible error code that may affect on event handling.
       
   294      *        This is also used as additional info
       
   295      */
       
   296 //        virtual void EventNotification(
       
   297 //            const TSatSEvent aEventId,
       
   298 //            const TSatSEventStatus aEventStatus,
       
   299 //            const TInt aError ) = 0;
       
   300 
   262 
   301     /*!
   263     /*!
   302      Removes Display Text Dialog from the screen.
   264      Removes Display Text Dialog from the screen.
   303     */
   265     */
   304     void clearScreenEvent();
   266     void clearScreenEvent();
   311     /*!
   273     /*!
   312     *Close wait note
   274     *Close wait note
   313     */
   275     */
   314     void stopShowWaitNoteEvent();
   276     void stopShowWaitNoteEvent();
   315 
   277 
       
   278     /*!
       
   279     *Show SsWaitNote without Delay
       
   280     */  
       
   281     void showWaitNoteWithoutDelayEvent();
       
   282 
       
   283     /*!
       
   284     *ShowSsErrorNoteEvent
       
   285     */  
       
   286     void showSsErrorNoteEvent();
       
   287     
       
   288     /*!
       
   289     * Show BIP related Note 
       
   290     */      
       
   291     void showBIPNoteEvent(int aCommand, const QString &aText);
   316 
   292 
   317 public slots:
   293 public slots:
   318     /*!
   294     /*!
   319     *User cancel Dtmf response
   295     *User cancel response, Send DTMF, Send Data, Receive Data
   320     */
   296     */
   321     void userCancelDtmfResponse();
   297     void userCancelResponse();
   322 
   298 
   323 public: // from MSatUiActionImplementer and impletment by QT
   299 public: // from MSatUiActionImplementer and impletment by QT
   324 
   300 
   325     /**
   301     /**
   326     * Shows the wait note.
   302     * Shows the wait note.
   328     virtual void ShowWaitNoteL() {};
   304     virtual void ShowWaitNoteL() {};
   329 
   305 
   330     /**
   306     /**
   331     * Shows the wait note without delay
   307     * Shows the wait note without delay
   332     */
   308     */
   333     virtual void ShowWaitNoteWithoutDelayL() {};
   309     virtual void ShowWaitNoteWithoutDelayL();
   334 
   310 
   335     /**
   311     /**
   336     * Removes the wait note from the screen.
   312     * Removes the wait note from the screen.
   337     */
   313     */
   338     void StopShowWaitNote();
   314     void StopShowWaitNote();
   351      */
   327      */
   352      virtual TSatUiResponse SetUpMenuL(
   328      virtual TSatUiResponse SetUpMenuL(
   353          const TDesC &aText,
   329          const TDesC &aText,
   354          const MDesCArray &aMenuItems,
   330          const MDesCArray &aMenuItems,
   355          const CArrayFixFlat<TSatAction>* aMenuItemNextActions,
   331          const CArrayFixFlat<TSatAction>* aMenuItemNextActions,
   356          const CFbsBitmap* aIconBitmap,
   332          const CFbsBitmap *aIconBitmap,
   357          //const CAknIconArray* aItemIconsArray,
       
   358          const TBool aSelfExplanatoryItems,
   333          const TBool aSelfExplanatoryItems,
   359          const TBool aHelpIsAvailable);
   334          const TBool aHelpIsAvailable);
   360 
   335 
   361     /**
   336     /**
   362      * Handles the SelectItem view.
   337      * Handles the SelectItem view.
   369      * @param aItemsIconArray Array of item icons
   344      * @param aItemsIconArray Array of item icons
   370      * @param aSelfExplanatoryItems Flag indicating if only icons are shown.
   345      * @param aSelfExplanatoryItems Flag indicating if only icons are shown.
   371      * @param aHelpIsAvailable A flag indicating if SAT help is available.
   346      * @param aHelpIsAvailable A flag indicating if SAT help is available.
   372      * @return Information of the operation result.
   347      * @return Information of the operation result.
   373      */
   348      */
   374      virtual TSatUiResponse SelectItemL( const TDesC &aText,
   349      virtual TSatUiResponse SelectItemL(const TDesC &aText,
   375          const MDesCArray &aMenuItems,
   350          const MDesCArray &aMenuItems,
   376          const CArrayFixFlat<TSatAction>* aMenuItemNextActions,
   351          const CArrayFixFlat<TSatAction>* aMenuItemNextActions,
   377          const TInt aDefaultItem,
   352          const TInt aDefaultItem,
   378          TUint8 &aSelection,
   353          TUint8 &aSelection,
   379          const CFbsBitmap* aIconBitmap,
   354          const CFbsBitmap *aIconBitmap,
   380          //const CAknIconArray* aItemsIconArray,
       
   381          const TBool aSelfExplanatoryItems,
   355          const TBool aSelfExplanatoryItems,
   382          const TBool aHelpIsAvailable );
   356          const TBool aHelpIsAvailable);
   383 
       
   384 public: // from MSatUiActionImplementer and impletment by Symbian
       
   385 
   357 
   386     /**
   358     /**
   387     * Returns CoeEnv.
   359     * Returns CoeEnv.
   388     */
   360     */
   389     virtual CCoeEnv* CoeEnv() { return 0; };
   361     virtual CCoeEnv* CoeEnv() { return 0; };
   401     * @return Information of the operation result.
   373     * @return Information of the operation result.
   402     */
   374     */
   403     virtual TSatUiResponse DisplayTextL(
   375     virtual TSatUiResponse DisplayTextL(
   404         const TDesC &aText,
   376         const TDesC &aText,
   405         const TDesC &aSimApplicationName,
   377         const TDesC &aSimApplicationName,
   406         CFbsBitmap* aIconBitmapDisplayText,
   378         CFbsBitmap *aIconBitmapDisplayText,
   407         const TBool aSelfExplanatoryIcon,
   379         const TBool aSelfExplanatoryIcon,
   408         const TBool aSustainedText,
   380         const TBool aSustainedText,
   409         const TTimeIntervalSeconds aDuration,
   381         const TTimeIntervalSeconds aDuration,
   410         const TBool aWaitUserToClear);
   382         const TBool aWaitUserToClear);
   411 
   383 
   428     */
   400     */
   429     virtual TSatUiResponse GetYesNoL(
   401     virtual TSatUiResponse GetYesNoL(
   430         const TDesC &aText,
   402         const TDesC &aText,
   431         const TSatCharacterSet aCharacterSet,
   403         const TSatCharacterSet aCharacterSet,
   432         TChar &aInkey,
   404         TChar &aInkey,
   433         const CFbsBitmap* /*aIconBitmap*/,
   405         const CFbsBitmap */*aIconBitmap*/,
   434         const TBool aSelfExplanatory,
   406         const TBool aSelfExplanatory,
   435         TUint &aDuration,
   407         TUint &aDuration,
   436         const TBool aImmediateDigitResponse);
   408         const TBool aImmediateDigitResponse);
   437 
   409 
   438     /**
   410     /**
   455         TDes &aInput,
   427         TDes &aInput,
   456         const TInt aMinLength,
   428         const TInt aMinLength,
   457         const TInt aMaxLength,
   429         const TInt aMaxLength,
   458         const TBool aHideInput,
   430         const TBool aHideInput,
   459         const TBool aGetInkey,
   431         const TBool aGetInkey,
   460         const CFbsBitmap* aIconBitmapGetInput,
   432         const CFbsBitmap *aIconBitmapGetInput,
   461         const TBool aSelfExplanatory,
   433         const TBool aSelfExplanatory,
   462         TUint &aDuration );
   434         TUint &aDuration);
   463 
   435 
   464 
   436 
   465     /**
   437     /**
   466     * Handles Standard Tone playing.
   438     * Handles Standard Tone playing.
   467     * @param aText The text to be displayed.
   439     * @param aText The text to be displayed.
   470     * @param aIconBitmap The tone playing note icon
   442     * @param aIconBitmap The tone playing note icon
   471     * @param aSelfExplanatory Flag indicating if icon is self-explanatory.
   443     * @param aSelfExplanatory Flag indicating if icon is self-explanatory.
   472     * @return Information of the operation result.
   444     * @return Information of the operation result.
   473     */
   445     */
   474     virtual TSatUiResponse PlayStandardToneL(
   446     virtual TSatUiResponse PlayStandardToneL(
   475         const TDesC &/*aText*/,
   447         const TDesC &aText,
   476         const TDesC8 &/*aSequence*/,
   448         const TDesC8 &aSequence,
   477         TTimeIntervalMicroSeconds /*aDuration*/,
   449         TTimeIntervalMicroSeconds aDuration,
   478         const CFbsBitmap* /*aIconBitmap*/,
   450         const CFbsBitmap *aIconBitmap,
   479         const TBool /*aSelfExplanatory*/ )
   451         const TBool aSelfExplanatory);
   480         {
       
   481              return ESatSuccess;
       
   482         };
       
   483 
   452 
   484     /**
   453     /**
   485     * Shows the confirmation note about the SAT Send SMS, Send SS or
   454     * Shows the confirmation note about the SAT Send SMS, Send SS or
   486     * Send USSD command.
   455     * Send USSD command.
   487     * @param aText The text to be displayed.
   456     * @param aText The text to be displayed.
   500     * @param aIconBitmapSendSM Sending dialog icon.
   469     * @param aIconBitmapSendSM Sending dialog icon.
   501     * @param aSelfExplanatoryIcon A flag indicating if only icon is shown.
   470     * @param aSelfExplanatoryIcon A flag indicating if only icon is shown.
   502     */
   471     */
   503     virtual void ShowSmsWaitNoteL(
   472     virtual void ShowSmsWaitNoteL(
   504         const TDesC &aText,
   473         const TDesC &aText,
   505         const CFbsBitmap* aIconBitmapSendSM,
   474         const CFbsBitmap *aIconBitmapSendSM,
   506         const TBool aSelfExplanatoryIcon);
   475         const TBool aSelfExplanatoryIcon);
   507 
   476 
   508     /**
   477     /**
   509     * Shows the wait note about the Send SS command.
   478     * Shows the wait note about the Send SS command.
   510     * @param aText The text to be displayed.
   479     * @param aText The text to be displayed.
   511     * @param aIconBitmap Sending dialog icon.
   480     * @param aIconBitmap Sending dialog icon.
   512     * @param aSelfExplanatoryIcon A flag indicating if only icon is shown.
   481     * @param aSelfExplanatoryIcon A flag indicating if only icon is shown.
   513     */
   482     */
   514     virtual void ShowSsWaitNoteL(
   483     virtual void ShowSsWaitNoteL(
   515             const TDesC &/*aText*/,
   484         const TDesC &aText,
   516             const CFbsBitmap* /*aIconBitmap*/,
   485         const CFbsBitmap */*aIconBitmap*/,
   517             const TBool /*aSelfExplanatoryIcon*/ ) {};
   486         const TBool aSelfExplanatoryIcon);
   518 
   487 
   519     /**
   488     /**
   520     * Shows the confirmation note about the SAT Refresh command.
   489     * Shows the confirmation note about the SAT Refresh command.
   521     * @param aActionAccepted Indicates whether the command was accepted.
   490     * @param aActionAccepted Indicates whether the command was accepted.
   522     * @return Information of the operation result.
   491     * @return Information of the operation result.
   533     * @param aAlphaIdStatus Alpha Identifier status
   502     * @param aAlphaIdStatus Alpha Identifier status
   534     * @param aControlResult Call control general result
   503     * @param aControlResult Call control general result
   535     * @return The response from the UI
   504     * @return The response from the UI
   536     */
   505     */
   537     virtual TSatUiResponse CallControlL(
   506     virtual TSatUiResponse CallControlL(
   538             const TDesC &/*aText*/,
   507         const TDesC &aText,
   539             const TSatAlphaIdStatus /*aAlphaIdStatus*/ )
   508         const TSatAlphaIdStatus aAlphaIdStatus);
   540         {
       
   541             return ESatSuccess;
       
   542         };
       
   543 
   509 
   544     /**
   510     /**
   545     * Notification of the SAT Launch browser confirmation request
   511     * Notification of the SAT Launch browser confirmation request
   546     * @param aText The text to be displayed.
   512     * @param aText The text to be displayed.
   547     * @param aActionAccepted Indicates whether the command was accepted.
   513     * @param aActionAccepted Indicates whether the command was accepted.
   549     * @param aSelfExplanatory Flag indicating if icon is self-explanatory.
   515     * @param aSelfExplanatory Flag indicating if icon is self-explanatory.
   550     */
   516     */
   551     virtual void ConfirmLaunchBrowserL(
   517     virtual void ConfirmLaunchBrowserL(
   552         const TDesC &/*aText*/,
   518         const TDesC &/*aText*/,
   553         TBool &/*aActionAccepted*/,
   519         TBool &/*aActionAccepted*/,
   554         const CFbsBitmap* /*aIconBitmap*/,
   520         const CFbsBitmap */*aIconBitmap*/,
   555         const TBool /*aSelfExplanatory*/) {};
   521         const TBool /*aSelfExplanatory*/) {};
   556 
   522 
   557     /**
   523     /**
   558     * Notification of the SAT Mo Sm Control command.
   524     * Notification of the SAT Mo Sm Control command.
   559     * @param aText The text string to be displayed.
   525     * @param aText The text string to be displayed.
   560     * @param aAlphaIdStatus Alpha Identifier status
   526     * @param aAlphaIdStatus Alpha Identifier status
   561     * @param aControlResult Mo Sm control general result
   527     * @param aControlResult Mo Sm control general result
   562     * @return The response from the UI
   528     * @return The response from the UI
   563     */
   529     */
   564     virtual TSatUiResponse MoSmControlL(
   530     virtual TSatUiResponse MoSmControlL(
   565         const TDesC &/*aText*/,
   531         const TDesC &aText,
   566         const TSatAlphaIdStatus /*aAlphaIdStatus*/ )
   532         const TSatAlphaIdStatus aAlphaIdStatus);
   567         {
       
   568             return ESatSuccess;
       
   569         };
       
   570 
   533 
   571     /**
   534     /**
   572     * Shows the wait note while DTMF are being sent.
   535     * Shows the wait note while DTMF are being sent.
   573     * @param aText The text to be displayed.
   536     * @param aText The text to be displayed.
   574     * @param aIconBitmap The confirm note icon
   537     * @param aIconBitmap The confirm note icon
   575     * @param aSelfExplanatory Flag indicating if icon is self-explanatory.
   538     * @param aSelfExplanatory Flag indicating if icon is self-explanatory.
   576     * @return Information on the operation result.
   539     * @return Information on the operation result.
   577     */
   540     */
   578     virtual TSatUiResponse ShowDtmfWaitNoteL(
   541     virtual TSatUiResponse ShowDtmfWaitNoteL(
   579             const TDesC &aText,
   542             const TDesC &aText,
   580             const CFbsBitmap* aIconBitmap,
   543             const CFbsBitmap *aIconBitmap,
   581             const TBool aSelfExplanatoryIcon );
   544             const TBool aSelfExplanatoryIcon);
   582 
   545 
   583     /**
   546     /**
   584     * Dispatch iWait to action implementer.
   547     * Dispatch iWait to action implementer.
   585     * @param aWait Timer.
   548     * @param aWait Timer.
   586     */
   549     */
   587     virtual void DispatchTimer(CActiveSchedulerWait &/*aWait*/) {};
   550     virtual void DispatchTimer(CActiveSchedulerWait &/*aWait*/) {};
   588 
   551 
   589     /**
   552     /**
   590     * Get flag which is indicating if end key is pressed.
   553     * Get flag which is indicating if end key is pressed.
   591     * @return A Boolean flag which is indicating if end key is pressed.
   554     * @return A Boolean flag which is indicating if end key is pressed.
   592     */
   555     *         EndKey not support, Open issue
   593     virtual TBool GetEndKey()
   556     */
   594         {
   557     virtual TBool GetEndKey(){return EFalse;};
   595             return EFalse;
       
   596         };
       
   597 
   558 
   598     /**
   559     /**
   599     * Set a flag which is indicating if end key is pressed.
   560     * Set a flag which is indicating if end key is pressed.
   600     * @param aValue Status of end key
   561     * @param aValue Status of end key
   601     */
   562     */
   615     * @param aIconBitmap The tone playing note icon
   576     * @param aIconBitmap The tone playing note icon
   616     * @param aSelfExplanatory Flag indicating if icon is self-explanatory.
   577     * @param aSelfExplanatory Flag indicating if icon is self-explanatory.
   617     * @return Information on the operation result.
   578     * @return Information on the operation result.
   618     */
   579     */
   619     virtual TSatUiResponse PlayUserSelectedToneL(
   580     virtual TSatUiResponse PlayUserSelectedToneL(
   620         const TDesC &/*aText*/,
   581         const TDesC &aText,
   621         TTimeIntervalMicroSeconds /*aDuration*/,
   582         TTimeIntervalMicroSeconds aDuration,
   622         TSatTone /*aTone*/,
   583         TSatTone aTone,
   623         const CFbsBitmap* /*aIconBitmap*/,
   584         const CFbsBitmap *aIconBitmap,
   624         const TBool /*aSelfExplanatory*/ )
   585         const TBool aSelfExplanatory);
   625         {
       
   626             return ESatSuccess;
       
   627         };
       
   628 
   586 
   629     /**
   587     /**
   630     * Confirm user permission for Open Channel.
   588     * Confirm user permission for Open Channel.
   631     * @param aText The text to be displayed.
   589     * @param aText The text to be displayed.
   632     * @param aActionAccepted Indicates whether the command was accepted.
   590     * @param aActionAccepted Indicates whether the command was accepted.
   633     * @param aIconBitmapOpenChannel Icon for query dialog
   591     * @param aIconBitmapOpenChannel Icon for query dialog
   634     * @param aSelfExplanatory A flag indicating if icon is self-explanatory
   592     * @param aSelfExplanatory A flag indicating if icon is self-explanatory
   635     * @return Operation result
   593     * @return Operation result
   636     */
   594     */
   637     virtual TSatUiResponse ConfirmOpenChannelL(
   595     virtual TSatUiResponse ConfirmOpenChannelL(
   638         const TDesC &/*aText*/,
   596         const TDesC &aText,
   639         TBool &/*aActionAccepted*/,
   597         TBool &aActionAccepted,
   640         const CFbsBitmap* /*aIconBitmapOpenChannel*/,
   598         const CFbsBitmap */*aIconBitmapOpenChannel*/,
   641         const TBool /*aSelfExplanatory*/ )
   599         const TBool aSelfExplanatory);
   642         {
       
   643             return ESatSuccess;
       
   644         };
       
   645 
   600 
   646     /**
   601     /**
   647     * Shows the wait note while BIP packets are sent.
   602     * Shows the wait note while BIP packets are sent.
   648     * @param aCommand Command type.
   603     * @param aCommand Command type.
   649     * @param aText The text to be displayed.
   604     * @param aText The text to be displayed.
   650     * @param aIconBitmap Icon for query dialog
   605     * @param aIconBitmap Icon for query dialog
   651     * @param aSelfExplanatory A flag indicating if icon is self-explanatory
   606     * @param aSelfExplanatory A flag indicating if icon is self-explanatory
   652     */
   607     */
   653     virtual void ShowBIPNoteL(
   608     virtual void ShowBIPNoteL(
   654         TInt /*aCommand*/,
   609         TInt aCommand,
   655         const TDesC &/*aText*/,
   610         const TDesC &aText,
   656         const CFbsBitmap* /*aIconBitmap*/,
   611         const CFbsBitmap */*aIconBitmap*/,
   657         const TBool /*aSelfExplanatory*/) {};
   612         const TBool /*aSelfExplanatory*/);
   658 
   613 
   659     /**
   614     /**
   660     * Confirm user permission for SetUpCall
   615     * Confirm user permission for SetUpCall
   661     * @param aText The text to be displayed.
   616     * @param aText The text to be displayed.
   662     * @param aSimAppName Header for th equery
   617     * @param aSimAppName Header for th equery
   666     */
   621     */
   667     virtual void ConfirmSetUpCallL(
   622     virtual void ConfirmSetUpCallL(
   668         const TDesC &aText,
   623         const TDesC &aText,
   669         const TDesC &aSimAppName,
   624         const TDesC &aSimAppName,
   670         TBool &aActionAccepted,
   625         TBool &aActionAccepted,
   671         const CFbsBitmap* aIconBitmap,
   626         const CFbsBitmap *aIconBitmap,
   672         const TBool aSelfExplanatory);
   627         const TBool aSelfExplanatory);
   673 
   628 
   674     /**
   629     /**
   675     * Show note indicating SAT is not available.
   630     * Show note indicating SAT is not available.
   676     */
   631     */
   677     virtual void ShowNotAvailableNoteL() {};
   632     virtual void ShowNotAvailableNoteL() {};
   678 
   633 
   679     /**
   634     /**
   680     * Show the Ss error note.
   635     * Show the Ss error note.
   681     */
   636     */
   682     virtual void ShowSsErrorNoteL() {};
   637     virtual void ShowSsErrorNoteL();
   683 
   638 
   684     /**
   639     /**
   685     * Start SatUi closing process.
   640     * Close SatUi process.
   686     */
   641     */
   687     virtual void CloseSatUI();
   642     virtual void CloseSatUI();
   688 
   643 
   689 public: // new method
   644 public: // new method
   690 
   645 
   697      /**
   652      /**
   698      * Response to the Set Up Menu command.
   653      * Response to the Set Up Menu command.
   699      * @param aMenuItem The selected menu item.
   654      * @param aMenuItem The selected menu item.
   700      * @param aHelpRequested Indicates whether help was requested.
   655      * @param aHelpRequested Indicates whether help was requested.
   701      */
   656      */
   702     void menuSelection( int aMenuItem, bool aHelpRequested );
   657     void menuSelection(int aMenuItem, bool aHelpRequested);
   703 
       
   704 protected:
       
   705      //Q_DISABLE_COPY( SatAppEventProvider );
       
   706 
   658 
   707 private: // Data
   659 private: // Data
   708 
   660 
   709     /**
   661     /**
   710      * The pointer to the sybmian class CSatUiObserver
   662      * The pointer to the sybmian class CSatUiObserver
   711      * which will access Sat Client API
   663      * which will access Sat Client API
   712      * own
   664      * own
   713      */
   665      */
   714     CSatUiObserver *mObs;
   666     CSatUiObserver *mObs;
       
   667 
       
   668     /**
       
   669      * Own, PlayTone
       
   670      */
       
   671     SatAppPlayToneProvider *mPlayTone;
       
   672 
   715 };
   673 };
   716 
   674 
   717 #endif
   675 #endif