~ubuntu-branches/ubuntu/wily/tora/wily-proposed

« back to all changes in this revision

Viewing changes to doc/help/api/toresultlabel_h.html

  • Committer: Bazaar Package Importer
  • Author(s): Albin Tonnerre
  • Date: 2007-05-29 13:13:36 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070529131336-85ygaddivvmkd3xc
Tags: 1.3.21pre22-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - debian/rules: call dh_iconcache
  - Remove g++ build dependency
* Modify Maintainer value to match Debian-Maintainer-Field Spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<HTML>
 
2
<HEAD>
 
3
<TITLE>Source: toresultlabel.h</TITLE>
 
4
 
 
5
<META NAME="Generator" CONTENT="KDOC ">
 
6
</HEAD>
 
7
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
 
8
<TABLE WIDTH="100%" BORDER="0">
 
9
<TR>
 
10
<TD>
 
11
        <TABLE BORDER="0">
 
12
                <TR><TD valign="top" align="left" cellspacing="10">
 
13
                <h1>Source: toresultlabel.h</h1>
 
14
                </TD>
 
15
                <TD valign="top" align="right" colspan="1"></TD></TR>
 
16
        </TABLE>
 
17
        <HR>
 
18
        <TABLE BORDER="0">
 
19
                
 
20
        </TABLE>
 
21
        </TD>
 
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>
 
28
<pre>
 
29
/*****
 
30
 *
 
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
 
34
 * 
 
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.
 
39
 * 
 
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.
 
44
 * 
 
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.
 
48
 *
 
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.
 
53
 *
 
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.
 
59
 *
 
60
 *      You may link this product with any GPL'd Qt library such as Qt/Free
 
61
 *
 
62
 * All trademarks belong to their respective owners.
 
63
 *
 
64
 *****/
 
65
 
 
66
#ifndef TORESULTLABEL_H
 
67
#define TORESULTLABEL_H
 
68
 
 
69
#include "tobackground.h"
 
70
#include "toresult.h"
 
71
 
 
72
#include <qlabel.h>
 
73
 
 
74
class toNoBlockQuery;
 
75
class toSQL;
 
76
 
 
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.
 
79
 */
 
80
 
 
81
class toResultLabel : public QLabel, public toResult {
 
82
  Q_OBJECT
 
83
 
 
84
  toNoBlockQuery *Query;
 
85
  toBackground Poll;
 
86
 
 
87
  QString Separator;
 
88
 
 
89
public:
 
90
  /** Create the widget.
 
91
   * @param parent Parent widget.
 
92
   * @param name Name of widget.
 
93
   */
 
94
  toResultLabel(QWidget *parent,const char *name=NULL);
 
95
  /** Destruct object
 
96
   */
 
97
  ~toResultLabel();
 
98
 
 
99
  /** Reimplemented for internal reasons.
 
100
   */
 
101
  virtual void query(const QString &sql,const toQList &param);
 
102
 
 
103
  /** Handle any connection by default
 
104
   */
 
105
  virtual bool canHandle(toConnection &)
 
106
  { return true; }
 
107
 
 
108
  /** Get separator string to use between result.
 
109
   */
 
110
  const QString &separator(void) const
 
111
  { return Separator; }
 
112
  /** Set separator string to use between result.
 
113
   */
 
114
  void setSeparator(const QString &sep)
 
115
  { Separator=sep; }
 
116
 
 
117
  // Why are these needed?
 
118
#if 1
 
119
  /** Set the SQL statement of this list
 
120
   * @param sql String containing statement.
 
121
   */
 
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.
 
126
   */
 
127
  void setSQL(const toSQL &sql)
 
128
  { toResult::setSQL(sql); }
 
129
  /** Set new SQL and run query.
 
130
   * @param sql New sql.
 
131
   * @see setSQL
 
132
   */
 
133
  void query(const QString &sql)
 
134
  { toResult::query(sql); }
 
135
  /** Set new SQL and run query.
 
136
   * @param sql New sql.
 
137
   * @see setSQL
 
138
   */
 
139
  void query(const toSQL &sql)
 
140
  { toResult::query(sql); }
 
141
  /** Set new SQL and run query.
 
142
   * @param sql New sql.
 
143
   * @see setSQL
 
144
   */
 
145
  void query(const toSQL &sql,toQList &par)
 
146
  { toResult::query(sql,par); }
 
147
#endif
 
148
public slots:
 
149
  /** Reimplemented for internal reasons.
 
150
   */
 
151
  virtual void refresh(void)
 
152
  { toResult::refresh(); }
 
153
  /** Reimplemented for internal reasons.
 
154
   */
 
155
  virtual void changeParams(const QString &Param1)
 
156
  { toResult::changeParams(Param1); }
 
157
  /** Reimplemented For internal reasons.
 
158
   */
 
159
  virtual void changeParams(const QString &Param1,const QString &Param2)
 
160
  { toResult::changeParams(Param1,Param2); }
 
161
  /** Reimplemented for internal reasons.
 
162
   */
 
163
  virtual void changeParams(const QString &Param1,const QString &Param2,const QString &Param3)
 
164
  { toResult::changeParams(Param1,Param2,Param3); }
 
165
private slots:
 
166
  void poll(void);
 
167
};
 
168
 
 
169
#endif
 
170
</pre>
 
171
<HR>
 
172
        <table>
 
173
        <tr><td><small>Generated by: nneul on skyhawk on Wed Feb 23 19:49:58 2005, using kdoc 2.0a54.</small></td></tr>
 
174
        </table>
 
175
</BODY>
 
176
</HTML>