qtmobility/examples/audiorecorder/audiorecorder.h
changeset 14 6fbed849b4f4
parent 11 06b8e2af4411
equal deleted inserted replaced
11:06b8e2af4411 14:6fbed849b4f4
    65 private:
    65 private:
    66     QUrl recordPathAudio(QUrl filePath);
    66     QUrl recordPathAudio(QUrl filePath);
    67     void updateSamplerates(int idx);
    67     void updateSamplerates(int idx);
    68     void updateChannelCount(int idx);
    68     void updateChannelCount(int idx);
    69     void updateQuality(int idx);
    69     void updateQuality(int idx);
       
    70     static inline void swap(QString& a, QString& b){qSwap(a,b);}
    70     
    71     
    71 private slots:
    72 private slots:
    72     void deviceChanged(int idx);
    73     void deviceChanged(int idx);
    73     void containerChanged(int idx);
    74     void containerChanged(int idx);
    74     void codecChanged(int idx);
    75     void codecChanged(int idx);
    75     void qualityChanged(int idx);
    76     void qualityChanged(int idx);
    76     void sampleRateChanged(int idx);
    77     void sampleRateChanged(int idx);
    77     void channelCountChanged(int idx);
    78     void channelCountChanged(int idx);
       
    79     void encmodeChanged(int idx);
    78     void selectOutputFile();
    80     void selectOutputFile();
    79     void togglePause();
    81     void togglePause();
    80     void toggleRecord();
    82     void toggleRecord();
    81     void stateChanged(QMediaRecorder::State);
    83     void stateChanged(QMediaRecorder::State);
    82     void updateProgress(qint64 pos);
    84     void updateProgress(qint64 pos);
    90     QComboBox*     containersBox;
    92     QComboBox*     containersBox;
    91     QComboBox*     codecsBox;
    93     QComboBox*     codecsBox;
    92     QComboBox*     qualityBox;
    94     QComboBox*     qualityBox;
    93     QComboBox*     sampleRateBox; 
    95     QComboBox*     sampleRateBox; 
    94     QComboBox*     channelBox;
    96     QComboBox*     channelBox;
       
    97     QComboBox*     encModeBox;
    95     QLabel*        recTime;
    98     QLabel*        recTime;
    96     QLabel*        statusLabel;
    99     QLabel*        statusLabel;
    97     QPushButton*   button;
   100     QPushButton*   button;
    98     QPushButton*   fileButton;
   101     QPushButton*   fileButton;
    99     QPushButton*   pauseButton;
   102     QPushButton*   pauseButton;