qtmobileextensions/examples/systemtoneserviceex/ststest.h
changeset 8 71781823f776
child 19 46686fb6258c
equal deleted inserted replaced
5:453da2cfceef 8:71781823f776
       
     1 /*
       
     2 #
       
     3 # Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     4 # All rights reserved.
       
     5 #
       
     6 # This program is free software: you can redistribute it and/or modify
       
     7 # it under the terms of the GNU Lesser General Public License as published by
       
     8 # the Free Software Foundation, version 2.1 of the License.
       
     9 #
       
    10 # This program is distributed in the hope that it will be useful,
       
    11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
       
    12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       
    13 # GNU Lesser General Public License for more details.
       
    14 #
       
    15 # You should have received a copy of the GNU Lesser General Public License
       
    16 # along with this program.  If not,
       
    17 # see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/".
       
    18 #
       
    19 # Description:
       
    20 #
       
    21 */
       
    22 
       
    23 #ifndef T_TEST5_H
       
    24 #define T_TEST5_H
       
    25 
       
    26 #include <QObject>
       
    27 #include <QVariant>
       
    28 #include <QWidget>
       
    29 #include <QComboBox>
       
    30 #include <QSpinBox>
       
    31 #include <QLabel>
       
    32 #include <QTimer>
       
    33 
       
    34 #include <xqsystemtoneservice.h>
       
    35 
       
    36 class STSTest : public QWidget
       
    37 {
       
    38 
       
    39 Q_OBJECT
       
    40 
       
    41 public:
       
    42    
       
    43     STSTest(QWidget *parent = 0, Qt::WFlags f = 0);
       
    44     
       
    45     ~STSTest();
       
    46     
       
    47 public slots: 
       
    48 
       
    49     void playTone();
       
    50 
       
    51     void playAlarm();
       
    52 
       
    53     void stopAlarm();
       
    54 
       
    55 
       
    56     void startCallback();
       
    57 
       
    58     void startCallback(unsigned int ctx);
       
    59 
       
    60     void stopCallback(unsigned int ctx);
       
    61     
       
    62     void cleanCallback();
       
    63 
       
    64 private:
       
    65 
       
    66     QLabel *callbackLabel;
       
    67     QTimer callbackCleanTimer;
       
    68 
       
    69     QLabel *currCtxLabel;
       
    70     QSpinBox *spinBox;
       
    71     QComboBox *box;
       
    72     XQSystemToneService *sts;
       
    73     
       
    74 };
       
    75 
       
    76 #endif // T_TEST5_H