camerauis/cameraxui/cxui/inc/cxuiselftimer.h
changeset 29 699651f2666f
parent 21 fa6d9f75d6a6
child 32 5c1e3c6aa4ef
equal deleted inserted replaced
24:2094593137f5 29:699651f2666f
    17 #ifndef CXUISELFTIMER_H
    17 #ifndef CXUISELFTIMER_H
    18 #define CXUISELFTIMER_H
    18 #define CXUISELFTIMER_H
    19 
    19 
    20 #include <QObject>
    20 #include <QObject>
    21 #include <QTimer>
    21 #include <QTimer>
       
    22 #include <QSound>
    22 
    23 
    23 class CxeSettings;
    24 class CxeSettings;
    24 class CxuiDocumentLoader;
    25 class CxuiDocumentLoader;
    25 class HbLabel;
    26 class HbLabel;
    26 class HbPushButton;
    27 class HbPushButton;
    43     void cancelled();
    44     void cancelled();
    44 
    45 
    45 public slots:
    46 public slots:
    46     void changeTimeOut(int seconds);
    47     void changeTimeOut(int seconds);
    47     void startTimer();
    48     void startTimer();
    48     void reset();
    49     void reset(bool update = true);
    49     void cancel();
    50     void cancel();
    50 
    51 
    51 protected slots:
    52 protected slots:
    52     void timeout();
    53     void timeout();
    53 
    54 
    54 private:
    55 private:
    55     void reset(bool update);
       
    56     void updateWidgets();
    56     void updateWidgets();
    57     void showWidgets();
    57     void showWidgets();
    58     void hideWidgets();
    58     void hideWidgets();
       
    59     void playSound();
    59 
    60 
    60 private:
    61 private:
    61     Q_DISABLE_COPY(CxuiSelfTimer)
    62     Q_DISABLE_COPY(CxuiSelfTimer)
    62 
    63 
    63     int mDelay;
    64     int mDelay;
    72     HbPushButton *mStartButton;
    73     HbPushButton *mStartButton;
    73 
    74 
    74     // settings, not own
    75     // settings, not own
    75     CxeSettings &mSettings;
    76     CxeSettings &mSettings;
    76 
    77 
       
    78     QSound mSound;
    77 };
    79 };
    78 
    80 
    79 #endif // CXUISELFTIMER_H
    81 #endif // CXUISELFTIMER_H