qtmobileextensions/examples/systemtoneserviceex/ststest.h
branchRCL_3
changeset 10 cd2778e5acfe
parent 9 5d007b20cfd0
child 11 19a54be74e5e
equal deleted inserted replaced
9:5d007b20cfd0 10:cd2778e5acfe
     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 <QMainWindow>
       
    29 #include <QWidget>
       
    30 #include <QComboBox>
       
    31 #include <QSpinBox>
       
    32 #include <QLabel>
       
    33 #include <QTimer>
       
    34 
       
    35 #include <xqsystemtoneservice.h>
       
    36 
       
    37 class STSTest : public QMainWindow
       
    38 {
       
    39 
       
    40 Q_OBJECT
       
    41 
       
    42 public:
       
    43    
       
    44     STSTest(QWidget *parent = 0);
       
    45     
       
    46     ~STSTest();
       
    47     
       
    48 public slots: 
       
    49 
       
    50     void playTone();
       
    51 
       
    52     void playAlarm();
       
    53 	
       
    54     void playAlarmAsTone();
       
    55 
       
    56     void stopAlarm();
       
    57 
       
    58 
       
    59     void startCallback();
       
    60 
       
    61     void startCallback(unsigned int ctx);
       
    62 
       
    63     void stopCallback(unsigned int ctx);
       
    64     
       
    65     void cleanCallback();
       
    66 
       
    67 private:
       
    68 
       
    69     QLabel *callbackLabel;
       
    70     QTimer callbackCleanTimer;
       
    71 
       
    72     QLabel *currCtxLabel;
       
    73     QSpinBox *spinBox;
       
    74     QComboBox *box;
       
    75     XQSystemToneService *sts;
       
    76     
       
    77 };
       
    78 
       
    79 #endif // T_TEST5_H