phoneengine/phoneservices/inc/dtmfservice.h
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 30 ebdbd102c78a
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
    10 * Nokia Corporation - initial contribution.
    10 * Nokia Corporation - initial contribution.
    11 *
    11 *
    12 * Contributors:
    12 * Contributors:
    13 *
    13 *
    14 * Description:  DTMF API to be used through Qt Highway.
    14 * Description:  DTMF API to be used through Qt Highway.
       
    15 *
       
    16 *
       
    17 *
       
    18 *            Example usage:
       
    19 *            QString service("phoneui");
       
    20 *            QString interface(""com.nokia.symbian.ICallDial");
       
    21 *            QString operation("playDTMFTone(QString)"); // or stopDTMFPlay()
       
    22 *            XQApplicationManager appManager;
       
    23 *            QScopedPointer<XQAiwRequest> request(appManager.create(service, interface, operation, false));
       
    24 *            if (request == NULL) {
       
    25 *                //Service not found 
       
    26 *            }
       
    27 *            QList<QVariant> args;
       
    28 *            args << QChar('0');
       
    29 *            request->setArguments(args);
       
    30 *            if (request->send()) {
       
    31 *               //error
       
    32 *            }
    15 *
    33 *
    16 */
    34 */
    17 
    35 
    18 #ifndef DTMFSERVICE_H
    36 #ifndef DTMFSERVICE_H
    19 #define DTMFSERVICE_H
    37 #define DTMFSERVICE_H
    39         \fn playDTMFTone(const QChar& keyToPlay)
    57         \fn playDTMFTone(const QChar& keyToPlay)
    40         
    58         
    41         This method plays DTMF tone matching given character.
    59         This method plays DTMF tone matching given character.
    42         If character doesn't match any supported DTMF tone
    60         If character doesn't match any supported DTMF tone
    43         it is ignored.
    61         it is ignored.
    44         
       
    45         Usage example:
       
    46         XQServiceRequest snd("com.nokia.symbian.IDtmfPlay","playDTMFTone(QChar)");
       
    47         snd << "5";
       
    48     */
    62     */
    49     void playDTMFTone(const QChar& keyToPlay);
    63     void playDTMFTone(const QChar& keyToPlay);
    50 
    64 
    51     /*!
    65     /*!
    52         \fn stopDTMFPlay()
    66         \fn stopDTMFPlay()