~ubuntu-branches/ubuntu/quantal/qtmobility/quantal

« back to all changes in this revision

Viewing changes to doc/html/audiodevices-main-cpp.html

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-11-16 16:18:07 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20101116161807-k2dzt2nyse975r3l
Tags: 1.1.0-0ubuntu1
* New upstream release
* Syncronise with Debian, no remaining changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
 
4
<head>
 
5
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
6
  <title>Qt Mobility 1.1: main.cpp Example File (audiodevices/main.cpp)</title>
 
7
  <link rel="stylesheet" type="text/css" href="style/style.css"
 
8
 />  <!--[if IE]>
 
9
<meta name="MSSmartTagsPreventParsing" content="true">
 
10
<meta http-equiv="imagetoolbar" content="no">
 
11
<![endif]-->
 
12
<!--[if lt IE 7]>
 
13
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
 
14
<![endif]-->
 
15
<!--[if IE 7]>
 
16
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
 
17
<![endif]-->
 
18
<!--[if IE 8]>
 
19
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
 
20
<![endif]-->
 
21
  <script src="scripts/jquery.js" type="text/javascript"></script>
 
22
  <script src="scripts/functions.js" type="text/javascript"></script>
 
23
 <script src="./scripts/superfish.js" type="text/javascript"></script>
 
24
 <script src="./scripts/narrow.js" type="text/javascript"></script>
 
25
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />  <link rel="stylesheet" type="text/css" href="style/narrow.css" /></head>
 
26
<body class="" onload="CheckEmptyAndLoadList();">
 
27
 <div class="header" id="qtdocheader">
 
28
    <div class="content"> 
 
29
    <div id="nav-logo">
 
30
      <a href="index.html">Home</a></div>
 
31
    <a href="index.html" class="qtref"><span>Qt Mobility Reference Documentation</span></a>
 
32
                <div id="narrowsearch"><form onsubmit="return false;" action="" id="qtdocsearchTop">
 
33
                <fieldset>
 
34
                <input type="text" value="" id="pageType2" name="searchstring"/>
 
35
                 </fieldset>
 
36
                </form></div>
 
37
    <div id="nav-topright">
 
38
      <ul>
 
39
        <li class="nav-topright-home"><a href="http://qt.nokia.com/">Qt HOME</a></li>
 
40
        <li class="nav-topright-dev"><a href="http://developer.qt.nokia.com/">DEV</a></li>
 
41
        <li class="nav-topright-labs"><a href="http://labs.qt.nokia.com/blogs/">LABS</a></li>
 
42
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://doc.qt.nokia.com/">
 
43
          DOC</a></li>
 
44
        <li class="nav-topright-blog"><a href="http://blog.qt.nokia.com/">BLOG</a></li>
 
45
      </ul>
 
46
    </div>
 
47
    <div id="shortCut">
 
48
      <ul>
 
49
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Mobility 1.1</a></span></li>
 
50
        <li class="shortCut-topleft-active"><a href="http://doc.qt.nokia.com">ALL VERSIONS        </a></li>
 
51
      </ul>
 
52
     </div>
 
53
 <ul class="sf-menu sf-js-enabled sf-shadow" id="narrowmenu"> 
 
54
                 <li><a href="#">API Lookup</a> 
 
55
                         <ul id="topmenuLook"> 
 
56
                           <li><a href="classes.html">Class index</a></li> 
 
57
                          <li><a href="functions.html">Function index</a></li> 
 
58
                           <li><a href="modules.html">Modules</a></li> 
 
59
                           </ul> 
 
60
                 </li> 
 
61
                 <li><a href="#">Examples</a> 
 
62
                         <ul id="topmenuexample"> 
 
63
                                 <li><a href="all-examples.html">Examples</a></li> 
 
64
                         </ul> 
 
65
                 </li> 
 
66
 </ul> 
 
67
    </div>
 
68
  </div>
 
69
  <div class="wrapper">
 
70
    <div class="hd">
 
71
      <span></span>
 
72
    </div>
 
