summaryrefslogtreecommitdiffstats
path: root/doc/html/sql.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/sql.html')
-rw-r--r--doc/html/sql.html58
1 files changed, 29 insertions, 29 deletions
diff --git a/doc/html/sql.html b/doc/html/sql.html
index 4b6ce21a1..9a9aa90d1 100644
--- a/doc/html/sql.html
+++ b/doc/html/sql.html
@@ -232,13 +232,13 @@ the driver, set up the connection information, and open the
connection.
<p>
-<pre> #include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+<pre> #include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqsqldatabase-h.html">tqsqldatabase.h</a>&gt;
#include "../connection.h"
int main( int argc, char *argv[] )
{
- <a href="ntqapplication.html">TQApplication</a> app( argc, argv, FALSE );
+ <a href="tqapplication.html">TQApplication</a> app( argc, argv, FALSE );
<a name="x2141"></a> <a href="tqsqldatabase.html">TQSqlDatabase</a> *defaultDB = TQSqlDatabase::<a href="tqsqldatabase.html#addDatabase">addDatabase</a>( DB_SALES_DRIVER );
<a name="x2143"></a> defaultDB-&gt;<a href="tqsqldatabase.html#setDatabaseName">setDatabaseName</a>( DB_SALES_DBNAME );
@@ -313,7 +313,7 @@ function in <tt>connection.h</tt>.
<a name="x2152"></a> defaultDB-&gt;<a href="tqsqldatabase.html#setPassword">setPassword</a>( DB_SALES_PASSWD );
<a name="x2151"></a> defaultDB-&gt;<a href="tqsqldatabase.html#setHostName">setHostName</a>( DB_SALES_HOST );
<a name="x2149"></a> if ( ! defaultDB-&gt;<a href="tqsqldatabase.html#open">open</a>() ) {
- <a name="x2148"></a> <a href="ntqapplication.html#qWarning">tqWarning</a>( "Failed to open sales database: " + defaultDB-&gt;<a href="tqsqldatabase.html#lastError">lastError</a>().text() );
+ <a name="x2148"></a> <a href="tqapplication.html#qWarning">tqWarning</a>( "Failed to open sales database: " + defaultDB-&gt;<a href="tqsqldatabase.html#lastError">lastError</a>().text() );
return FALSE;
}
@@ -323,7 +323,7 @@ function in <tt>connection.h</tt>.
oracle-&gt;<a href="tqsqldatabase.html#setPassword">setPassword</a>( DB_ORDERS_PASSWD );
oracle-&gt;<a href="tqsqldatabase.html#setHostName">setHostName</a>( DB_ORDERS_HOST );
if ( ! oracle-&gt;<a href="tqsqldatabase.html#open">open</a>() ) {
- <a href="ntqapplication.html#qWarning">tqWarning</a>( "Failed to open orders database: " + oracle-&gt;<a href="tqsqldatabase.html#lastError">lastError</a>().text() );
+ <a href="tqapplication.html#qWarning">tqWarning</a>( "Failed to open orders database: " + oracle-&gt;<a href="tqsqldatabase.html#lastError">lastError</a>().text() );
return FALSE;
}
@@ -349,13 +349,13 @@ function in <tt>connection.h</tt>.
<p> <a name="create_connections"></a>
-<pre> #include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+<pre> #include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqsqldatabase-h.html">tqsqldatabase.h</a>&gt;
#include "../connection.h"
int main( int argc, char *argv[] )
{
- <a href="ntqapplication.html">TQApplication</a> app( argc, argv, FALSE );
+ <a href="tqapplication.html">TQApplication</a> app( argc, argv, FALSE );
if ( createConnections() ) {
// Databases successfully opened; get pointers to them:
@@ -411,14 +411,14 @@ the transaction, and then either <a href="tqsqldatabase.html#commit">TQSqlDataba
</h3>
<a name="6-2"></a><p>
-<pre> #include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+<pre> #include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqsqldatabase-h.html">tqsqldatabase.h</a>&gt;
#include &lt;<a href="tqsqlquery-h.html">tqsqlquery.h</a>&gt;
#include "../connection.h"
int main( int argc, char *argv[] )
{
- <a href="ntqapplication.html">TQApplication</a> app( argc, argv, FALSE );
+ <a href="tqapplication.html">TQApplication</a> app( argc, argv, FALSE );
if ( createConnections() ) {
<a name="x2156"></a> <a href="tqsqldatabase.html">TQSqlDatabase</a> *oracledb = TQSqlDatabase::<a href="tqsqldatabase.html#database">database</a>( "ORACLE" );
@@ -486,7 +486,7 @@ cannot be determined, e.g. if the query fails.
**
*****************************************************************************/
- #include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+ #include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqsqldatabase-h.html">tqsqldatabase.h</a>&gt;
#include &lt;<a href="tqsqlquery-h.html">tqsqlquery.h</a>&gt;
#include "../connection.h"
@@ -495,7 +495,7 @@ cannot be determined, e.g. if the query fails.
int main( int argc, char *argv[] )
{
- <a href="ntqapplication.html">TQApplication</a> app( argc, argv, FALSE );
+ <a href="tqapplication.html">TQApplication</a> app( argc, argv, FALSE );
int rows = 0;
@@ -569,7 +569,7 @@ retrieve data from it.
<a href="tqsqlquery.html">TQSqlQuery</a> query( "SELECT id, surname FROM staff" );
<a name="x2175"></a> if ( query.<a href="tqsqlquery.html#isActive">isActive</a>() ) {
<a name="x2176"></a> while ( query.<a href="tqsqlquery.html#next">next</a>() ) {
- <a href="ntqapplication.html#qDebug">tqDebug</a>( query.<a href="tqsqlquery.html#value">value</a>(0).toString() + ": " +
+ <a href="tqapplication.html#qDebug">tqDebug</a>( query.<a href="tqsqlquery.html#value">value</a>(0).toString() + ": " +
<a name="x2177"></a> query.<a href="tqsqlquery.html#value">value</a>(1).toString() );
}
}
@@ -627,20 +627,20 @@ discuss <a href="#Subclassing_QSqlCursor">subclassing TQSqlCursor</a>.
</h3>
<a name="7-1"></a><p>
-<pre> #include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+<pre> #include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqsqldatabase-h.html">tqsqldatabase.h</a>&gt;
#include &lt;<a href="tqsqlcursor-h.html">tqsqlcursor.h</a>&gt;
#include "../connection.h"
int main( int argc, char *argv[] )
{
- <a href="ntqapplication.html">TQApplication</a> app( argc, argv );
+ <a href="tqapplication.html">TQApplication</a> app( argc, argv );
if ( createConnections() ) {
<a href="tqsqlcursor.html">TQSqlCursor</a> cur( "staff" ); // Specify the table/view name
<a name="x2178"></a> cur.<a href="tqsqlcursor.html#select">select</a>(); // We'll retrieve every record
while ( cur.<a href="tqsqlquery.html#next">next</a>() ) {
- <a name="x2179"></a> <a href="ntqapplication.html#qDebug">tqDebug</a>( cur.<a href="tqsqlquery.html#value">value</a>( "id" ).toString() + ": " +
+ <a name="x2179"></a> <a href="tqapplication.html#qDebug">tqDebug</a>( cur.<a href="tqsqlquery.html#value">value</a>( "id" ).toString() + ": " +
cur.<a href="tqsqlquery.html#value">value</a>( "surname" ).toString() + " " +
cur.<a href="tqsqlquery.html#value">value</a>( "salary" ).toString() );
}
@@ -779,7 +779,7 @@ setValue() to ensure that the value used is the one we want.
<a name="x2191"></a> int id = cur.<a href="tqsqlquery.html#value">value</a>( "id" ).toInt();
<a href="tqstring.html">TQString</a> name = cur.<a href="tqsqlquery.html#value">value</a>( "forename" ).toString() + " " +
cur.<a href="tqsqlquery.html#value">value</a>( "surname" ).toString();
- <a name="x2193"></a> <a href="ntqapplication.html#qDebug">tqDebug</a>( TQString::<a href="tqstring.html#number">number</a>( id ) + ": " + name );
+ <a name="x2193"></a> <a href="tqapplication.html#qDebug">tqDebug</a>( TQString::<a href="tqstring.html#number">number</a>( id ) + ": " + name );
}
</pre><blockquote><p align="center"><em> From <a href="sql-overview-extract-main-cpp.html">sql/overview/extract/main.cpp</a>
</em></p>
@@ -803,7 +803,7 @@ values ourselves with the setValue() calls. The order fields are used
in the <tt>ORDER BY</tt> clause.
<p> Now we iterate through each matching record (if any). We retrieve the
contents of the id, forename and surname fields and pass them on to
-some processing function, in this example a simple <a href="ntqapplication.html#qDebug">tqDebug</a>() call.
+some processing function, in this example a simple <a href="tqapplication.html#qDebug">tqDebug</a>() call.
<p> <a name="Manipulating_Records"></a>
<h3> Manipulating Records
</h3>
@@ -949,7 +949,7 @@ examples provides additional information.
</h3>
<a name="8-1"></a><p>
-<pre> #include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+<pre> #include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqsqldatabase-h.html">tqsqldatabase.h</a>&gt;
#include &lt;<a href="tqsqlcursor-h.html">tqsqlcursor.h</a>&gt;
#include &lt;<a href="tqdatatable-h.html">tqdatatable.h</a>&gt;
@@ -957,16 +957,16 @@ examples provides additional information.
int main( int argc, char *argv[] )
{
- <a href="ntqapplication.html">TQApplication</a> app( argc, argv );
+ <a href="tqapplication.html">TQApplication</a> app( argc, argv );
if ( createConnections() ) {
<a href="tqsqlcursor.html">TQSqlCursor</a> staffCursor( "staff" );
<a href="tqdatatable.html">TQDataTable</a> *staffTable = new <a href="tqdatatable.html">TQDataTable</a>( &amp;staffCursor, TRUE );
- app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( staffTable );
+ app.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( staffTable );
<a name="x2211"></a> staffTable-&gt;<a href="tqdatatable.html#refresh">refresh</a>();
staffTable-&gt;<a href="tqwidget.html#show">show</a>();
- return app.<a href="ntqapplication.html#exec">exec</a>();
+ return app.<a href="tqapplication.html#exec">exec</a>();
}
return 0;
@@ -987,7 +987,7 @@ function.
<pre> <a href="tqsqlcursor.html">TQSqlCursor</a> staffCursor( "staff" );
<a href="tqdatatable.html">TQDataTable</a> *staffTable = new <a href="tqdatatable.html">TQDataTable</a>( &amp;staffCursor );
- app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( staffTable );
+ app.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( staffTable );
<a name="x2214"></a> staffTable-&gt;<a href="tqdatatable.html#addColumn">addColumn</a>( "forename", "Forename" );
staffTable-&gt;<a href="tqdatatable.html#addColumn">addColumn</a>( "surname", "Surname" );
@@ -1022,7 +1022,7 @@ the code below can be automatically generated by <a href="designer-manual.html">
</h4>
<a name="8-2-1"></a><p>
-<pre> #include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+<pre> #include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqdialog-h.html">tqdialog.h</a>&gt;
#include &lt;<a href="tqlabel-h.html">tqlabel.h</a>&gt;
#include &lt;<a href="tqlayout-h.html">tqlayout.h</a>&gt;
@@ -1070,15 +1070,15 @@ the code below can be automatically generated by <a href="designer-manual.html">
int main( int argc, char *argv[] )
{
- <a href="ntqapplication.html">TQApplication</a> app( argc, argv );
+ <a href="tqapplication.html">TQApplication</a> app( argc, argv );
if ( ! createConnections() ) return 1;
FormDialog *formDialog = new FormDialog();
<a name="x2220"></a> formDialog-&gt;<a href="tqdialog.html#show">show</a>();
- app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( formDialog );
+ app.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( formDialog );
- return app.<a href="ntqapplication.html#exec">exec</a>();
+ return app.<a href="tqapplication.html#exec">exec</a>();
}
</pre><blockquote><p align="center"><em> From <a href="sql-overview-form1-main-cpp.html">sql/overview/form1/main.cpp</a>
</em></p>
@@ -1420,7 +1420,7 @@ staffTable from being a TQDataTable to being a CustomTable.
</h2>
<a name="9"></a><p>
-<pre> #include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+<pre> #include &lt;<a href="tqapplication-h.html">tqapplication.h</a>&gt;
#include &lt;<a href="tqsqldatabase-h.html">tqsqldatabase.h</a>&gt;
#include &lt;<a href="tqsqlcursor-h.html">tqsqlcursor.h</a>&gt;
#include &lt;<a href="tqdatatable-h.html">tqdatatable.h</a>&gt;
@@ -1428,14 +1428,14 @@ staffTable from being a TQDataTable to being a CustomTable.
int main( int argc, char *argv[] )
{
- <a href="ntqapplication.html">TQApplication</a> app( argc, argv );
+ <a href="tqapplication.html">TQApplication</a> app( argc, argv );
if ( createConnections() ) {
<a href="tqsqlcursor.html">TQSqlCursor</a> invoiceItemCursor( "invoiceitem" );
<a href="tqdatatable.html">TQDataTable</a> *invoiceItemTable = new <a href="tqdatatable.html">TQDataTable</a>( &amp;invoiceItemCursor );
- app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( invoiceItemTable );
+ app.<a href="tqapplication.html#setMainWidget">setMainWidget</a>( invoiceItemTable );
<a name="x2255"></a> invoiceItemTable-&gt;<a href="tqdatatable.html#addColumn">addColumn</a>( "pricesid", "PriceID" );
invoiceItemTable-&gt;<a href="tqdatatable.html#addColumn">addColumn</a>( "quantity", "Quantity" );
@@ -1444,7 +1444,7 @@ staffTable from being a TQDataTable to being a CustomTable.
<a name="x2256"></a> invoiceItemTable-&gt;<a href="tqdatatable.html#refresh">refresh</a>();
invoiceItemTable-&gt;<a href="tqwidget.html#show">show</a>();
- return app.<a href="ntqapplication.html#exec">exec</a>();
+ return app.<a href="tqapplication.html#exec">exec</a>();
}
return 1;