homescreenapp/serviceproviders/hsmenuserviceprovider/src/hsmenuentryremovedhandler.cpp
changeset 90 3ac3aaebaee5
parent 71 1db7cc813a4e
equal deleted inserted replaced
86:e4f038c420f7 90:3ac3aaebaee5
    29     \brief 
    29     \brief 
    30 */
    30 */
    31 
    31 
    32 /*!
    32 /*!
    33  Constructor.
    33  Constructor.
    34  \param entryId identifies entry which removal is to be observed.
    34  \param entryId identifies entry which removal is to be observed. If 0 no entry
       
    35  will be observed.
    35  \param receiver object which \a callback is to be called on requested entry
    36  \param receiver object which \a callback is to be called on requested entry
    36  removal. If \receiver is passed 0 no action will be taken on the entry removal.
    37  removal. If \receiver is passed 0 no action will be taken on the entry removal.
    37  \param callback signal or slot that will be called on entry removal. The \a callback
    38  \param callback signal or slot that will be called on entry removal. The \a callback
    38  signature should correspond to void (*)(int, ChangeType) signal otherwise
    39  signature should correspond to void (*)(int, ChangeType) signal otherwise
    39  runtime warning will be provided. If \a callback is 0 no action will be
    40  runtime warning will be provided. If \a callback is 0 no action will be
    43     int entryId, 
    44     int entryId, 
    44     QObject *receiver,
    45     QObject *receiver,
    45     const char *callback):
    46     const char *callback):
    46     mNotifier(0)
    47     mNotifier(0)
    47 {
    48 {
    48     if (receiver != 0 && callback != 0) {
    49     if (entryId != 0 && receiver != 0 && callback != 0) {
    49         connect(this, SIGNAL(notify()), receiver, callback);
    50         connect(this, SIGNAL(notify()), receiver, callback);
    50         subscribe(entryId);
    51         subscribe(entryId);
    51     }
    52     }
    52 };
    53 };
    53 
    54