phonebookui/pbkcommonui/src/cntactionlauncher.cpp
changeset 53 e6aff7b69165
parent 50 77bc263e1626
equal deleted inserted replaced
51:81c360d47083 53:e6aff7b69165
    47         
    47         
    48         connect(mContactAction, SIGNAL(stateChanged(QContactAction::State)),
    48         connect(mContactAction, SIGNAL(stateChanged(QContactAction::State)),
    49                 this, SLOT(progress(QContactAction::State)));
    49                 this, SLOT(progress(QContactAction::State)));
    50         executed = mContactAction->invokeAction( aContact, aDetail );
    50         executed = mContactAction->invokeAction( aContact, aDetail );
    51         }
    51         }
       
    52     else
       
    53         {
       
    54         progress(QContactAction::FinishedWithErrorState);
       
    55         }
    52     
    56     
    53     return executed;
    57     return executed;
    54     }
    58     }
    55 
    59 
    56 bool CntActionLauncher::execute( QContact aContact, QContactDetail aDetail, QVariantMap aParameters )
    60 bool CntActionLauncher::execute( QContact aContact, QContactDetail aDetail, QVariantMap aParameters )
    69         
    73         
    70         connect(mContactAction, SIGNAL(stateChanged(QContactAction::State)),
    74         connect(mContactAction, SIGNAL(stateChanged(QContactAction::State)),
    71                 this, SLOT(progress(QContactAction::State)));
    75                 this, SLOT(progress(QContactAction::State)));
    72         executed = mContactAction->invokeAction( aContact, aDetail, aParameters );
    76         executed = mContactAction->invokeAction( aContact, aDetail, aParameters );
    73         }
    77         }
       
    78     else
       
    79         {
       
    80         progress(QContactAction::FinishedWithErrorState);
       
    81         }
    74     
    82     
    75     return executed;
    83     return executed;
    76     }
    84     }
    77  
    85  
    78 /*!
    86 /*!
    87     {
    95     {
    88         connect(mContactAction, SIGNAL(stateChanged(QContactAction::State)),
    96         connect(mContactAction, SIGNAL(stateChanged(QContactAction::State)),
    89                 this, SLOT(progress(QContactAction::State)));
    97                 this, SLOT(progress(QContactAction::State)));
    90         executed = mContactAction->invokeAction( aContact, aDetail );
    98         executed = mContactAction->invokeAction( aContact, aDetail );
    91     }
    99     }
       
   100     else
       
   101     {
       
   102         progress(QContactAction::FinishedWithErrorState);
       
   103     }
    92     return executed;
   104     return executed;
    93 }
   105 }
    94 
   106 
    95 void CntActionLauncher::progress( QContactAction::State status )
   107 void CntActionLauncher::progress( QContactAction::State status )
    96     {
   108     {