73
    <div class="bd group">
 
74
      <div class="sidebar">
 
75
        <div class="searchlabel">
 
76
          Search index:</div>
 
77
        <div class="search">
 
78
          <form id="qtdocsearch" action="" onsubmit="return false;">
 
79
            <fieldset>
 
80
              <input type="text" name="searchstring" id="pageType" value="" />
 
81
            </fieldset>
 
82
          </form>
 
83
        </div>
 
84
        <div class="box first bottombar" id="lookup">
 
85
          <h2 title="API Lookup"><span></span>
 
86
            API Lookup</h2>
 
87
          <div  id="list001" class="list">
 
88
          <ul id="ul001" >
 
89
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
 
90
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
 
91
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
 
92
              <li class="defaultLink"><a href="index.html#platform-compatibility">Platform Compatibility</a></li>
 
93
              <li class="defaultLink"><a href="qml-plugins.html">QML Plugins</a></li>
 
94
            </ul> 
 
95
          </div>
 
96
        </div>
 
97
        <div class="box bottombar" id="topics">
 
98
          <h2 title="Qt Topics"><span></span>
 
99
            Qt Topics</h2>
 
100
          <div id="list002" class="list">
 
101
            <ul id="ul002" >
 
102
              <li class="defaultLink"><a href="http://doc.qt.nokia.com/4.7-snapshot/">Qt 4.7</a></li>
 
103
              <li class="defaultLink"><a href="http://doc.qt.nokia.com/4.7-snapshot/qt-basic-concepts.html">Basic Qt architecture</a></li>
 
104
              <li class="defaultLink"><a href="http://doc.qt.nokia.com/4.7-snapshot/declarativeui.html">Device UI's &amp; Qt Quick</a></li>
 
105
              <li class="defaultLink"><a href="http://doc.qt.nokia.com/4.7-snapshot/qt-gui-concepts.html">Desktop UI components</a></li>
 
106
              <li class="defaultLink"><a href="http://doc.qt.nokia.com/4.7-snapshot/platform-specific.html">Platform-specific info</a></li>
 
107
            </ul>  
 
108
          </div>
 
109
        </div>
 
110
        <div class="box" id="examples">
 
111
          <h2 title="Examples"><span></span>
 
112
            Examples</h2>
 
113
          <div id="list003" class="list">
 
114
        <ul id="ul003">
 
115
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
 
116
            </ul> 
 
117
          </div>
 
118
        </div>
 
119
      </div>
 
120
      <div class="wrap">
 
121
        <div class="toolbar">
 
122
          <div class="breadcrumb toolblock">
 
123
            <ul>
 
124
              <li class="first"><a href="index.html">Home</a></li>
 
125
              <!--  Bread crumbs goes here -->
 
126
            </ul>
 
127
          </div>
 
128
          <div class="toolbuttons toolblock">
 
129
            <ul>
 
130
              <li id="smallA" class="t_button">A</li>
 
131
              <li id="medA" class="t_button active">A</li>
 
132
              <li id="bigA" class="t_button">A</li>
 
133
              <li id="print" class="t_button"><a href="javascript:this.print();">
 
134
                <span>Print</span></a></li>
 
135
            </ul>
 
136
          </div>
 
137
        </div>
 
138
        <div class="content">
 
139
<h1 class="title">main.cpp Example File</h1>
 
140
<span class="small-subtitle">audiodevices/main.cpp</span>
 
141
<div class="descr"/>
 
