examples/multimedia/audioinput/audioinput.h
branchRCL_3
changeset 4 3b1da2848fc7
parent 0 1918ee327afb
child 7 3f74d0d4af4c
--- a/examples/multimedia/audioinput/audioinput.h	Tue Feb 02 00:43:10 2010 +0200
+++ b/examples/multimedia/audioinput/audioinput.h	Fri Feb 19 23:40:16 2010 +0200
@@ -1,6 +1,6 @@
 /****************************************************************************
 **
-** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
 ** All rights reserved.
 ** Contact: Nokia Corporation (qt-info@nokia.com)
 **
@@ -52,7 +52,7 @@
 {
     Q_OBJECT
 public:
-    AudioInfo(QObject* parent, QAudioInput* device);
+    AudioInfo(QObject *parent, QAudioInput *device);
     ~AudioInfo();
 
     void start();
@@ -63,7 +63,7 @@
     qint64 readData(char *data, qint64 maxlen);
     qint64 writeData(const char *data, qint64 len);
 
-    QAudioInput*   input;
+    QAudioInput *input;
 
 private:
     int m_maxValue;
@@ -97,21 +97,6 @@
     InputTest();
     ~InputTest();
 
-    QAudioDeviceInfo device;
-    QAudioFormat   format;
-    QAudioInput*   audioInput;
-    AudioInfo*     audioinfo;
-    QIODevice*     input;
-    RenderArea*    canvas;
-
-    bool           pullMode;
-
-    QPushButton*   button;
-    QPushButton*   button2;
-    QComboBox*     deviceBox;
-
-    char*          buffer;
-
 private slots:
     void refreshDisplay();
     void status();
@@ -120,5 +105,21 @@
     void toggleSuspend();
     void state(QAudio::State s);
     void deviceChanged(int idx);
+
+private:
+    AudioInfo *audioinfo;
+    QAudioDeviceInfo device;
+    QAudioFormat format;
+    QAudioInput *audioInput;
+    QIODevice *input;
+    RenderArea *canvas;
+
+    bool pullMode;
+
+    QPushButton *button;
+    QPushButton *button2;
+    QComboBox *deviceBox;
+
+    char *buffer;
 };