3
<TITLE>Source: toresultlabel.h</TITLE>
5
<META NAME="Generator" CONTENT="KDOC ">
7
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
8
<TABLE WIDTH="100%" BORDER="0">
12
<TR><TD valign="top" align="left" cellspacing="10">
13
<h1>Source: toresultlabel.h</h1>
15
<TD valign="top" align="right" colspan="1"></TD></TR>
22
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
23
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
24
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
25
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
26
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
27
</TABLE></TD></TR></TABLE>
31
* TOra - An Oracle Toolkit for DBA's and developers
32
* Copyright (C) 2003-2005 Quest Software, Inc
33
* Portions Copyright (C) 2005 Other Contributors
35
* This program is free software; you can redistribute it and/or
36
* modify it under the terms of the GNU General Public License
37
* as published by the Free Software Foundation; only version 2 of
38
* the License is valid for this program.
40
* This program is distributed in the hope that it will be useful,
41
* but WITHOUT ANY WARRANTY; without even the implied warranty of
42
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43
* GNU General Public License for more details.
45
* You should have received a copy of the GNU General Public License
46
* along with this program; if not, write to the Free Software
47
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
49
* As a special exception, you have permission to link this program
50
* with the Oracle Client libraries and distribute executables, as long
51
* as you follow the requirements of the GNU GPL in regard to all of the
52
* software in the executable aside from Oracle client libraries.
54
* Specifically you are not permitted to link this program with the
55
* Qt/UNIX, Qt/Windows or Qt Non Commercial products of TrollTech.
56
* And you are not permitted to distribute binaries compiled against
57
* these libraries without written consent from Quest Software, Inc.
58
* Observe that this does not disallow linking to the Qt Free Edition.
60
* You may link this product with any GPL'd Qt library such as Qt/Free
62
* All trademarks belong to their respective owners.
66
#ifndef TORESULTLABEL_H
67
#define TORESULTLABEL_H
69
#include "tobackground.h"
77
/** This widget displays the result of a query where each item in the stream
78
* is added to a label separated by an optional string.
81
class toResultLabel : public QLabel, public toResult {
84
toNoBlockQuery *Query;
90
/** Create the widget.
91
* @param parent Parent widget.
92
* @param name Name of widget.
94
toResultLabel(QWidget *parent,const char *name=NULL);
99
/** Reimplemented for internal reasons.
101
virtual void query(const QString &sql,const toQList ¶m);
103
/** Handle any connection by default
105
virtual bool canHandle(toConnection &)
108
/** Get separator string to use between result.
110
const QString &separator(void) const
111
{ return Separator; }
112
/** Set separator string to use between result.
114
void setSeparator(const QString &sep)
117
// Why are these needed?
119
/** Set the SQL statement of this list
120
* @param sql String containing statement.
122
void setSQL(const QString &sql)
123
{ toResult::setSQL(sql); }
124
/** Set the SQL statement of this list. This will also affect @ref Name.
125
* @param sql SQL containing statement.
127
void setSQL(const toSQL &sql)
128
{ toResult::setSQL(sql); }
129
/** Set new SQL and run query.
130
* @param sql New sql.
133
void query(const QString &sql)
134
{ toResult::query(sql); }
135
/** Set new SQL and run query.
136
* @param sql New sql.
139
void query(const toSQL &sql)
140
{ toResult::query(sql); }
141
/** Set new SQL and run query.
142
* @param sql New sql.
145
void query(const toSQL &sql,toQList &par)
146
{ toResult::query(sql,par); }
149
/** Reimplemented for internal reasons.
151
virtual void refresh(void)
152
{ toResult::refresh(); }
153
/** Reimplemented for internal reasons.
155
virtual void changeParams(const QString &Param1)
156
{ toResult::changeParams(Param1); }
157
/** Reimplemented For internal reasons.
159
virtual void changeParams(const QString &Param1,const QString &Param2)
160
{ toResult::changeParams(Param1,Param2); }
161
/** Reimplemented for internal reasons.
163
virtual void changeParams(const QString &Param1,const QString &Param2,const QString &Param3)
164
{ toResult::changeParams(Param1,Param2,Param3); }
173
<tr><td><small>Generated by: nneul on skyhawk on Wed Feb 23 19:49:58 2005, using kdoc 2.0a54.</small></td></tr>