142
<pre class="highlightedCode brush: cpp"><span class="comment"> /****************************************************************************
 
143
 **
 
144
 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
 
145
 ** All rights reserved.
 
146
 ** Contact: Nokia Corporation (qt-info@nokia.com)
 
147
 **
 
148
 ** This file is part of the examples of the Qt Toolkit.
 
149
 **
 
150
 ** $QT_BEGIN_LICENSE:LGPL$
 
151
 ** Commercial Usage
 
152
 ** Licensees holding valid Qt Commercial licenses may use this file in
 
153
 ** accordance with the Qt Commercial License Agreement provided with
 
154
 ** the Software or, alternatively, in accordance with the terms
 
155
 ** contained in a written agreement between you and Nokia.
 
156
 **
 
157
 ** GNU Lesser General Public License Usage
 
158
 ** Alternatively, this file may be used under the terms of the GNU Lesser
 
159
 ** General Public License version 2.1 as published by the Free Software
 
160
 ** Foundation and appearing in the file LICENSE.LGPL included in the
 
161
 ** packaging of this file.  Please review the following information to
 
162
 ** ensure the GNU Lesser General Public License version 2.1 requirements
 
163
 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
 
164
 **
 
165
 ** In addition, as a special exception, Nokia gives you certain additional
 
166
 ** rights.  These rights are described in the Nokia Qt LGPL Exception
 
167
 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
 
168
 **
 
169
 ** GNU General Public License Usage
 
170
 ** Alternatively, this file may be used under the terms of the GNU
 
171
 ** General Public License version 3.0 as published by the Free Software
 
172
 ** Foundation and appearing in the file LICENSE.GPL included in the
 
173
 ** packaging of this file.  Please review the following information to
 
174
 ** ensure the GNU General Public License version 3.0 requirements will be
 
175
 ** met: http://www.gnu.org/copyleft/gpl.html.
 
176
 **
 
177
 ** If you are unsure which license is appropriate for your use, please
 
178
 ** contact the sales department at qt-sales@nokia.com.
 
179
 ** $QT_END_LICENSE$
 
180
 **
 
181
 ****************************************************************************/</span>
 
182
 
 
183
 #include &lt;QtGui&gt;
 
184
 
 
185
 #include &quot;audiodevices.h&quot;
 
186
 
 
187
 int main(int argv, char **args)
 
188
 {
 
189
     QApplication app(argv, args);
 
190
     app.setApplicationName(&quot;Audio Device Test&quot;);
 
191
 
 
192
     AudioTest audio;
 
193
 #ifdef Q_OS_SYMBIAN
 
194
     audio.showMaximized();
 
195
 #else
 
196
     audio.show();
 
197
 #endif
 
198
 
 
199
     return app.exec();
 
200
 }</pre>
 
201
</div>
 
202
        <!-- /div -->
 
203
        <div class="feedback t_button">
 
204
          [+] Documentation Feedback</div>
 
205
      </div>
 
206
    </div>
 
207
    <div class="ft">
 
208
      <span></span>
 
209
    </div>
 
210
  </div> 
 
211
  </div> 
 
212
  <div class="footer">
 
213
    <p>
 
214
      <acronym title="Copyright">&copy;</acronym> 2008-2010 Nokia Corporation and/or its
 
215
      subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation 
 
216
      in Finland and/or other countries worldwide.</p>
 
217
    <p>
 
218
      All other trademarks are property of their respective owners. <a title="Privacy Policy"
 
219
        href="http://qt.nokia.com/about/privacy-policy">Privacy Policy</a></p>
 
220
  </div>
 
221
  <div id="feedbackBox">
 
222
      <div id="feedcloseX" class="feedclose t_button">X</div>
 
223
    <form id="feedform" action="http://doc.qt.nokia.com/docFeedbck/feedback.php" method="get">
 
224
      <p id="noteHead">Thank you for giving your feedback.</p> <div class="note"><p>Make sure it is related to this specific page. For more general bugs and 
 
225
      requests, please use the <a href="http://bugreports.qt.nokia.com/secure/Dashboard.jspa">Qt Bug Tracker</a>.</p></div>
 
226
      <p><textarea id="feedbox" name="feedText" rows="5" cols="40"></textarea></p>
 
227
      <p><input id="feedsubmit" class="feedclose" type="submit" name="feedback" /></p>
 
228
    </form>
 
229
  </div>
 
230
  <div id="blurpage">
 
231
  </div>
 
232
  </div>
 
233
  <script src="scripts/functions.js" type="text/javascript"></script>
 
234
</body>
 
235
</html>