phoneapp/phoneuiqtviewadapter/tsrc/ut_phoneuicommandcontroller/unit_tests.cpp
changeset 78 baacf668fe89
parent 76 cfea66083b62
equal deleted inserted replaced
76:cfea66083b62 78:baacf668fe89
    47     TestPhoneUiCommandController();
    47     TestPhoneUiCommandController();
    48     virtual ~TestPhoneUiCommandController();
    48     virtual ~TestPhoneUiCommandController();
    49 
    49 
    50     // From PhoneUIQtViewIF
    50     // From PhoneUIQtViewIF
    51     BubbleManagerIF& bubbleManager ();
    51     BubbleManagerIF& bubbleManager ();
    52     void addBubbleCommand (int bubbleId, const PhoneAction& action);
    52     void addBubbleCommand (int bubbleId, HbAction *action) {};
    53     void clearBubbleCommands (int bubbleId);
    53     void clearBubbleCommands (int bubbleId) {};
    54     void addParticipantListAction(
    54     void addParticipantListAction(
    55             int commandId,  
    55             int commandId,  
    56             const QString &text, 
    56             const QString &text, 
    57             const HbIcon &icon);
    57             const HbIcon &icon);
    58     void clearParticipantListActions();
    58     void clearParticipantListActions();
    59     void hideToolbar () { };
    59     void hideToolbar () { };
    60     void showToolbar () { m_showToolbarCalled = true; };
    60     void showToolbar () { m_showToolbarCalled = true; };
    61     void setToolbarActions (const QList<PhoneAction*>& actions) {m_toolbarActionCount = actions.count(); };
    61     void setToolbarActions (const QList<HbAction *> &actions) {m_toolbarActionCount = actions.count(); };
    62     int volumeSliderValue () { m_volumeSliderValueCalled = true; return 5; };
    62     int volumeSliderValue () { m_volumeSliderValueCalled = true; return 5; };
    63     void removeVolumeSlider () { m_removeVolumeSliderCalled = true; };
    63     void removeVolumeSlider () { m_removeVolumeSliderCalled = true; };
    64     void setVolumeSliderValue (
    64     void setVolumeSliderValue (
    65             int value, 
    65             int value, 
    66             int , 
    66             int , 
    76     return m_isDialpadVisible; }
    76     return m_isDialpadVisible; }
    77     QString dialpadText() {return m_dialpadText;};
    77     QString dialpadText() {return m_dialpadText;};
    78     void clearAndHideDialpad() { m_clearAndHideDialpadCalled = true;};
    78     void clearAndHideDialpad() { m_clearAndHideDialpadCalled = true;};
    79     void clearDialpad() {};
    79     void clearDialpad() {};
    80     void bringToForeground() {};
    80     void bringToForeground() {};
    81     void setMenuActions(const QList<PhoneAction*>& ) { m_setMenuActionsCalled = true;};
    81 	void hide() {};
       
    82     void setMenuActions(const QList<HbAction *> & ) { m_setMenuActionsCalled = true;};
    82     void shutdownPhoneApp() {};
    83     void shutdownPhoneApp() {};
    83     void setBackButtonVisible(bool ) {};
    84     void setBackButtonVisible(bool ) {};
    84     HbMenu &menuReference(){ HbMenu* menu = NULL; return *menu;};
    85     HbMenu &menuReference(){ HbMenu* menu = NULL; return *menu;};
    85     void captureKey(Qt::Key , bool ) {};
    86     void captureKey(Qt::Key , bool ) {};
    86     
    87     
   219 BubbleManagerIF& TestPhoneUiCommandController::bubbleManager ()
   220 BubbleManagerIF& TestPhoneUiCommandController::bubbleManager ()
   220 {
   221 {
   221     return *this;
   222     return *this;
   222 }
   223 }
   223 
   224 
   224 void TestPhoneUiCommandController::addBubbleCommand (
       
   225         int bubbleId, const PhoneAction& action)
       
   226 {
       
   227 
       
   228 }
       
   229 
       
   230 void TestPhoneUiCommandController::clearBubbleCommands (int bubbleId)
       
   231 {
       
   232 
       
   233 }
       
   234 
       
   235 void TestPhoneUiCommandController::addParticipantListAction(
   225 void TestPhoneUiCommandController::addParticipantListAction(
   236     int commandId,
   226     int commandId,
   237     const QString& text, 
   227     const QString& text, 
   238     const HbIcon& icon)
   228     const HbIcon& icon)
   239 {
   229 {
   323     int serviceId(2);
   313     int serviceId(2);
   324     int callId(1);
   314     int callId(1);
   325     callStates[callId] = EPEStateConnected;
   315     callStates[callId] = EPEStateConnected;
   326     serviceIds[callId] = serviceId;
   316     serviceIds[callId] = serviceId;
   327     
   317     
   328     QMap<PhoneAction::ActionType, PhoneAction *> actions = 
   318     QList<HbAction *> actions = 
   329         m_commandController->pushButtonActionsForCall(
   319         m_commandController->pushButtonActionsForCall(
   330             callState,
   320             callState,
   331             emergencyCall,
   321             emergencyCall,
   332             callStates,
   322             callStates,
   333             serviceIds,
   323             serviceIds,
   334             serviceId,
   324             serviceId,
   335             callId);
   325             callId);
   336     
   326     
   337     QVERIFY(0<actions.values().count());
   327     QVERIFY(0<actions.count());
   338     
   328     
   339     qDeleteAll(actions.values());
   329     qDeleteAll(actions);
   340     actions.clear();
   330     actions.clear();
   341     
   331     
   342     m_setInvalidButtonCommands = true;
   332     m_setInvalidButtonCommands = true;
   343     actions =  m_commandController->pushButtonActionsForCall(
   333     actions =  m_commandController->pushButtonActionsForCall(
   344             callState,
   334             callState,
   346             callStates,
   336             callStates,
   347             serviceIds,
   337             serviceIds,
   348             serviceId,
   338             serviceId,
   349             callId);
   339             callId);
   350     
   340     
   351     QVERIFY(0==actions.values().count());
   341     QVERIFY(0==actions.count());
   352     qDeleteAll(actions.values());
   342     qDeleteAll(actions);
   353     actions.clear();  
   343     actions.clear();  
   354     m_setInvalidButtonCommands = false;
   344     m_setInvalidButtonCommands = false;
   355     
   345     
   356     actions = m_commandController->pushButtonActionsForCall(
   346     actions = m_commandController->pushButtonActionsForCall(
   357             callState,
   347             callState,
   359             callStates,
   349             callStates,
   360             serviceIds,
   350             serviceIds,
   361             serviceId,
   351             serviceId,
   362             callId);
   352             callId);
   363  
   353  
   364     QVERIFY(0<actions.values().count());
   354     QVERIFY(0<actions.count());
   365     qDeleteAll(actions.values());
   355     qDeleteAll(actions);
   366     actions.clear();
   356     actions.clear();
   367     
   357     
   368     PhoneResourceAdapter::Instance()->buttonsController()->
   358     PhoneResourceAdapter::Instance()->buttonsController()->
   369             setButtonFlags(PhoneUIQtButtonsController::Ihf, true);
   359             setButtonFlags(PhoneUIQtButtonsController::Ihf, true);
   370     
   360     
   376             callStates,
   366             callStates,
   377             serviceIds,
   367             serviceIds,
   378             serviceId,
   368             serviceId,
   379             callId);
   369             callId);
   380  
   370  
   381     QVERIFY(0<actions.values().count());
   371     QVERIFY(0<actions.count());
   382     qDeleteAll(actions.values());
   372     qDeleteAll(actions);
   383     actions.clear();
   373     actions.clear();
   384     
   374     
   385     callStates[callId] = EPEStateRinging;
   375     callStates[callId] = EPEStateRinging;
   386     callState = EPEStateRinging;
   376     callState = EPEStateRinging;
   387     actions = m_commandController->pushButtonActionsForCall(
   377     actions = m_commandController->pushButtonActionsForCall(
   390             callStates,
   380             callStates,
   391             serviceIds,
   381             serviceIds,
   392             serviceId,
   382             serviceId,
   393             callId);
   383             callId);
   394  
   384  
   395     QVERIFY(0<actions.values().count());
   385     QVERIFY(0<actions.count());
   396     qDeleteAll(actions.values());
   386     qDeleteAll(actions);
   397     actions.clear();
   387     actions.clear();
   398     
   388     
   399     callStates[callId] = EPEStateIdle;
   389     callStates[callId] = EPEStateIdle;
   400     callState = EPEStateIdle;
   390     callState = EPEStateIdle;
   401     actions = m_commandController->pushButtonActionsForCall(
   391     actions = m_commandController->pushButtonActionsForCall(
   404             callStates,
   394             callStates,
   405             serviceIds,
   395             serviceIds,
   406             serviceId,
   396             serviceId,
   407             callId);
   397             callId);
   408  
   398  
   409     QVERIFY(0==actions.values().count());
   399     QVERIFY(0==actions.count());
   410     qDeleteAll(actions.values());
   400     qDeleteAll(actions);
   411     actions.clear();
   401     actions.clear();
   412 
   402 
   413     callStates[callId] = EPEStateDisconnecting;
   403     callStates[callId] = EPEStateDisconnecting;
   414     callState = EPEStateDisconnecting;
   404     callState = EPEStateDisconnecting;
   415     actions = m_commandController->pushButtonActionsForCall(
   405     actions = m_commandController->pushButtonActionsForCall(
   418             callStates,
   408             callStates,
   419             serviceIds,
   409             serviceIds,
   420             serviceId,
   410             serviceId,
   421             callId);
   411             callId);
   422  
   412  
   423     QVERIFY(0==actions.values().count());
   413     QVERIFY(0==actions.count());
   424     qDeleteAll(actions.values());
   414     qDeleteAll(actions);
   425     actions.clear();
   415     actions.clear();
   426     
   416     
   427     callStates[callId] = EPEStateConferenceIdle;
   417     callStates[callId] = EPEStateConferenceIdle;
   428     callState = EPEStateConferenceIdle;
   418     callState = EPEStateConferenceIdle;
   429     actions = m_commandController->pushButtonActionsForCall(
   419     actions = m_commandController->pushButtonActionsForCall(
   432             callStates,
   422             callStates,
   433             serviceIds,
   423             serviceIds,
   434             serviceId,
   424             serviceId,
   435             callId);
   425             callId);
   436  
   426  
   437     QVERIFY(0==actions.values().count());
   427     QVERIFY(0==actions.count());
   438     qDeleteAll(actions.values());
   428     qDeleteAll(actions);
   439     actions.clear();
   429     actions.clear();
   440     
   430     
   441     callStates[callId] = EPEStateUnknown;
   431     callStates[callId] = EPEStateUnknown;
   442     callState = EPEStateUnknown;
   432     callState = EPEStateUnknown;
   443     actions = m_commandController->pushButtonActionsForCall(
   433     actions = m_commandController->pushButtonActionsForCall(
   446             callStates,
   436             callStates,
   447             serviceIds,
   437             serviceIds,
   448             serviceId,
   438             serviceId,
   449             callId);
   439             callId);
   450  
   440  
   451     QVERIFY(0==actions.values().count());
   441     QVERIFY(0==actions.count());
   452     qDeleteAll(actions.values());
   442     qDeleteAll(actions);
   453     actions.clear();
   443     actions.clear();
   454     
   444     
   455     callStates[callId] = EPEStateDialing;
   445     callStates[callId] = EPEStateDialing;
   456     callState = EPEStateDialing;
   446     callState = EPEStateDialing;
   457     actions = m_commandController->pushButtonActionsForCall(
   447     actions = m_commandController->pushButtonActionsForCall(
   460             callStates,
   450             callStates,
   461             serviceIds,
   451             serviceIds,
   462             serviceId,
   452             serviceId,
   463             callId);
   453             callId);
   464  
   454  
   465     QVERIFY(0<actions.values().count());
   455     QVERIFY(0<actions.count());
   466     qDeleteAll(actions.values());
   456     qDeleteAll(actions);
   467     actions.clear();
   457     actions.clear();
   468     
   458     
   469     callStates[callId] = EPEStateConnecting;
   459     callStates[callId] = EPEStateConnecting;
   470     callState = EPEStateConnecting;
   460     callState = EPEStateConnecting;
   471     actions = m_commandController->pushButtonActionsForCall(
   461     actions = m_commandController->pushButtonActionsForCall(
   474             callStates,
   464             callStates,
   475             serviceIds,
   465             serviceIds,
   476             serviceId,
   466             serviceId,
   477             callId);
   467             callId);
   478  
   468  
   479     QVERIFY(0<actions.values().count());
   469     QVERIFY(0<actions.count());
   480     qDeleteAll(actions.values());
   470     qDeleteAll(actions);
   481     actions.clear();
   471     actions.clear();
   482     
   472     
   483     callStates[callId] = EPEStateConnectedConference;
   473     callStates[callId] = EPEStateConnectedConference;
   484     callState = EPEStateConnectedConference;
   474     callState = EPEStateConnectedConference;
   485     actions = m_commandController->pushButtonActionsForCall(
   475     actions = m_commandController->pushButtonActionsForCall(
   488             callStates,
   478             callStates,
   489             serviceIds,
   479             serviceIds,
   490             serviceId,
   480             serviceId,
   491             callId);
   481             callId);
   492  
   482  
   493     QVERIFY(0<actions.values().count());
   483     QVERIFY(0<actions.count());
   494     qDeleteAll(actions.values());
   484     qDeleteAll(actions);
   495     actions.clear();
   485     actions.clear();
   496     
   486     
   497     callStates[callId] = EPEStateHeldConference;
   487     callStates[callId] = EPEStateHeldConference;
   498     callState = EPEStateHeldConference;
   488     callState = EPEStateHeldConference;
   499     actions = m_commandController->pushButtonActionsForCall(
   489     actions = m_commandController->pushButtonActionsForCall(
   502             callStates,
   492             callStates,
   503             serviceIds,
   493             serviceIds,
   504             serviceId,
   494             serviceId,
   505             callId);
   495             callId);
   506  
   496  
   507     QVERIFY(0<actions.values().count());
   497     QVERIFY(0<actions.count());
   508     qDeleteAll(actions.values());
   498     qDeleteAll(actions);
   509     actions.clear();
   499     actions.clear();
   510     
   500     
   511     //////////////////////////////////////////////////////////////////////////
   501     //////////////////////////////////////////////////////////////////////////
   512     //2 calls
   502     //2 calls
   513     //////////////////////////////////////////////////////////////////////////
   503     //////////////////////////////////////////////////////////////////////////
   522             callStates,
   512             callStates,
   523             serviceIds,
   513             serviceIds,
   524             serviceId,
   514             serviceId,
   525             callId);
   515             callId);
   526     
   516     
   527     QVERIFY(0<actions.values().count());
   517     QVERIFY(0<actions.count());
   528     qDeleteAll(actions.values());
   518     qDeleteAll(actions);
   529     actions.clear();
   519     actions.clear();
   530     
   520     
   531     callStates[2] = EPEStateHeldConference;
   521     callStates[2] = EPEStateHeldConference;
   532     callState = EPEStateHeldConference;
   522     callState = EPEStateHeldConference;
   533     actions = m_commandController->pushButtonActionsForCall(
   523     actions = m_commandController->pushButtonActionsForCall(
   536             callStates,
   526             callStates,
   537             serviceIds,
   527             serviceIds,
   538             serviceId,
   528             serviceId,
   539             callId);
   529             callId);
   540     
   530     
   541     QVERIFY(0<actions.values().count());
   531     QVERIFY(0<actions.count());
   542     qDeleteAll(actions.values());
   532     qDeleteAll(actions);
   543     actions.clear();
   533     actions.clear();
   544     
   534     
   545     serviceId = 3;
   535     serviceId = 3;
   546     serviceIds[callId] = serviceId;
   536     serviceIds[callId] = serviceId;
   547     callStates[2] = EPEStateHeld;
   537     callStates[2] = EPEStateHeld;
   552             callStates,
   542             callStates,
   553             serviceIds,
   543             serviceIds,
   554             serviceId,
   544             serviceId,
   555             callId);
   545             callId);
   556     
   546     
   557     QVERIFY(0<actions.values().count());
   547     QVERIFY(0<actions.count());
   558     qDeleteAll(actions.values());
   548     qDeleteAll(actions);
   559     actions.clear();
   549     actions.clear();
   560     
   550     
   561     actions = m_commandController->pushButtonActionsForCall(
   551     actions = m_commandController->pushButtonActionsForCall(
   562             callState,
   552             callState,
   563             true,
   553             true,
   564             callStates,
   554             callStates,
   565             serviceIds,
   555             serviceIds,
   566             serviceId,
   556             serviceId,
   567             callId);
   557             callId);
   568     
   558     
   569     QVERIFY(0<actions.values().count());
   559     QVERIFY(0<actions.count());
   570     qDeleteAll(actions.values());
   560     qDeleteAll(actions);
   571     actions.clear();
   561     actions.clear();
   572     
   562     
   573     callStates[2] = EPEStateHeldConference;
   563     callStates[2] = EPEStateHeldConference;
   574     callState = EPEStateHeldConference;
   564     callState = EPEStateHeldConference;
   575     actions = m_commandController->pushButtonActionsForCall(
   565     actions = m_commandController->pushButtonActionsForCall(
   578             callStates,
   568             callStates,
   579             serviceIds,
   569             serviceIds,
   580             serviceId,
   570             serviceId,
   581             callId);
   571             callId);
   582     
   572     
   583     QVERIFY(0<actions.values().count());
   573     QVERIFY(0<actions.count());
   584     qDeleteAll(actions.values());
   574     qDeleteAll(actions);
   585     actions.clear();
   575     actions.clear();
   586     
   576     
   587     callStates[2] = EPEStateConnectedConference;
   577     callStates[2] = EPEStateConnectedConference;
   588     callState = EPEStateHeld;
   578     callState = EPEStateHeld;
   589     callStates[callId] = EPEStateHeld;
   579     callStates[callId] = EPEStateHeld;
   593             callStates,
   583             callStates,
   594             serviceIds,
   584             serviceIds,
   595             serviceId,
   585             serviceId,
   596             callId);
   586             callId);
   597     
   587     
   598     QVERIFY(0<actions.values().count());
   588     QVERIFY(0<actions.count());
   599     qDeleteAll(actions.values());
   589     qDeleteAll(actions);
   600     actions.clear();
   590     actions.clear();
   601     
   591     
   602     callState = EPEStateConnectedConference;
   592     callState = EPEStateConnectedConference;
   603     actions = m_commandController->pushButtonActionsForCall(
   593     actions = m_commandController->pushButtonActionsForCall(
   604             callState,
   594             callState,
   606             callStates,
   596             callStates,
   607             serviceIds,
   597             serviceIds,
   608             serviceId,
   598             serviceId,
   609             callId);
   599             callId);
   610     
   600     
   611     QVERIFY(0<actions.values().count());
   601     QVERIFY(0<actions.count());
   612     qDeleteAll(actions.values());
   602     qDeleteAll(actions);
   613     actions.clear();
   603     actions.clear();
   614     
   604     
   615     callStates[callId] = EPEStateConnected;
   605     callStates[callId] = EPEStateConnected;
   616     callStates[2] = EPEStateHeldConference;
   606     callStates[2] = EPEStateHeldConference;
   617     callState = EPEStateConnected;
   607     callState = EPEStateConnected;
   623             callStates,
   613             callStates,
   624             serviceIds,
   614             serviceIds,
   625             serviceId,
   615             serviceId,
   626             callId);
   616             callId);
   627     
   617     
   628     QVERIFY(0<actions.values().count());
   618     QVERIFY(0<actions.count());
   629     qDeleteAll(actions.values());
   619     qDeleteAll(actions);
   630     actions.clear();
   620     actions.clear();
   631     
   621     
   632     PhoneResourceAdapter::Instance()->buttonsController()->
   622     PhoneResourceAdapter::Instance()->buttonsController()->
   633             setButtonFlags(PhoneUIQtButtonsController::Btaa, true);
   623             setButtonFlags(PhoneUIQtButtonsController::Btaa, true);
   634     
   624     
   647             callStates,
   637             callStates,
   648             serviceIds,
   638             serviceIds,
   649             serviceId,
   639             serviceId,
   650             callId);
   640             callId);
   651     
   641     
   652     QVERIFY(0<actions.values().count());
   642     QVERIFY(0<actions.count());
   653     qDeleteAll(actions.values());
   643     qDeleteAll(actions);
   654     actions.clear();
   644     actions.clear();
   655     
   645     
   656     actions = m_commandController->pushButtonActionsForCall(
   646     actions = m_commandController->pushButtonActionsForCall(
   657             EPEStateRinging,
   647             EPEStateRinging,
   658             emergencyCall,
   648             emergencyCall,
   659             callStates,
   649             callStates,
   660             serviceIds,
   650             serviceIds,
   661             serviceId,
   651             serviceId,
   662             3);
   652             3);
   663     
   653     
   664     QVERIFY(0<actions.values().count());
   654     QVERIFY(0<actions.count());
   665     qDeleteAll(actions.values());
   655     qDeleteAll(actions);
   666     actions.clear();
   656     actions.clear();
   667     
   657     
   668     actions = m_commandController->pushButtonActionsForCall(
   658     actions = m_commandController->pushButtonActionsForCall(
   669             EPEStateHeld,
   659             EPEStateHeld,
   670             emergencyCall,
   660             emergencyCall,
   671             callStates,
   661             callStates,
   672             serviceIds,
   662             serviceIds,
   673             serviceId,
   663             serviceId,
   674             2);
   664             2);
   675     
   665     
   676     QVERIFY(0<actions.values().count());
   666     QVERIFY(0<actions.count());
   677     qDeleteAll(actions.values());
   667     qDeleteAll(actions);
   678     actions.clear();
   668     actions.clear();
   679     
   669     
   680 }
   670 }
   681 
   671 
   682 void TestPhoneUiCommandController::testToolBarActionsForCall()
   672 void TestPhoneUiCommandController::testToolBarActionsForCall()
   699             setButtonFlags(PhoneUIQtButtonsController::IhfAsPushButton, false);
   689             setButtonFlags(PhoneUIQtButtonsController::IhfAsPushButton, false);
   700     PhoneResourceAdapter::Instance()->buttonsController()->
   690     PhoneResourceAdapter::Instance()->buttonsController()->
   701             setButtonFlags(PhoneUIQtButtonsController::Ihf, false);
   691             setButtonFlags(PhoneUIQtButtonsController::Ihf, false);
   702     
   692     
   703     
   693     
   704     QList<PhoneAction *> actions = 
   694     QList<HbAction *> actions = 
   705         m_commandController->toolBarActions(
   695         m_commandController->toolBarActions(
   706             R_PHONEUI_DIALER_CBA,
   696             R_PHONEUI_DIALER_CBA,
   707             callStates,
   697             callStates,
   708             serviceIds,
   698             serviceIds,
   709             serviceId,
   699             serviceId,
   710             callId);
   700             callId);
   711     
   701     
   712     QVERIFY(4==actions.count());
   702     QVERIFY(4==actions.count());
   713     QVERIFY(EPhoneInCallCmdActivateIhf == actions.at(0)->command());
   703     QVERIFY(EPhoneInCallCmdActivateIhf == actions[0]->property("command"));
   714     QVERIFY(EPhoneInCallCmdHold == actions.at(1)->command());
   704     QVERIFY(EPhoneInCallCmdHold == actions[1]->property("command"));
   715     QVERIFY(EPhoneInCallCmdContacts == actions.at(2)->command());
   705     QVERIFY(EPhoneInCallCmdContacts == actions[2]->property("command"));
   716     QVERIFY(EPhoneInCallCmdDialer == actions.at(3)->command());
   706     QVERIFY(EPhoneInCallCmdDialer == actions[3]->property("command"));
   717     
   707     
   718     qDeleteAll(actions);
   708     qDeleteAll(actions);
   719     actions.clear();
   709     actions.clear();
   720     
   710     
   721     // Invalid resource id
   711     // Invalid resource id
   770             serviceIds,
   760             serviceIds,
   771             serviceId,
   761             serviceId,
   772             callId);
   762             callId);
   773     
   763     
   774     QVERIFY(4==actions.count());
   764     QVERIFY(4==actions.count());
   775     QVERIFY(EPhoneInCallCmdJoin == actions.at(0)->command());
   765     QVERIFY(EPhoneInCallCmdJoin == actions[0]->property("command"));
   776     QVERIFY(EPhoneInCallCmdUnhold == actions.at(1)->command());
   766     QVERIFY(EPhoneInCallCmdUnhold == actions[1]->property("command"));
   777     QVERIFY(EPhoneInCallCmdEndThisOutgoingCall == actions.at(2)->command());
   767     QVERIFY(EPhoneInCallCmdEndThisOutgoingCall == actions[2]->property("command"));
   778     QVERIFY(EPhoneCallComingCmdSilent == actions.at(3)->command());
   768     QVERIFY(EPhoneCallComingCmdSilent == actions[3]->property("command"));
   779     
   769     
   780     qDeleteAll(actions);
   770     qDeleteAll(actions);
   781     actions.clear();
   771     actions.clear();
   782     
   772     
   783     m_setCustomToolBarCommands =false;
   773     m_setCustomToolBarCommands =false;