update singleapp for Qt5
This commit is contained in:
parent
55f063a0b2
commit
2c10012191
27 changed files with 1239 additions and 1413 deletions
189
thirdparty/singleapp/doc/html/classic.css
vendored
189
thirdparty/singleapp/doc/html/classic.css
vendored
|
@ -1,12 +1,105 @@
|
|||
BODY,H1,H2,H3,H4,H5,H6,P,CENTER,TD,TH,UL,DL,DIV {
|
||||
font-family: Arial, Geneva, Helvetica, sans-serif;
|
||||
}
|
||||
H1 {
|
||||
text-align: center;
|
||||
font-size: 160%;
|
||||
}
|
||||
H2 {
|
||||
font-size: 120%;
|
||||
}
|
||||
H3 {
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
h3.fn,span.fn
|
||||
{
|
||||
margin-left: 1cm;
|
||||
text-indent: -1cm;
|
||||
background-color: #eee;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #ddd;
|
||||
font-weight: bold;
|
||||
padding: 6px 0px 6px 10px;
|
||||
margin: 42px 0px 0px 0px;
|
||||
}
|
||||
|
||||
hr {
|
||||
border: 0;
|
||||
color: #a0a0a0;
|
||||
background-color: #ccc;
|
||||
height: 1px;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
margin: 34px 0px 34px 0px;
|
||||
}
|
||||
|
||||
table.valuelist {
|
||||
border-width: 1px 1px 1px 1px;
|
||||
border-style: solid;
|
||||
border-color: #dddddd;
|
||||
border-collapse: collapse;
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
table.indextable {
|
||||
border-width: 1px 1px 1px 1px;
|
||||
border-style: solid;
|
||||
border-collapse: collapse;
|
||||
background-color: #f0f0f0;
|
||||
border-color:#555;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
table td.largeindex {
|
||||
border-width: 1px 1px 1px 1px;
|
||||
border-collapse: collapse;
|
||||
background-color: #f0f0f0;
|
||||
border-color:#555;
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
table.valuelist th {
|
||||
border-width: 1px 1px 1px 2px;
|
||||
padding: 4px;
|
||||
border-style: solid;
|
||||
border-color: #666;
|
||||
color:white;
|
||||
background-color:#666;
|
||||
}
|
||||
|
||||
th.titleheader {
|
||||
border-width: 1px 0px 1px 0px;
|
||||
padding: 2px;
|
||||
border-style: solid;
|
||||
border-color: #666;
|
||||
color:white;
|
||||
background-color:#555;
|
||||
background-image:url('images/gradient.png')};
|
||||
background-repeat: repeat-x;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
|
||||
th.largeheader {
|
||||
border-width: 1px 0px 1px 0px;
|
||||
padding: 4px;
|
||||
border-style: solid;
|
||||
border-color: #444;
|
||||
color:white;
|
||||
background-color:#555555;
|
||||
font-size: 120%;
|
||||
}
|
||||
|
||||
p {
|
||||
|
||||
margin-left: 4px;
|
||||
margin-top: 8px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
a:link
|
||||
{
|
||||
color: #004faf;
|
||||
color: #0046ad;
|
||||
text-decoration: none
|
||||
}
|
||||
|
||||
|
@ -40,22 +133,40 @@ a.compat:visited
|
|||
text-decoration: none
|
||||
}
|
||||
|
||||
td.postheader
|
||||
{
|
||||
font-family: sans-serif
|
||||
}
|
||||
|
||||
tr.address
|
||||
{
|
||||
font-family: sans-serif
|
||||
}
|
||||
|
||||
body
|
||||
{
|
||||
background: #ffffff;
|
||||
color: black
|
||||
}
|
||||
|
||||
table.generic, table.annotated
|
||||
{
|
||||
border-width: 1px;
|
||||
border-color:#bbb;
|
||||
border-style:solid;
|
||||
border-collapse:collapse;
|
||||
}
|
||||
|
||||
table td.memItemLeft {
|
||||
width: 180px;
|
||||
padding: 2px 0px 0px 8px;
|
||||
margin: 4px;
|
||||
border-width: 1px;
|
||||
border-color: #E0E0E0;
|
||||
border-style: none;
|
||||
font-size: 100%;
|
||||
white-space: nowrap
|
||||
}
|
||||
|
||||
table td.memItemRight {
|
||||
padding: 2px 8px 0px 8px;
|
||||
margin: 4px;
|
||||
border-width: 1px;
|
||||
border-color: #E0E0E0;
|
||||
border-style: none;
|
||||
font-size: 100%;
|
||||
}
|
||||
|
||||
table tr.odd {
|
||||
background: #f0f0f0;
|
||||
color: black;
|
||||
|
@ -77,17 +188,17 @@ table.annotated td {
|
|||
|
||||
table tr pre
|
||||
{
|
||||
padding-top: none;
|
||||
padding-bottom: none;
|
||||
padding-left: none;
|
||||
padding-right: none;
|
||||
padding-top: 0px;
|
||||
padding-bottom: 0px;
|
||||
padding-left: 0px;
|
||||
padding-right: 0px;
|
||||
border: none;
|
||||
background: none
|
||||
}
|
||||
|
||||
tr.qt-style
|
||||
{
|
||||
background: #a2c511;
|
||||
background: #96E066;
|
||||
color: black
|
||||
}
|
||||
|
||||
|
@ -99,6 +210,14 @@ body pre
|
|||
color: black
|
||||
}
|
||||
|
||||
table tr.qt-code pre
|
||||
{
|
||||
padding: 0.2em;
|
||||
border: #e7e7e7 1px solid;
|
||||
background: #f1f1f1;
|
||||
color: black
|
||||
}
|
||||
|
||||
span.preprocessor, span.preprocessor a
|
||||
{
|
||||
color: darkblue;
|
||||
|
@ -129,3 +248,37 @@ span.string,span.char
|
|||
{
|
||||
font-size: 0.65em
|
||||
}
|
||||
|
||||
.qmlitem {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.qmlname {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.qmltype {
|
||||
text-align: center;
|
||||
font-size: 160%;
|
||||
}
|
||||
|
||||
.qmlproto {
|
||||
background-color: #eee;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #ddd;
|
||||
font-weight: bold;
|
||||
padding: 6px 10px 6px 10px;
|
||||
margin: 42px 0px 0px 0px;
|
||||
}
|
||||
|
||||
.qmlreadonly {
|
||||
float: right;
|
||||
color: red
|
||||
}
|
||||
|
||||
.qmldoc {
|
||||
}
|
||||
|
||||
*.qmlitem p {
|
||||
}
|
||||
|
|
8
thirdparty/singleapp/doc/html/index.html
vendored
8
thirdparty/singleapp/doc/html/index.html
vendored
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<!-- qtsingleapplication-2.6-opensource/doc/index.qdoc -->
|
||||
<!-- index.qdoc -->
|
||||
<head>
|
||||
<title>Single Application</title>
|
||||
<link href="classic.css" rel="stylesheet" type="text/css" />
|
||||
|
@ -18,7 +18,7 @@
|
|||
<h2>Description</h2>
|
||||
<p>The <a href="qtsingleapplication.html">QtSingleApplication</a> component provides support for applications that can be only started once per user.</p>
|
||||
<p>For some applications it is useful or even critical that they are started only once by any user. Future attempts to start the application should activate any already running instance, and possibly perform requested actions, e.g. loading a file, in that instance.</p>
|
||||
<p>The <a href="qtsingleapplication.html">QtSingleApplication</a> class provides an interface to detect a running instance, and to send command strings to that instance. For console (non-GUI) applications, the <a href="qtsinglecoreapplication.html">QtSingleCoreApplication</a> variant is provided, which avoids dependency on <a href="http://doc.trolltech.com/4.4/qtgui.html">QtGui</a>.</p>
|
||||
<p>The <a href="qtsingleapplication.html">QtSingleApplication</a> class provides an interface to detect a running instance, and to send command strings to that instance. For console (non-GUI) applications, the <a href="qtsinglecoreapplication.html">QtSingleCoreApplication</a> variant is provided, which avoids dependency on <a href="http://qt.nokia.com/doc/4.6/qtgui.html">QtGui</a>.</p>
|
||||
<a name="classes"></a>
|
||||
<h2>Classes</h2>
|
||||
<ul>
|
||||
|
@ -41,8 +41,8 @@
|
|||
</ul>
|
||||
<p /><address><hr /><div align="center">
|
||||
<table width="100%" cellspacing="0" border="0"><tr class="address">
|
||||
<td width="30%" align="left">Copyright © 2009 Nokia</td>
|
||||
<td width="40%" align="center"><a href="http://doc.trolltech.com/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
|
||||
<td width="40%" align="center"><a href="http://qt.nokia.com/doc/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="right"><div align="right">Qt Solutions</div></td>
|
||||
</tr></table></div></address></body>
|
||||
</html>
|
||||
|
|
|
@ -1,165 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<!-- qtsingleapplication-2.6-opensource/src/qtlockedfile.cpp -->
|
||||
<head>
|
||||
<title>List of All Members for QtLockedFile</title>
|
||||
<link href="classic.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="57" height="67" border="0" /></td>
|
||||
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a></td>
|
||||
</tr></table><h1 class="title">List of All Members for QtLockedFile</h1>
|
||||
<p>This is the complete list of members for <a href="qtlockedfile.html">QtLockedFile</a>, including inherited members.</p>
|
||||
<p><table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td width="45%" valign="top"><ul>
|
||||
<li><div class="fn"/>typedef <a href="http://doc.trolltech.com/4.4/qfile.html#DecoderFn-typedef">DecoderFn</a></li>
|
||||
<li><div class="fn"/>typedef <a href="http://doc.trolltech.com/4.4/qfile.html#EncoderFn-typedef">EncoderFn</a></li>
|
||||
<li><div class="fn"/>enum <a href="http://doc.trolltech.com/4.4/qfile.html#FileError-enum">FileError</a></li>
|
||||
<li><div class="fn"/>enum <a href="qtlockedfile.html#LockMode-enum">LockMode</a></li>
|
||||
<li><div class="fn"/>enum <a href="http://doc.trolltech.com/4.4/qfile.html#MemoryMapFlags-enum">MemoryMapFlags</a></li>
|
||||
<li><div class="fn"/>typedef <a href="http://doc.trolltech.com/4.4/qiodevice.html#OpenMode-typedef">OpenMode</a></li>
|
||||
<li><div class="fn"/>enum <a href="http://doc.trolltech.com/4.4/qiodevice.html#OpenModeFlag-enum">OpenModeFlag</a></li>
|
||||
<li><div class="fn"/>enum <a href="http://doc.trolltech.com/4.4/qfile.html#Permission-enum">Permission</a></li>
|
||||
<li><div class="fn"/>typedef <a href="http://doc.trolltech.com/4.4/qfile.html#PermissionSpec-typedef">PermissionSpec</a></li>
|
||||
<li><div class="fn"/>typedef <a href="http://doc.trolltech.com/4.4/qfile.html#Permissions-typedef">Permissions</a></li>
|
||||
<li><div class="fn"/><a href="qtlockedfile.html#QtLockedFile">QtLockedFile</a> ()</li>
|
||||
<li><div class="fn"/><a href="qtlockedfile.html#QtLockedFile-2">QtLockedFile</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="qtlockedfile.html#dtor.QtLockedFile">~QtLockedFile</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#aboutToClose">aboutToClose</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#atEnd">atEnd</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#blockSignals">blockSignals</a> ( bool )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#bytesAvailable">bytesAvailable</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#bytesToWrite">bytesToWrite</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#bytesWritten">bytesWritten</a> ( qint64 )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#canReadLine">canReadLine</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#childEvent">childEvent</a> ( QChildEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#children">children</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#close">close</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#connect">connect</a> ( const QObject *, const char *, const QObject *, const char *, Qt::ConnectionType )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#connect-2">connect</a> ( const QObject *, const char *, const char *, Qt::ConnectionType ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#connectNotify">connectNotify</a> ( const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#copy">copy</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#copy-2">copy</a> ( const QString &, const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#customEvent">customEvent</a> ( QEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#d_ptr-var">d_ptr</a> : </li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#decodeName">decodeName</a> ( const QByteArray & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#decodeName-2">decodeName</a> ( const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#deleteLater">deleteLater</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#destroyed">destroyed</a> ( QObject * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#disconnect">disconnect</a> ( const QObject *, const char *, const QObject *, const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#disconnect-2">disconnect</a> ( const char *, const QObject *, const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#disconnect-3">disconnect</a> ( const QObject *, const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#disconnectNotify">disconnectNotify</a> ( const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#dumpObjectInfo">dumpObjectInfo</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#dumpObjectTree">dumpObjectTree</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#dynamicPropertyNames">dynamicPropertyNames</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#encodeName">encodeName</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#error">error</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#errorString">errorString</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#event">event</a> ( QEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#eventFilter">eventFilter</a> ( QObject *, QEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#exists">exists</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#exists-2">exists</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#fileName">fileName</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#findChild">findChild</a> ( const QString & ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#findChildren">findChildren</a> ( const QString & ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#findChildren-2">findChildren</a> ( const QRegExp & ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#flush">flush</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#getChar">getChar</a> ( char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#handle">handle</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#inherits">inherits</a> ( const char * ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#installEventFilter">installEventFilter</a> ( QObject * )</li>
|
||||
<li><div class="fn"/><a href="qtlockedfile.html#isLocked">isLocked</a> () const : bool</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#isOpen">isOpen</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#isReadable">isReadable</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#isSequential">isSequential</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#isTextModeEnabled">isTextModeEnabled</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#isWidgetType">isWidgetType</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#isWritable">isWritable</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#killTimer">killTimer</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#link">link</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#link-2">link</a> ( const QString &, const QString & )</li>
|
||||
<li><div class="fn"/><a href="qtlockedfile.html#lock">lock</a> ( LockMode, bool ) : bool</li>
|
||||
</ul></td><td valign="top"><ul>
|
||||
<li><div class="fn"/><a href="qtlockedfile.html#lockMode">lockMode</a> () const : LockMode</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#map">map</a> ( qint64, qint64, MemoryMapFlags )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#metaObject">metaObject</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#moveToThread">moveToThread</a> ( QThread * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#objectName-prop">objectName</a> () const</li>
|
||||
<li><div class="fn"/><a href="qtlockedfile.html#open">open</a> ( OpenMode ) : bool</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#open-4">open</a> ( FILE *, QFlags<QIODevice::OpenModeFlag> )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#open-5">open</a> ( int, QFlags<QIODevice::OpenModeFlag> )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#openMode">openMode</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#parent">parent</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#peek">peek</a> ( char *, qint64 )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#peek-2">peek</a> ( qint64 )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#permissions">permissions</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#permissions-2">permissions</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#pos">pos</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#property">property</a> ( const char * ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#putChar">putChar</a> ( char )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#read">read</a> ( char *, qint64 )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#read-2">read</a> ( qint64 )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#readAll">readAll</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#readChannelFinished">readChannelFinished</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#readData">readData</a> ( char *, qint64 )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#readLine">readLine</a> ( char *, qint64 )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#readLine-2">readLine</a> ( qint64 )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#readLineData">readLineData</a> ( char *, qint64 )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#readyRead">readyRead</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#receivers">receivers</a> ( const char * ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#remove">remove</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#remove-2">remove</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#removeEventFilter">removeEventFilter</a> ( QObject * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#rename">rename</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#rename-2">rename</a> ( const QString &, const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#reset">reset</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#resize">resize</a> ( qint64 )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#resize-2">resize</a> ( const QString &, qint64 )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#seek">seek</a> ( qint64 )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#sender">sender</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#setDecodingFunction">setDecodingFunction</a> ( DecoderFn )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#setEncodingFunction">setEncodingFunction</a> ( EncoderFn )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#setErrorString">setErrorString</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#setFileName">setFileName</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#objectName-prop">setObjectName</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#setOpenMode">setOpenMode</a> ( QFlags<QIODevice::OpenModeFlag> )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#setParent">setParent</a> ( QObject * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#setPermissions">setPermissions</a> ( QFlags<QFile::Permission> )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#setPermissions-2">setPermissions</a> ( const QString &, QFlags<QFile::Permission> )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#setProperty">setProperty</a> ( const char *, const QVariant & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#setTextModeEnabled">setTextModeEnabled</a> ( bool )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#signalsBlocked">signalsBlocked</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#size">size</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#startTimer">startTimer</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#staticMetaObject-var">staticMetaObject</a> : </li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#staticQtMetaObject-var">staticQtMetaObject</a> : </li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#symLinkTarget">symLinkTarget</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#symLinkTarget-2">symLinkTarget</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#thread">thread</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#timerEvent">timerEvent</a> ( QTimerEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#tr">tr</a> ( const char *, const char *, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#trUtf8">trUtf8</a> ( const char *, const char *, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#ungetChar">ungetChar</a> ( char )</li>
|
||||
<li><div class="fn"/><a href="qtlockedfile.html#unlock">unlock</a> () : bool</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#unmap">unmap</a> ( uchar * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qfile.html#unsetError">unsetError</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#waitForBytesWritten">waitForBytesWritten</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#waitForReadyRead">waitForReadyRead</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#write">write</a> ( const char *, qint64 )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#write-2">write</a> ( const QByteArray & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qiodevice.html#writeData">writeData</a> ( const char *, qint64 )</li>
|
||||
</ul>
|
||||
</td></tr>
|
||||
</table></p>
|
||||
<p /><address><hr /><div align="center">
|
||||
<table width="100%" cellspacing="0" border="0"><tr class="address">
|
||||
<td width="30%" align="left">Copyright © 2009 Nokia</td>
|
||||
<td width="40%" align="center"><a href="http://doc.trolltech.com/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="right"><div align="right">Qt Solutions</div></td>
|
||||
</tr></table></div></address></body>
|
||||
</html>
|
111
thirdparty/singleapp/doc/html/qtlockedfile.html
vendored
111
thirdparty/singleapp/doc/html/qtlockedfile.html
vendored
|
@ -1,111 +0,0 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<!-- qtsingleapplication-2.6-opensource/src/qtlockedfile.cpp -->
|
||||
<head>
|
||||
<title>QtLockedFile Class Reference</title>
|
||||
<link href="classic.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr>
|
||||
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="57" height="67" border="0" /></td>
|
||||
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a></td>
|
||||
</tr></table><h1 class="title">QtLockedFile Class Reference</h1>
|
||||
<p>The QtLockedFile class extends <a href="http://doc.trolltech.com/4.4/qfile.html">QFile</a> with advisory locking functions. <a href="#details">More...</a></p>
|
||||
<pre> #include <QtLockedFile></pre><p>Inherits <a href="http://doc.trolltech.com/4.4/qfile.html">QFile</a>.</p>
|
||||
<ul>
|
||||
<li><a href="qtlockedfile-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="public-types"></a>
|
||||
<h3>Public Types</h3>
|
||||
<ul>
|
||||
<li><div class="fn"/>enum <b><a href="qtlockedfile.html#LockMode-enum">LockMode</a></b> { ReadLock, WriteLock, NoLock }</li>
|
||||
</ul>
|
||||
<a name="public-functions"></a>
|
||||
<h3>Public Functions</h3>
|
||||
<ul>
|
||||
<li><div class="fn"/><b><a href="qtlockedfile.html#QtLockedFile">QtLockedFile</a></b> ()</li>
|
||||
<li><div class="fn"/><b><a href="qtlockedfile.html#QtLockedFile-2">QtLockedFile</a></b> ( const QString & <i>name</i> )</li>
|
||||
<li><div class="fn"/><b><a href="qtlockedfile.html#dtor.QtLockedFile">~QtLockedFile</a></b> ()</li>
|
||||
<li><div class="fn"/>bool <b><a href="qtlockedfile.html#isLocked">isLocked</a></b> () const</li>
|
||||
<li><div class="fn"/>bool <b><a href="qtlockedfile.html#lock">lock</a></b> ( LockMode <i>mode</i>, bool <i>block</i> = true )</li>
|
||||
<li><div class="fn"/>LockMode <b><a href="qtlockedfile.html#lockMode">lockMode</a></b> () const</li>
|
||||
<li><div class="fn"/>bool <b><a href="qtlockedfile.html#open">open</a></b> ( OpenMode <i>mode</i> )</li>
|
||||
<li><div class="fn"/>bool <b><a href="qtlockedfile.html#unlock">unlock</a></b> ()</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><div class="fn"/>23 public functions inherited from <a href="http://doc.trolltech.com/4.4/qfile.html#public-functions">QFile</a></li>
|
||||
<li><div class="fn"/>32 public functions inherited from <a href="http://doc.trolltech.com/4.4/qiodevice.html#public-functions">QIODevice</a></li>
|
||||
<li><div class="fn"/>29 public functions inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#public-functions">QObject</a></li>
|
||||
</ul>
|
||||
<h3>Additional Inherited Members</h3>
|
||||
<ul>
|
||||
<li><div class="fn"/>1 property inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#properties">QObject</a></li>
|
||||
<li><div class="fn"/>1 public slot inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#public-slots">QObject</a></li>
|
||||
<li><div class="fn"/>4 signals inherited from <a href="http://doc.trolltech.com/4.4/qiodevice.html#signals">QIODevice</a></li>
|
||||
<li><div class="fn"/>1 signal inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#signals">QObject</a></li>
|
||||
<li><div class="fn"/>1 public type inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#public-variables">QObject</a></li>
|
||||
<li><div class="fn"/>14 static public members inherited from <a href="http://doc.trolltech.com/4.4/qfile.html#static-public-members">QFile</a></li>
|
||||
<li><div class="fn"/>4 static public members inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#static-public-members">QObject</a></li>
|
||||
<li><div class="fn"/>5 protected functions inherited from <a href="http://doc.trolltech.com/4.4/qiodevice.html#protected-functions">QIODevice</a></li>
|
||||
<li><div class="fn"/>7 protected functions inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#protected-functions">QObject</a></li>
|
||||
<li><div class="fn"/>2 protected variables inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#protected-variables">QObject</a></li>
|
||||
</ul>
|
||||
<a name="details"></a>
|
||||
<hr />
|
||||
<h2>Detailed Description</h2>
|
||||
<p>The QtLockedFile class extends <a href="http://doc.trolltech.com/4.4/qfile.html">QFile</a> with advisory locking functions.</p>
|
||||
<p>A file may be locked in read or write mode. Multiple instances of <i>QtLockedFile</i>, created in multiple processes running on the same machine, may have a file locked in read mode. Exactly one instance may have it locked in write mode. A read and a write lock cannot exist simultaneously on the same file.</p>
|
||||
<p>The file locks are advisory. This means that nothing prevents another process from manipulating a locked file using <a href="http://doc.trolltech.com/4.4/qfile.html">QFile</a> or file system functions offered by the OS. Serialization is only guaranteed if all processes that access the file use QLockedFile. Also, while holding a lock on a file, a process must not open the same file again (through any API), or locks can be unexpectedly lost.</p>
|
||||
<p>The lock provided by an instance of <i>QtLockedFile</i> is released whenever the program terminates. This is true even when the program crashes and no destructors are called.</p>
|
||||
<hr />
|
||||
<h2>Member Type Documentation</h2>
|
||||
<h3 class="fn"><a name="LockMode-enum"></a>enum QtLockedFile::LockMode</h3>
|
||||
<p>This enum describes the available lock modes.</p>
|
||||
<p><table border="1" cellpadding="2" cellspacing="1" width="100%">
|
||||
<tr><th width="25%">Constant</th><th width="15%">Value</th><th width="60%">Description</th></tr>
|
||||
<tr><td valign="top"><tt>QtLockedFile::ReadLock</tt></td><td align="center" valign="top"><tt>1</tt></td><td valign="top">A read lock.</td></tr>
|
||||
<tr><td valign="top"><tt>QtLockedFile::WriteLock</tt></td><td align="center" valign="top"><tt>2</tt></td><td valign="top">A write lock.</td></tr>
|
||||
<tr><td valign="top"><tt>QtLockedFile::NoLock</tt></td><td align="center" valign="top"><tt>0</tt></td><td valign="top">Neither a read lock nor a write lock.</td></tr>
|
||||
</table></p>
|
||||
<hr />
|
||||
<h2>Member Function Documentation</h2>
|
||||
<h3 class="fn"><a name="QtLockedFile"></a>QtLockedFile::QtLockedFile ()</h3>
|
||||
<p>Constructs an unlocked <i>QtLockedFile</i> object. This constructor behaves in the same way as <i>QFile::QFile()</i>.</p>
|
||||
<p>See also <a href="http://doc.trolltech.com/4.4/qfile.html#QFile">QFile::QFile</a>().</p>
|
||||
<h3 class="fn"><a name="QtLockedFile-2"></a>QtLockedFile::QtLockedFile ( const <a href="http://doc.trolltech.com/4.4/qstring.html">QString</a> & <i>name</i> )</h3>
|
||||
<p>Constructs an unlocked <a href="qtlockedfile.html">QtLockedFile</a> object with file <i>name</i>. This constructor behaves in the same way as <i>QFile::QFile(const QString&)</i>.</p>
|
||||
<p>See also <a href="http://doc.trolltech.com/4.4/qfile.html#QFile">QFile::QFile</a>().</p>
|
||||
<h3 class="fn"><a name="dtor.QtLockedFile"></a>QtLockedFile::~QtLockedFile ()</h3>
|
||||
<p>Destroys the <i>QtLockedFile</i> object. If any locks were held, they are released.</p>
|
||||
<h3 class="fn"><a name="isLocked"></a>bool QtLockedFile::isLocked () const</h3>
|
||||
<p>Returns <i>true</i> if this object has a in read or write lock; otherwise returns <i>false</i>.</p>
|
||||
<p>See also <a href="qtlockedfile.html#lockMode">lockMode</a>().</p>
|
||||
<h3 class="fn"><a name="lock"></a>bool QtLockedFile::lock ( <a href="qtlockedfile.html#LockMode-enum">LockMode</a> <i>mode</i>, bool <i>block</i> = true )</h3>
|
||||
<p>Obtains a lock of type <i>mode</i>. The file must be opened before it can be locked.</p>
|
||||
<p>If <i>block</i> is true, this function will block until the lock is aquired. If <i>block</i> is false, this function returns <i>false</i> immediately if the lock cannot be aquired.</p>
|
||||
<p>If this object already has a lock of type <i>mode</i>, this function returns <i>true</i> immediately. If this object has a lock of a different type than <i>mode</i>, the lock is first released and then a new lock is obtained.</p>
|
||||
<p>This function returns <i>true</i> if, after it executes, the file is locked by this object, and <i>false</i> otherwise.</p>
|
||||
<p>See also <a href="qtlockedfile.html#unlock">unlock</a>(), <a href="qtlockedfile.html#isLocked">isLocked</a>(), and <a href="qtlockedfile.html#lockMode">lockMode</a>().</p>
|
||||
<h3 class="fn"><a name="lockMode"></a><a href="qtlockedfile.html#LockMode-enum">LockMode</a> QtLockedFile::lockMode () const</h3>
|
||||
<p>Returns the type of lock currently held by this object, or <i>QtLockedFile::NoLock</i>.</p>
|
||||
<p>See also <a href="qtlockedfile.html#isLocked">isLocked</a>().</p>
|
||||
<h3 class="fn"><a name="open"></a>bool QtLockedFile::open ( <a href="http://doc.trolltech.com/4.4/qiodevice.html#OpenMode-typedef">OpenMode</a> <i>mode</i> )</h3>
|
||||
<p>Opens the file in <a href="http://doc.trolltech.com/4.4/qiodevice.html#OpenMode-typedef">OpenMode</a> <i>mode</i>.</p>
|
||||
<p>This is identical to <a href="http://doc.trolltech.com/4.4/qfile.html#open">QFile::open</a>(), with the one exception that the Truncate mode flag is disallowed. Truncation would conflict with the advisory file locking, since the file would be modified before the write lock is obtained. If truncation is required, use resize(0) after obtaining the write lock.</p>
|
||||
<p>Returns true if successful; otherwise false.</p>
|
||||
<p>See also <a href="http://doc.trolltech.com/4.4/qfile.html#open">QFile::open</a>() and <a href="http://doc.trolltech.com/4.4/qfile.html#resize">QFile::resize</a>().</p>
|
||||
<h3 class="fn"><a name="unlock"></a>bool QtLockedFile::unlock ()</h3>
|
||||
<p>Releases a lock.</p>
|
||||
<p>If the object has no lock, this function returns immediately.</p>
|
||||
<p>This function returns <i>true</i> if, after it executes, the file is not locked by this object, and <i>false</i> otherwise.</p>
|
||||
<p>See also <a href="qtlockedfile.html#lock">lock</a>(), <a href="qtlockedfile.html#isLocked">isLocked</a>(), and <a href="qtlockedfile.html#lockMode">lockMode</a>().</p>
|
||||
<p /><address><hr /><div align="center">
|
||||
<table width="100%" cellspacing="0" border="0"><tr class="address">
|
||||
<td width="30%" align="left">Copyright © 2009 Nokia</td>
|
||||
<td width="40%" align="center"><a href="http://doc.trolltech.com/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="right"><div align="right">Qt Solutions</div></td>
|
||||
</tr></table></div></address></body>
|
||||
</html>
|
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<!-- qtsingleapplication-2.6-opensource/examples/loader/loader.qdoc -->
|
||||
<!-- loader.qdoc -->
|
||||
<head>
|
||||
<title>Loading Documents</title>
|
||||
<link href="classic.css" rel="stylesheet" type="text/css" />
|
||||
|
@ -17,47 +17,38 @@
|
|||
<p>The application in this example loads or prints the documents passed as commandline parameters to further instances of this application.</p>
|
||||
<pre><span class="comment"> /****************************************************************************
|
||||
**
|
||||
** This file is part of a Qt Solutions component.
|
||||
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** This file is part of the Qt Solutions component.
|
||||
**
|
||||
** Contact: Qt Software Information (qt-info@nokia.com)
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||
** accordance with the Qt Solutions Commercial License Agreement provided
|
||||
** with the Software or, alternatively, in accordance with the terms
|
||||
** contained in a written agreement between you and Nokia.
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
|
||||
** the names of its contributors may be used to endorse or promote
|
||||
** products derived from this software without specific prior written
|
||||
** permission.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain
|
||||
** additional rights. These rights are described in the Nokia Qt LGPL
|
||||
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
||||
** package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3.0 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 3.0 requirements will be
|
||||
** met: http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Please note Third Party Software included with Qt Solutions may impose
|
||||
** additional restrictions and it is the user's responsibility to ensure
|
||||
** that they have met the licensing requirements of the GPL, LGPL, or Qt
|
||||
** Solutions Commercial license and the relevant license of the Third
|
||||
** Party Software they are using.
|
||||
**
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** contact the sales department at qt-sales@nokia.com.
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
****************************************************************************/</span>
|
||||
|
||||
|
@ -85,14 +76,14 @@
|
|||
private:
|
||||
QMdiArea *workspace;
|
||||
};</pre>
|
||||
<p>The user interface in this application is a <a href="http://doc.trolltech.com/4.4/qmainwindow.html">QMainWindow</a> subclass with a <a href="http://doc.trolltech.com/4.4/qmdiarea.html">QMdiArea</a> as the central widget. It implements a slot <tt>handleMessage()</tt> that will be connected to the messageReceived() signal of the <a href="qtsingleapplication.html">QtSingleApplication</a> class.</p>
|
||||
<p>The user interface in this application is a <a href="http://qt.nokia.com/doc/4.6/qmainwindow.html">QMainWindow</a> subclass with a <a href="http://qt.nokia.com/doc/4.6/qmdiarea.html">QMdiArea</a> as the central widget. It implements a slot <tt>handleMessage()</tt> that will be connected to the messageReceived() signal of the <a href="qtsingleapplication.html">QtSingleApplication</a> class.</p>
|
||||
<pre> MainWindow::MainWindow()
|
||||
{
|
||||
workspace = new QMdiArea(this);
|
||||
|
||||
setCentralWidget(workspace);
|
||||
}</pre>
|
||||
<p>The <a href="http://doc.trolltech.com/4.4/designer-getting-started.html">MainWindow</a> constructor creates a minimal user interface.</p>
|
||||
<p>The <a href="http://qt.nokia.com/doc/4.6/designer-to-know.html">MainWindow</a> constructor creates a minimal user interface.</p>
|
||||
<pre> void MainWindow::handleMessage(const QString& message)
|
||||
{
|
||||
enum Action {
|
||||
|
@ -177,8 +168,8 @@
|
|||
<p>If the message could not be sent the application starts up. Note that <tt>false</tt> is passed to the call to setActivationWindow() to prevent automatic activation for every message received, e.g. when the application should just print a file. Instead, the message handling function determines whether activation is requested, and signals that by emitting the needToShow() signal. This is then simply connected directly to <a href="qtsingleapplication.html">QtSingleApplication</a>'s activateWindow() slot.</p>
|
||||
<p /><address><hr /><div align="center">
|
||||
<table width="100%" cellspacing="0" border="0"><tr class="address">
|
||||
<td width="30%" align="left">Copyright © 2009 Nokia</td>
|
||||
<td width="40%" align="center"><a href="http://doc.trolltech.com/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
|
||||
<td width="40%" align="center"><a href="http://qt.nokia.com/doc/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="right"><div align="right">Qt Solutions</div></td>
|
||||
</tr></table></div></address></body>
|
||||
</html>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<!-- qtsingleapplication-2.6-opensource/examples/trivial/trivial.qdoc -->
|
||||
<!-- trivial.qdoc -->
|
||||
<head>
|
||||
<title>A Trivial Example</title>
|
||||
<link href="classic.css" rel="stylesheet" type="text/css" />
|
||||
|
@ -15,50 +15,41 @@
|
|||
</tr></table><h1 class="title">A Trivial Example<br /><span class="subtitle"></span>
|
||||
</h1>
|
||||
<p>The application in this example has a log-view that displays messages sent by further instances of the same application.</p>
|
||||
<p>The example demonstrates the use of the <a href="qtsingleapplication.html">QtSingleApplication</a> class to detect and communicate with a running instance of the application using the sendMessage() API. The messageReceived() signal is used to display received messages in a <a href="http://doc.trolltech.com/4.4/qtextedit.html">QTextEdit</a> log.</p>
|
||||
<p>The example demonstrates the use of the <a href="qtsingleapplication.html">QtSingleApplication</a> class to detect and communicate with a running instance of the application using the sendMessage() API. The messageReceived() signal is used to display received messages in a <a href="http://qt.nokia.com/doc/4.6/qtextedit.html">QTextEdit</a> log.</p>
|
||||
<pre><span class="comment"> /****************************************************************************
|
||||
**
|
||||
** This file is part of a Qt Solutions component.
|
||||
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** This file is part of the Qt Solutions component.
|
||||
**
|
||||
** Contact: Qt Software Information (qt-info@nokia.com)
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||
** accordance with the Qt Solutions Commercial License Agreement provided
|
||||
** with the Software or, alternatively, in accordance with the terms
|
||||
** contained in a written agreement between you and Nokia.
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
|
||||
** the names of its contributors may be used to endorse or promote
|
||||
** products derived from this software without specific prior written
|
||||
** permission.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain
|
||||
** additional rights. These rights are described in the Nokia Qt LGPL
|
||||
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
||||
** package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3.0 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 3.0 requirements will be
|
||||
** met: http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Please note Third Party Software included with Qt Solutions may impose
|
||||
** additional restrictions and it is the user's responsibility to ensure
|
||||
** that they have met the licensing requirements of the GPL, LGPL, or Qt
|
||||
** Solutions Commercial license and the relevant license of the Third
|
||||
** Party Software they are using.
|
||||
**
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** contact the sales department at qt-sales@nokia.com.
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
****************************************************************************/</span>
|
||||
|
||||
|
@ -99,12 +90,12 @@
|
|||
|
||||
return instance.exec();</pre>
|
||||
<p>The <tt>logview</tt> object is also set as the application's activation window. Every time a message is received, the window will be raised and activated automatically.</p>
|
||||
<p>The messageReceived() signal is also connected to the <a href="http://doc.trolltech.com/4.4/qtextedit.html">QTextEdit</a>'s append() slot. Every message received from further instances of this application will be displayed in the log.</p>
|
||||
<p>The messageReceived() signal is also connected to the <a href="http://qt.nokia.com/doc/4.6/qtextedit.html">QTextEdit</a>'s append() slot. Every message received from further instances of this application will be displayed in the log.</p>
|
||||
<p>Finally the event loop is entered.</p>
|
||||
<p /><address><hr /><div align="center">
|
||||
<table width="100%" cellspacing="0" border="0"><tr class="address">
|
||||
<td width="30%" align="left">Copyright © 2009 Nokia</td>
|
||||
<td width="40%" align="center"><a href="http://doc.trolltech.com/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
|
||||
<td width="40%" align="center"><a href="http://qt.nokia.com/doc/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="right"><div align="right">Qt Solutions</div></td>
|
||||
</tr></table></div></address></body>
|
||||
</html>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<!-- qtsingleapplication-2.6-opensource/src/qtsingleapplication.cpp -->
|
||||
<!-- qtsingleapplication.cpp -->
|
||||
<head>
|
||||
<title>List of All Members for QtSingleApplication</title>
|
||||
<link href="classic.css" rel="stylesheet" type="text/css" />
|
||||
|
@ -14,214 +14,222 @@
|
|||
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a></td>
|
||||
</tr></table><h1 class="title">List of All Members for QtSingleApplication</h1>
|
||||
<p>This is the complete list of members for <a href="qtsingleapplication.html">QtSingleApplication</a>, including inherited members.</p>
|
||||
<p><table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<p><table class="propsummary" width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td width="45%" valign="top"><ul>
|
||||
<li><div class="fn"/>enum <a href="http://doc.trolltech.com/4.4/qapplication.html#ColorSpec-enum">ColorSpec</a></li>
|
||||
<li><div class="fn"/>enum <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#Encoding-enum">Encoding</a></li>
|
||||
<li><div class="fn"/>typedef <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#EventFilter-typedef">EventFilter</a></li>
|
||||
<li><div class="fn"/>enum <a href="http://doc.trolltech.com/4.4/qapplication.html#Type-enum">Type</a></li>
|
||||
<li><div class="fn"/><a href="qtsingleapplication.html#QtSingleApplication">QtSingleApplication</a> ( int &, char **, bool )</li>
|
||||
<li><div class="fn"/><a href="qtsingleapplication.html#QtSingleApplication-2">QtSingleApplication</a> ( const QString &, int &, char ** )</li>
|
||||
<li><div class="fn"/><a href="qtsingleapplication.html#QtSingleApplication-3">QtSingleApplication</a> ( int &, char **, Type )</li>
|
||||
<li><div class="fn"/><a href="qtsingleapplication.html#QtSingleApplication-4">QtSingleApplication</a> ( Display *, Qt::HANDLE, Qt::HANDLE )</li>
|
||||
<li><div class="fn"/><a href="qtsingleapplication.html#QtSingleApplication-5">QtSingleApplication</a> ( Display *, int &, char **, Qt::HANDLE, Qt::HANDLE )</li>
|
||||
<li><div class="fn"/><a href="qtsingleapplication.html#QtSingleApplication-6">QtSingleApplication</a> ( Display *, const QString &, int, char **, Qt::HANDLE, Qt::HANDLE )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#aboutQt">aboutQt</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#aboutToQuit">aboutToQuit</a> ()</li>
|
||||
<li><div class="fn"/><a href="qtsingleapplication.html#activateWindow">activateWindow</a> ()</li>
|
||||
<li><div class="fn"/><a href="qtsingleapplication.html#activationWindow">activationWindow</a> () const : QWidget *</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#activeModalWidget">activeModalWidget</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#activePopupWidget">activePopupWidget</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#activeWindow">activeWindow</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#addLibraryPath">addLibraryPath</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#alert">alert</a> ( QWidget *, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#allWidgets">allWidgets</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationDirPath">applicationDirPath</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationFilePath">applicationFilePath</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationName-prop">applicationName</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationPid">applicationPid</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationVersion-prop">applicationVersion</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#arguments">arguments</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#autoMaximizeThreshold-prop">autoMaximizeThreshold</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#beep">beep</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#blockSignals">blockSignals</a> ( bool )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#changeOverrideCursor">changeOverrideCursor</a> ( const QCursor & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#childEvent">childEvent</a> ( QChildEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#children">children</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#clipboard">clipboard</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#closeAllWindows">closeAllWindows</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#closingDown">closingDown</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#colorSpec">colorSpec</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#commitData">commitData</a> ( QSessionManager & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#commitDataRequest">commitDataRequest</a> ( QSessionManager & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#connect">connect</a> ( const QObject *, const char *, const QObject *, const char *, Qt::ConnectionType )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#connect-2">connect</a> ( const QObject *, const char *, const char *, Qt::ConnectionType ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#connectNotify">connectNotify</a> ( const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#cursorFlashTime-prop">cursorFlashTime</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#customEvent">customEvent</a> ( QEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#d_ptr-var">d_ptr</a> : </li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#deleteLater">deleteLater</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#desktop">desktop</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#desktopSettingsAware">desktopSettingsAware</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#destroyed">destroyed</a> ( QObject * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#disconnect">disconnect</a> ( const QObject *, const char *, const QObject *, const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#disconnect-2">disconnect</a> ( const char *, const QObject *, const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#disconnect-3">disconnect</a> ( const QObject *, const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#disconnectNotify">disconnectNotify</a> ( const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#doubleClickInterval-prop">doubleClickInterval</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#dumpObjectInfo">dumpObjectInfo</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#dumpObjectTree">dumpObjectTree</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#dynamicPropertyNames">dynamicPropertyNames</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#event">event</a> ( QEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#eventFilter">eventFilter</a> ( QObject *, QEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#exec">exec</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#exit">exit</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#filterEvent">filterEvent</a> ( void *, long * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#findChild">findChild</a> ( const QString & ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#findChildren">findChildren</a> ( const QString & ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#findChildren-2">findChildren</a> ( const QRegExp & ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#flush">flush</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#focusChanged">focusChanged</a> ( QWidget *, QWidget * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#focusWidget">focusWidget</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#font">font</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#font-2">font</a> ( const QWidget * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#font-3">font</a> ( const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#fontMetrics">fontMetrics</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#globalStrut-prop">globalStrut</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#hasPendingEvents">hasPendingEvents</a> ()</li>
|
||||
<li><div class="fn"/><a href="qtsingleapplication.html#id">id</a> () const : QString</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#inherits">inherits</a> ( const char * ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#inputContext">inputContext</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#installEventFilter">installEventFilter</a> ( QObject * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#installTranslator">installTranslator</a> ( QTranslator * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#instance">instance</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#isEffectEnabled">isEffectEnabled</a> ( Qt::UIEffect )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#isLeftToRight">isLeftToRight</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#isRightToLeft">isRightToLeft</a> ()</li>
|
||||
<li><div class="fn"/><a href="qtsingleapplication.html#isRunning">isRunning</a> () : bool</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#isSessionRestored">isSessionRestored</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#isWidgetType">isWidgetType</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#keyboardInputDirection">keyboardInputDirection</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#keyboardInputInterval-prop">keyboardInputInterval</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#keyboardInputLocale">keyboardInputLocale</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#keyboardModifiers">keyboardModifiers</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#keypadNavigationEnabled">keypadNavigationEnabled</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#killTimer">killTimer</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#lastWindowClosed">lastWindowClosed</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#layoutDirection-prop">layoutDirection</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#libraryPaths">libraryPaths</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#macEventFilter">macEventFilter</a> ( EventHandlerCallRef, EventRef )</li>
|
||||
<li><div class="fn"/><a href="qtsingleapplication.html#messageReceived">messageReceived</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#metaObject">metaObject</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#mouseButtons">mouseButtons</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#moveToThread">moveToThread</a> ( QThread * )</li>
|
||||
<li><div class="fn">enum <b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#ColorSpec-enum">ColorSpec</a></b></div></li>
|
||||
<li><div class="fn">enum <b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#Encoding-enum">Encoding</a></b></div></li>
|
||||
<li><div class="fn">typedef <b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#EventFilter-typedef">EventFilter</a></b></div></li>
|
||||
<li><div class="fn">typedef <b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#QS60MainApplicationFactory-typedef">QS60MainApplicationFactory</a></b></div></li>
|
||||
<li><div class="fn">enum <b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#Type-enum">Type</a></b></div></li>
|
||||
<li><div class="fn"><b><a href="qtsingleapplication.html#QtSingleApplication">QtSingleApplication</a></b> ( int &, char **, bool )</div></li>
|
||||
<li><div class="fn"><b><a href="qtsingleapplication.html#QtSingleApplication-2">QtSingleApplication</a></b> ( const QString &, int &, char ** )</div></li>
|
||||
<li><div class="fn"><b><a href="qtsingleapplication.html#QtSingleApplication-3">QtSingleApplication</a></b> ( int &, char **, Type )</div></li>
|
||||
<li><div class="fn"><b><a href="qtsingleapplication.html#QtSingleApplication-4">QtSingleApplication</a></b> ( Display *, Qt::HANDLE, Qt::HANDLE )</div></li>
|
||||
<li><div class="fn"><b><a href="qtsingleapplication.html#QtSingleApplication-5">QtSingleApplication</a></b> ( Display *, int &, char **, Qt::HANDLE, Qt::HANDLE )</div></li>
|
||||
<li><div class="fn"><b><a href="qtsingleapplication.html#QtSingleApplication-6">QtSingleApplication</a></b> ( Display *, const QString &, int, char **, Qt::HANDLE, Qt::HANDLE )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#aboutQt">aboutQt</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#aboutToQuit">aboutToQuit</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="qtsingleapplication.html#activateWindow">activateWindow</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="qtsingleapplication.html#activationWindow">activationWindow</a></b> () const : QWidget *</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#activeModalWidget">activeModalWidget</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#activePopupWidget">activePopupWidget</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#activeWindow">activeWindow</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#addLibraryPath">addLibraryPath</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#alert">alert</a></b> ( QWidget *, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#allWidgets">allWidgets</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationDirPath">applicationDirPath</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationFilePath">applicationFilePath</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationName-prop">applicationName</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationPid">applicationPid</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationVersion-prop">applicationVersion</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#arguments">arguments</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#autoMaximizeThreshold-prop">autoMaximizeThreshold</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#autoSipEnabled-prop">autoSipEnabled</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#beep">beep</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#blockSignals">blockSignals</a></b> ( bool )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#changeOverrideCursor">changeOverrideCursor</a></b> ( const QCursor & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#childEvent">childEvent</a></b> ( QChildEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#children">children</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#clipboard">clipboard</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#closeAllWindows">closeAllWindows</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#closingDown">closingDown</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#colorSpec">colorSpec</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#commitData">commitData</a></b> ( QSessionManager & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#commitDataRequest">commitDataRequest</a></b> ( QSessionManager & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#connect">connect</a></b> ( const QObject *, const char *, const QObject *, const char *, Qt::ConnectionType )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#connect-2">connect</a></b> ( const QObject *, const char *, const char *, Qt::ConnectionType ) const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#connectNotify">connectNotify</a></b> ( const char * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#cursorFlashTime-prop">cursorFlashTime</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#customEvent">customEvent</a></b> ( QEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#d_ptr-var">d_ptr</a></b> : </div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#deleteLater">deleteLater</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#desktop">desktop</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#desktopSettingsAware">desktopSettingsAware</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#destroyed">destroyed</a></b> ( QObject * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#disconnect">disconnect</a></b> ( const QObject *, const char *, const QObject *, const char * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#disconnect-2">disconnect</a></b> ( const char *, const QObject *, const char * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#disconnect-3">disconnect</a></b> ( const QObject *, const char * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#disconnectNotify">disconnectNotify</a></b> ( const char * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#doubleClickInterval-prop">doubleClickInterval</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#dumpObjectInfo">dumpObjectInfo</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#dumpObjectTree">dumpObjectTree</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#dynamicPropertyNames">dynamicPropertyNames</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#event">event</a></b> ( QEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#eventFilter">eventFilter</a></b> ( QObject *, QEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#exec">exec</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#exit">exit</a></b> ( int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#filterEvent">filterEvent</a></b> ( void *, long * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#findChild">findChild</a></b> ( const QString & ) const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#findChildren">findChildren</a></b> ( const QString & ) const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#findChildren-2">findChildren</a></b> ( const QRegExp & ) const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#flush">flush</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#focusChanged">focusChanged</a></b> ( QWidget *, QWidget * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#focusWidget">focusWidget</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#font">font</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#font-2">font</a></b> ( const QWidget * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#font-3">font</a></b> ( const char * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#fontDatabaseChanged">fontDatabaseChanged</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#fontMetrics">fontMetrics</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#globalStrut-prop">globalStrut</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#hasPendingEvents">hasPendingEvents</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="qtsingleapplication.html#id">id</a></b> () const : QString</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#inherits">inherits</a></b> ( const char * ) const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#inputContext">inputContext</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#installEventFilter">installEventFilter</a></b> ( QObject * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#installTranslator">installTranslator</a></b> ( QTranslator * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#instance">instance</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#isEffectEnabled">isEffectEnabled</a></b> ( Qt::UIEffect )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#isLeftToRight">isLeftToRight</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#isRightToLeft">isRightToLeft</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="qtsingleapplication.html#isRunning">isRunning</a></b> () : bool</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#isSessionRestored">isSessionRestored</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#isWidgetType">isWidgetType</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#keyboardInputDirection">keyboardInputDirection</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#keyboardInputInterval-prop">keyboardInputInterval</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#keyboardInputLocale">keyboardInputLocale</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#keyboardModifiers">keyboardModifiers</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#keypadNavigationEnabled">keypadNavigationEnabled</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#killTimer">killTimer</a></b> ( int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#lastWindowClosed">lastWindowClosed</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#layoutDirection-prop">layoutDirection</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#libraryPaths">libraryPaths</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#macEventFilter">macEventFilter</a></b> ( EventHandlerCallRef, EventRef )</div></li>
|
||||
<li><div class="fn"><b><a href="qtsingleapplication.html#messageReceived">messageReceived</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#metaObject">metaObject</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#mouseButtons">mouseButtons</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#moveToThread">moveToThread</a></b> ( QThread * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#navigationMode">navigationMode</a></b> ()</div></li>
|
||||
</ul></td><td valign="top"><ul>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#notify">notify</a> ( QObject *, QEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#objectName-prop">objectName</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#organizationDomain-prop">organizationDomain</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#organizationName-prop">organizationName</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#overrideCursor">overrideCursor</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#palette">palette</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#palette-2">palette</a> ( const QWidget * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#palette-3">palette</a> ( const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#parent">parent</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#postEvent">postEvent</a> ( QObject *, QEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#postEvent-2">postEvent</a> ( QObject *, QEvent *, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#processEvents">processEvents</a> ( QFlags<QEventLoop::ProcessEventsFlag> )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#processEvents-2">processEvents</a> ( QFlags<QEventLoop::ProcessEventsFlag>, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#property">property</a> ( const char * ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#quit">quit</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#quitOnLastWindowClosed-prop">quitOnLastWindowClosed</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#qwsDecoration">qwsDecoration</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#qwsEventFilter">qwsEventFilter</a> ( QWSEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#qwsSetCustomColors">qwsSetCustomColors</a> ( QRgb *, int, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#qwsSetDecoration">qwsSetDecoration</a> ( QDecoration * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#qwsSetDecoration-2">qwsSetDecoration</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#receivers">receivers</a> ( const char * ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#removeEventFilter">removeEventFilter</a> ( QObject * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#removeLibraryPath">removeLibraryPath</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#removePostedEvents">removePostedEvents</a> ( QObject * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#removePostedEvents-2">removePostedEvents</a> ( QObject *, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#removeTranslator">removeTranslator</a> ( QTranslator * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#restoreOverrideCursor">restoreOverrideCursor</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#saveState">saveState</a> ( QSessionManager & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#saveStateRequest">saveStateRequest</a> ( QSessionManager & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#sendEvent">sendEvent</a> ( QObject *, QEvent * )</li>
|
||||
<li><div class="fn"/><a href="qtsingleapplication.html#sendMessage">sendMessage</a> ( const QString &, int ) : bool</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#sendPostedEvents">sendPostedEvents</a> ( QObject *, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#sendPostedEvents-2">sendPostedEvents</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#sender">sender</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#sessionId">sessionId</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#sessionKey">sessionKey</a> () const</li>
|
||||
<li><div class="fn"/><a href="qtsingleapplication.html#setActivationWindow">setActivationWindow</a> ( QWidget *, bool )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#setActiveWindow">setActiveWindow</a> ( QWidget * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationName-prop">setApplicationName</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationVersion-prop">setApplicationVersion</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#setAttribute">setAttribute</a> ( Qt::ApplicationAttribute, bool )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#autoMaximizeThreshold-prop">setAutoMaximizeThreshold</a> ( const int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#setColorSpec">setColorSpec</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#cursorFlashTime-prop">setCursorFlashTime</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#setDesktopSettingsAware">setDesktopSettingsAware</a> ( bool )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#doubleClickInterval-prop">setDoubleClickInterval</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#setEffectEnabled">setEffectEnabled</a> ( Qt::UIEffect, bool )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#setEventFilter">setEventFilter</a> ( EventFilter )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#setFont">setFont</a> ( const QFont &, const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#globalStrut-prop">setGlobalStrut</a> ( const QSize & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#setInputContext">setInputContext</a> ( QInputContext * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#keyboardInputInterval-prop">setKeyboardInputInterval</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#setKeypadNavigationEnabled">setKeypadNavigationEnabled</a> ( bool )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#layoutDirection-prop">setLayoutDirection</a> ( Qt::LayoutDirection )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#setLibraryPaths">setLibraryPaths</a> ( const QStringList & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#objectName-prop">setObjectName</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#organizationDomain-prop">setOrganizationDomain</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#organizationName-prop">setOrganizationName</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#setOverrideCursor">setOverrideCursor</a> ( const QCursor & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#setPalette">setPalette</a> ( const QPalette &, const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#setParent">setParent</a> ( QObject * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#setProperty">setProperty</a> ( const char *, const QVariant & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#quitOnLastWindowClosed-prop">setQuitOnLastWindowClosed</a> ( bool )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#startDragDistance-prop">setStartDragDistance</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#startDragTime-prop">setStartDragTime</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#setStyle">setStyle</a> ( QStyle * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#setStyle-2">setStyle</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#styleSheet-prop">setStyleSheet</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#wheelScrollLines-prop">setWheelScrollLines</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#windowIcon-prop">setWindowIcon</a> ( const QIcon & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#signalsBlocked">signalsBlocked</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#startDragDistance-prop">startDragDistance</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#startDragTime-prop">startDragTime</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#startTimer">startTimer</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#startingUp">startingUp</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#staticMetaObject-var">staticMetaObject</a> : </li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#staticQtMetaObject-var">staticQtMetaObject</a> : </li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#style">style</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#styleSheet-prop">styleSheet</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#syncX">syncX</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#testAttribute">testAttribute</a> ( Qt::ApplicationAttribute )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#thread">thread</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#timerEvent">timerEvent</a> ( QTimerEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#topLevelAt">topLevelAt</a> ( const QPoint & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#topLevelAt-2">topLevelAt</a> ( int, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#topLevelWidgets">topLevelWidgets</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#tr">tr</a> ( const char *, const char *, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#trUtf8">trUtf8</a> ( const char *, const char *, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#translate">translate</a> ( const char *, const char *, const char *, Encoding, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#translate-2">translate</a> ( const char *, const char *, const char *, Encoding )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#type">type</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#wheelScrollLines-prop">wheelScrollLines</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#widgetAt">widgetAt</a> ( const QPoint & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#widgetAt-4">widgetAt</a> ( int, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#winEventFilter">winEventFilter</a> ( MSG *, long * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#windowIcon-prop">windowIcon</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#x11EventFilter">x11EventFilter</a> ( XEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qapplication.html#x11ProcessEvent">x11ProcessEvent</a> ( XEvent * )</li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#notify">notify</a></b> ( QObject *, QEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#objectName-prop">objectName</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#organizationDomain-prop">organizationDomain</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#organizationName-prop">organizationName</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#overrideCursor">overrideCursor</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#palette">palette</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#palette-2">palette</a></b> ( const QWidget * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#palette-3">palette</a></b> ( const char * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#parent">parent</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#postEvent">postEvent</a></b> ( QObject *, QEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#postEvent-2">postEvent</a></b> ( QObject *, QEvent *, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#processEvents">processEvents</a></b> ( QFlags<QEventLoop::ProcessEventsFlag> )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#processEvents-2">processEvents</a></b> ( QFlags<QEventLoop::ProcessEventsFlag>, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#property">property</a></b> ( const char * ) const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#quit">quit</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#quitOnLastWindowClosed-prop">quitOnLastWindowClosed</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#qwsDecoration">qwsDecoration</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#qwsEventFilter">qwsEventFilter</a></b> ( QWSEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#qwsSetCustomColors">qwsSetCustomColors</a></b> ( QRgb *, int, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#qwsSetDecoration">qwsSetDecoration</a></b> ( QDecoration * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#qwsSetDecoration-2">qwsSetDecoration</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#receivers">receivers</a></b> ( const char * ) const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#removeEventFilter">removeEventFilter</a></b> ( QObject * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#removeLibraryPath">removeLibraryPath</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#removePostedEvents">removePostedEvents</a></b> ( QObject * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#removePostedEvents-2">removePostedEvents</a></b> ( QObject *, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#removeTranslator">removeTranslator</a></b> ( QTranslator * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#restoreOverrideCursor">restoreOverrideCursor</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#saveState">saveState</a></b> ( QSessionManager & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#saveStateRequest">saveStateRequest</a></b> ( QSessionManager & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#sendEvent">sendEvent</a></b> ( QObject *, QEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="qtsingleapplication.html#sendMessage">sendMessage</a></b> ( const QString &, int ) : bool</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#sendPostedEvents">sendPostedEvents</a></b> ( QObject *, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#sendPostedEvents-2">sendPostedEvents</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#sender">sender</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#sessionId">sessionId</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#sessionKey">sessionKey</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="qtsingleapplication.html#setActivationWindow">setActivationWindow</a></b> ( QWidget *, bool )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#setActiveWindow">setActiveWindow</a></b> ( QWidget * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationName-prop">setApplicationName</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationVersion-prop">setApplicationVersion</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#setAttribute">setAttribute</a></b> ( Qt::ApplicationAttribute, bool )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#autoMaximizeThreshold-prop">setAutoMaximizeThreshold</a></b> ( const int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#autoSipEnabled-prop">setAutoSipEnabled</a></b> ( const bool )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#setColorSpec">setColorSpec</a></b> ( int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#cursorFlashTime-prop">setCursorFlashTime</a></b> ( int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#setDesktopSettingsAware">setDesktopSettingsAware</a></b> ( bool )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#doubleClickInterval-prop">setDoubleClickInterval</a></b> ( int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#setEffectEnabled">setEffectEnabled</a></b> ( Qt::UIEffect, bool )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#setEventFilter">setEventFilter</a></b> ( EventFilter )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#setFont">setFont</a></b> ( const QFont &, const char * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#globalStrut-prop">setGlobalStrut</a></b> ( const QSize & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#setGraphicsSystem">setGraphicsSystem</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#setInputContext">setInputContext</a></b> ( QInputContext * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#keyboardInputInterval-prop">setKeyboardInputInterval</a></b> ( int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#layoutDirection-prop">setLayoutDirection</a></b> ( Qt::LayoutDirection )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#setLibraryPaths">setLibraryPaths</a></b> ( const QStringList & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#setNavigationMode">setNavigationMode</a></b> ( Qt::NavigationMode )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#objectName-prop">setObjectName</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#organizationDomain-prop">setOrganizationDomain</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#organizationName-prop">setOrganizationName</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#setOverrideCursor">setOverrideCursor</a></b> ( const QCursor & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#setPalette">setPalette</a></b> ( const QPalette &, const char * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#setParent">setParent</a></b> ( QObject * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#setProperty">setProperty</a></b> ( const char *, const QVariant & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#quitOnLastWindowClosed-prop">setQuitOnLastWindowClosed</a></b> ( bool )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#startDragDistance-prop">setStartDragDistance</a></b> ( int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#startDragTime-prop">setStartDragTime</a></b> ( int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#setStyle">setStyle</a></b> ( QStyle * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#setStyle-2">setStyle</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#styleSheet-prop">setStyleSheet</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#wheelScrollLines-prop">setWheelScrollLines</a></b> ( int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#windowIcon-prop">setWindowIcon</a></b> ( const QIcon & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#signalsBlocked">signalsBlocked</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#startDragDistance-prop">startDragDistance</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#startDragTime-prop">startDragTime</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#startTimer">startTimer</a></b> ( int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#startingUp">startingUp</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#staticMetaObject-var">staticMetaObject</a></b> : </div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#staticQtMetaObject-var">staticQtMetaObject</a></b> : </div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#style">style</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#styleSheet-prop">styleSheet</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#symbianEventFilter">symbianEventFilter</a></b> ( const QSymbianEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#symbianProcessEvent">symbianProcessEvent</a></b> ( const QSymbianEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#syncX">syncX</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#testAttribute">testAttribute</a></b> ( Qt::ApplicationAttribute )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#thread">thread</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#timerEvent">timerEvent</a></b> ( QTimerEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#topLevelAt">topLevelAt</a></b> ( const QPoint & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#topLevelAt-2">topLevelAt</a></b> ( int, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#topLevelWidgets">topLevelWidgets</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#tr">tr</a></b> ( const char *, const char *, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#trUtf8">trUtf8</a></b> ( const char *, const char *, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#translate">translate</a></b> ( const char *, const char *, const char *, Encoding, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#translate-2">translate</a></b> ( const char *, const char *, const char *, Encoding )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#type">type</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#wheelScrollLines-prop">wheelScrollLines</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#widgetAt">widgetAt</a></b> ( const QPoint & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#widgetAt-4">widgetAt</a></b> ( int, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#winEventFilter">winEventFilter</a></b> ( MSG *, long * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#windowIcon-prop">windowIcon</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#x11EventFilter">x11EventFilter</a></b> ( XEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qapplication.html#x11ProcessEvent">x11ProcessEvent</a></b> ( XEvent * )</div></li>
|
||||
</ul>
|
||||
</td></tr>
|
||||
</table></p>
|
||||
<p /><address><hr /><div align="center">
|
||||
<table width="100%" cellspacing="0" border="0"><tr class="address">
|
||||
<td width="30%" align="left">Copyright © 2009 Nokia</td>
|
||||
<td width="40%" align="center"><a href="http://doc.trolltech.com/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
|
||||
<td width="40%" align="center"><a href="http://qt.nokia.com/doc/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="right"><div align="right">Qt Solutions</div></td>
|
||||
</tr></table></div></address></body>
|
||||
</html>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<!-- qtsingleapplication-2.6-opensource/src/qtsingleapplication.cpp -->
|
||||
<!-- qtsingleapplication.cpp -->
|
||||
<head>
|
||||
<title>Obsolete Members for QtSingleApplication</title>
|
||||
<link href="classic.css" rel="stylesheet" type="text/css" />
|
||||
|
@ -15,17 +15,17 @@
|
|||
</tr></table><h1 class="title">Obsolete Members for QtSingleApplication</h1>
|
||||
<p><b>The following class members are obsolete.</b> They are provided to keep old source code working. We strongly advise against using them in new code.</p>
|
||||
<p><ul><li><a href="qtsingleapplication.html">QtSingleApplication class reference</a></li></ul></p>
|
||||
<h3>Public Functions</h3>
|
||||
<ul>
|
||||
<li><div class="fn"/>void <b><a href="qtsingleapplication-obsolete.html#initialize">initialize</a></b> ( bool <i>dummy</i> = true ) <tt> (obsolete)</tt></li>
|
||||
</ul>
|
||||
<h2>Public Functions</h2>
|
||||
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtsingleapplication-obsolete.html#initialize">initialize</a></b> ( bool <i>dummy</i> = true ) <tt> (obsolete)</tt></td></tr>
|
||||
</table>
|
||||
<hr />
|
||||
<h2>Member Function Documentation</h2>
|
||||
<h3 class="fn"><a name="initialize"></a>void QtSingleApplication::initialize ( bool <i>dummy</i> = true )</h3>
|
||||
<p /><address><hr /><div align="center">
|
||||
<table width="100%" cellspacing="0" border="0"><tr class="address">
|
||||
<td width="30%" align="left">Copyright © 2009 Nokia</td>
|
||||
<td width="40%" align="center"><a href="http://doc.trolltech.com/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
|
||||
<td width="40%" align="center"><a href="http://qt.nokia.com/doc/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="right"><div align="right">Qt Solutions</div></td>
|
||||
</tr></table></div></address></body>
|
||||
</html>
|
||||
|
|
|
@ -1,19 +1,6 @@
|
|||
<!DOCTYPE DCF>
|
||||
<DCF ref="index.html" icon="qtsingleapplication.png" imagedir="../../gif" title="Qt Solutions: Single Application Documentation">
|
||||
<section ref="classes.html" title="Classes">
|
||||
<section ref="qtlockedfile.html" title="QtLockedFile Class Reference">
|
||||
<keyword ref="qtlockedfile.html">QtLockedFile</keyword>
|
||||
<keyword ref="qtlockedfile.html#LockMode-enum">LockMode</keyword>
|
||||
<keyword ref="qtlockedfile.html#LockMode-enum">QtLockedFile::WriteLock</keyword>
|
||||
<keyword ref="qtlockedfile.html#LockMode-enum">QtLockedFile::NoLock</keyword>
|
||||
<keyword ref="qtlockedfile.html#LockMode-enum">QtLockedFile::ReadLock</keyword>
|
||||
<keyword ref="qtlockedfile.html#isLocked">isLocked</keyword>
|
||||
<keyword ref="qtlockedfile.html#lock">lock</keyword>
|
||||
<keyword ref="qtlockedfile.html#lockMode">lockMode</keyword>
|
||||
<keyword ref="qtlockedfile.html#open">open</keyword>
|
||||
<keyword ref="qtlockedfile.html#unlock">unlock</keyword>
|
||||
<section ref="qtlockedfile-members.html" title="List of all members"/>
|
||||
</section>
|
||||
<section ref="qtsingleapplication.html" title="QtSingleApplication Class Reference">
|
||||
<keyword ref="qtsingleapplication.html">QtSingleApplication</keyword>
|
||||
<keyword ref="qtsingleapplication.html#activateWindow">activateWindow</keyword>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<!-- qtsingleapplication-2.6-opensource/src/qtsingleapplication.cpp -->
|
||||
<!-- qtsingleapplication.cpp -->
|
||||
<head>
|
||||
<title>QtSingleApplication Class Reference</title>
|
||||
<link href="classic.css" rel="stylesheet" type="text/css" />
|
||||
|
@ -14,62 +14,67 @@
|
|||
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a></td>
|
||||
</tr></table><h1 class="title">QtSingleApplication Class Reference</h1>
|
||||
<p>The QtSingleApplication class provides an API to detect and communicate with running instances of an application. <a href="#details">More...</a></p>
|
||||
<pre> #include <QtSingleApplication></pre><p>Inherits <a href="http://doc.trolltech.com/4.4/qapplication.html">QApplication</a>.</p>
|
||||
<pre> #include <QtSingleApplication></pre><p>Inherits <a href="http://qt.nokia.com/doc/4.6/qapplication.html">QApplication</a>.</p>
|
||||
<ul>
|
||||
<li><a href="qtsingleapplication-members.html">List of all members, including inherited members</a></li>
|
||||
<li><a href="qtsingleapplication-obsolete.html">Obsolete members</a></li>
|
||||
</ul>
|
||||
<hr />
|
||||
<a name="public-functions"></a>
|
||||
<h3>Public Functions</h3>
|
||||
<h2>Public Functions</h2>
|
||||
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtsingleapplication.html#QtSingleApplication">QtSingleApplication</a></b> ( int & <i>argc</i>, char ** <i>argv</i>, bool <i>GUIenabled</i> = true )</td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtsingleapplication.html#QtSingleApplication-2">QtSingleApplication</a></b> ( const QString & <i>appId</i>, int & <i>argc</i>, char ** <i>argv</i> )</td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtsingleapplication.html#QtSingleApplication-3">QtSingleApplication</a></b> ( int & <i>argc</i>, char ** <i>argv</i>, Type <i>type</i> )</td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtsingleapplication.html#QtSingleApplication-4">QtSingleApplication</a></b> ( Display * <i>dpy</i>, Qt::HANDLE <i>visual</i> = 0, Qt::HANDLE <i>cmap</i> = 0 )</td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtsingleapplication.html#QtSingleApplication-5">QtSingleApplication</a></b> ( Display * <i>dpy</i>, int & <i>argc</i>, char ** <i>argv</i>, Qt::HANDLE <i>visual</i> = 0, Qt::HANDLE <i>cmap</i> = 0 )</td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtsingleapplication.html#QtSingleApplication-6">QtSingleApplication</a></b> ( Display * <i>dpy</i>, const QString & <i>appId</i>, int <i>argc</i>, char ** <i>argv</i>, Qt::HANDLE <i>visual</i> = 0, Qt::HANDLE <i>cmap</i> = 0 )</td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">QWidget * </td><td class="memItemRight" valign="bottom"><b><a href="qtsingleapplication.html#activationWindow">activationWindow</a></b> () const</td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qtsingleapplication.html#id">id</a></b> () const</td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qtsingleapplication.html#isRunning">isRunning</a></b> ()</td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtsingleapplication.html#setActivationWindow">setActivationWindow</a></b> ( QWidget * <i>aw</i>, bool <i>activateOnMessage</i> = true )</td></tr>
|
||||
</table>
|
||||
<ul>
|
||||
<li><div class="fn"/><b><a href="qtsingleapplication.html#QtSingleApplication">QtSingleApplication</a></b> ( int & <i>argc</i>, char ** <i>argv</i>, bool <i>GUIenabled</i> = true )</li>
|
||||
<li><div class="fn"/><b><a href="qtsingleapplication.html#QtSingleApplication-2">QtSingleApplication</a></b> ( const QString & <i>appId</i>, int & <i>argc</i>, char ** <i>argv</i> )</li>
|
||||
<li><div class="fn"/><b><a href="qtsingleapplication.html#QtSingleApplication-3">QtSingleApplication</a></b> ( int & <i>argc</i>, char ** <i>argv</i>, Type <i>type</i> )</li>
|
||||
<li><div class="fn"/><b><a href="qtsingleapplication.html#QtSingleApplication-4">QtSingleApplication</a></b> ( Display * <i>dpy</i>, Qt::HANDLE <i>visual</i> = 0, Qt::HANDLE <i>cmap</i> = 0 )</li>
|
||||
<li><div class="fn"/><b><a href="qtsingleapplication.html#QtSingleApplication-5">QtSingleApplication</a></b> ( Display * <i>dpy</i>, int & <i>argc</i>, char ** <i>argv</i>, Qt::HANDLE <i>visual</i> = 0, Qt::HANDLE <i>cmap</i> = 0 )</li>
|
||||
<li><div class="fn"/><b><a href="qtsingleapplication.html#QtSingleApplication-6">QtSingleApplication</a></b> ( Display * <i>dpy</i>, const QString & <i>appId</i>, int <i>argc</i>, char ** <i>argv</i>, Qt::HANDLE <i>visual</i> = 0, Qt::HANDLE <i>cmap</i> = 0 )</li>
|
||||
<li><div class="fn"/>QWidget * <b><a href="qtsingleapplication.html#activationWindow">activationWindow</a></b> () const</li>
|
||||
<li><div class="fn"/>QString <b><a href="qtsingleapplication.html#id">id</a></b> () const</li>
|
||||
<li><div class="fn"/>bool <b><a href="qtsingleapplication.html#isRunning">isRunning</a></b> ()</li>
|
||||
<li><div class="fn"/>void <b><a href="qtsingleapplication.html#setActivationWindow">setActivationWindow</a></b> ( QWidget * <i>aw</i>, bool <i>activateOnMessage</i> = true )</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><div class="fn"/>13 public functions inherited from <a href="http://doc.trolltech.com/4.4/qapplication.html#public-functions">QApplication</a></li>
|
||||
<li><div class="fn"/>4 public functions inherited from <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#public-functions">QCoreApplication</a></li>
|
||||
<li><div class="fn"/>29 public functions inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#public-functions">QObject</a></li>
|
||||
<li><div bar="2" class="fn"></div>16 public functions inherited from <a href="http://qt.nokia.com/doc/4.6/qapplication.html#public-functions">QApplication</a></li>
|
||||
<li><div bar="2" class="fn"></div>4 public functions inherited from <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#public-functions">QCoreApplication</a></li>
|
||||
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#public-functions">QObject</a></li>
|
||||
</ul>
|
||||
<hr />
|
||||
<a name="public-slots"></a>
|
||||
<h3>Public Slots</h3>
|
||||
<h2>Public Slots</h2>
|
||||
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtsingleapplication.html#activateWindow">activateWindow</a></b> ()</td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qtsingleapplication.html#sendMessage">sendMessage</a></b> ( const QString & <i>message</i>, int <i>timeout</i> = 5000 )</td></tr>
|
||||
</table>
|
||||
<ul>
|
||||
<li><div class="fn"/>void <b><a href="qtsingleapplication.html#activateWindow">activateWindow</a></b> ()</li>
|
||||
<li><div class="fn"/>bool <b><a href="qtsingleapplication.html#sendMessage">sendMessage</a></b> ( const QString & <i>message</i>, int <i>timeout</i> = 5000 )</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><div class="fn"/>5 public slots inherited from <a href="http://doc.trolltech.com/4.4/qapplication.html#public-slots">QApplication</a></li>
|
||||
<li><div class="fn"/>1 public slot inherited from <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#public-slots">QCoreApplication</a></li>
|
||||
<li><div class="fn"/>1 public slot inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#public-slots">QObject</a></li>
|
||||
<li><div bar="2" class="fn"></div>7 public slots inherited from <a href="http://qt.nokia.com/doc/4.6/qapplication.html#public-slots">QApplication</a></li>
|
||||
<li><div bar="2" class="fn"></div>1 public slot inherited from <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#public-slots">QCoreApplication</a></li>
|
||||
<li><div bar="2" class="fn"></div>1 public slot inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#public-slots">QObject</a></li>
|
||||
</ul>
|
||||
<hr />
|
||||
<a name="signals"></a>
|
||||
<h3>Signals</h3>
|
||||
<h2>Signals</h2>
|
||||
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtsingleapplication.html#messageReceived">messageReceived</a></b> ( const QString & <i>message</i> )</td></tr>
|
||||
</table>
|
||||
<ul>
|
||||
<li><div class="fn"/>void <b><a href="qtsingleapplication.html#messageReceived">messageReceived</a></b> ( const QString & <i>message</i> )</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><div class="fn"/>4 signals inherited from <a href="http://doc.trolltech.com/4.4/qapplication.html#signals">QApplication</a></li>
|
||||
<li><div class="fn"/>1 signal inherited from <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#signals">QCoreApplication</a></li>
|
||||
<li><div class="fn"/>1 signal inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#signals">QObject</a></li>
|
||||
<li><div bar="2" class="fn"></div>5 signals inherited from <a href="http://qt.nokia.com/doc/4.6/qapplication.html#signals">QApplication</a></li>
|
||||
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#signals">QCoreApplication</a></li>
|
||||
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#signals">QObject</a></li>
|
||||
</ul>
|
||||
<h3>Additional Inherited Members</h3>
|
||||
<ul>
|
||||
<li><div class="fn"/>12 properties inherited from <a href="http://doc.trolltech.com/4.4/qapplication.html#properties">QApplication</a></li>
|
||||
<li><div class="fn"/>4 properties inherited from <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#properties">QCoreApplication</a></li>
|
||||
<li><div class="fn"/>1 property inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#properties">QObject</a></li>
|
||||
<li><div class="fn"/>1 public type inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#public-variables">QObject</a></li>
|
||||
<li><div class="fn"/>71 static public members inherited from <a href="http://doc.trolltech.com/4.4/qapplication.html#static-public-members">QApplication</a></li>
|
||||
<li><div class="fn"/>38 static public members inherited from <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#static-public-members">QCoreApplication</a></li>
|
||||
<li><div class="fn"/>4 static public members inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#static-public-members">QObject</a></li>
|
||||
<li><div class="fn"/>7 protected functions inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#protected-functions">QObject</a></li>
|
||||
<li><div class="fn"/>2 protected variables inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#protected-variables">QObject</a></li>
|
||||
<li><div class="fn"></div>13 properties inherited from <a href="http://qt.nokia.com/doc/4.6/qapplication.html#properties">QApplication</a></li>
|
||||
<li><div class="fn"></div>4 properties inherited from <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#properties">QCoreApplication</a></li>
|
||||
<li><div class="fn"></div>1 property inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#properties">QObject</a></li>
|
||||
<li><div class="fn"></div>1 public type inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#public-variables">QObject</a></li>
|
||||
<li><div class="fn"></div>73 static public members inherited from <a href="http://qt.nokia.com/doc/4.6/qapplication.html#static-public-members">QApplication</a></li>
|
||||
<li><div class="fn"></div>38 static public members inherited from <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#static-public-members">QCoreApplication</a></li>
|
||||
<li><div class="fn"></div>4 static public members inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#static-public-members">QObject</a></li>
|
||||
<li><div class="fn"></div>1 protected function inherited from <a href="http://qt.nokia.com/doc/4.6/qapplication.html#protected-functions">QApplication</a></li>
|
||||
<li><div class="fn"></div>1 protected function inherited from <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#protected-functions">QCoreApplication</a></li>
|
||||
<li><div class="fn"></div>7 protected functions inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#protected-functions">QObject</a></li>
|
||||
<li><div class="fn"></div>2 protected variables inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#protected-variables">QObject</a></li>
|
||||
</ul>
|
||||
<a name="details"></a>
|
||||
<hr />
|
||||
|
@ -77,10 +82,10 @@
|
|||
<p>The QtSingleApplication class provides an API to detect and communicate with running instances of an application.</p>
|
||||
<p>This class allows you to create applications where only one instance should be running at a time. I.e., if the user tries to launch another instance, the already running instance will be activated instead. Another usecase is a client-server system, where the first started instance will assume the role of server, and the later instances will act as clients of that server.</p>
|
||||
<p>By default, the full path of the executable file is used to determine whether two processes are instances of the same application. You can also provide an explicit identifier string that will be compared instead.</p>
|
||||
<p>The application should create the QtSingleApplication object early in the startup phase, and call <a href="qtsingleapplication.html#isRunning">isRunning</a>() or <a href="qtsingleapplication.html#sendMessage">sendMessage</a>() to find out if another instance of this application is already running. Startup parameters (e.g. the name of the file the user wanted this new instance to open) can be passed to the running instance in the <a href="qtsingleapplication.html#sendMessage">sendMessage</a>() function.</p>
|
||||
<p>If <a href="qtsingleapplication.html#isRunning">isRunning</a>() or <a href="qtsingleapplication.html#sendMessage">sendMessage</a>() returns false, it means that no other instance is running, and this instance has assumed the role as the running instance. The application should continue with the initialization of the application user interface before entering the event loop with <a href="http://doc.trolltech.com/4.4/qapplication.html#exec">exec</a>(), as normal. The <a href="qtsingleapplication.html#messageReceived">messageReceived</a>() signal will be emitted when the application receives messages from another instance of the same application.</p>
|
||||
<p>If <a href="qtsingleapplication.html#isRunning">isRunning</a>() or <a href="qtsingleapplication.html#sendMessage">sendMessage</a>() returns true, another instance is already running, and the application should terminate or enter client mode.</p>
|
||||
<p>If a message is received it might be helpful to the user to raise the application so that it becomes visible. To facilitate this, QtSingleApplication provides the <a href="qtsingleapplication.html#setActivationWindow">setActivationWindow</a>() function and the <a href="qtsingleapplication.html#activateWindow">activateWindow</a>() slot.</p>
|
||||
<p>The application should create the QtSingleApplication object early in the startup phase, and call <a href="qtsingleapplication.html#isRunning">isRunning</a>() to find out if another instance of this application is already running. If <a href="qtsingleapplication.html#isRunning">isRunning</a>() returns false, it means that no other instance is running, and this instance has assumed the role as the running instance. In this case, the application should continue with the initialization of the application user interface before entering the event loop with <a href="http://qt.nokia.com/doc/4.6/qapplication.html#exec">exec</a>(), as normal.</p>
|
||||
<p>The <a href="qtsingleapplication.html#messageReceived">messageReceived</a>() signal will be emitted when the running application receives messages from another instance of the same application. When a message is received it might be helpful to the user to raise the application so that it becomes visible. To facilitate this, QtSingleApplication provides the <a href="qtsingleapplication.html#setActivationWindow">setActivationWindow</a>() function and the <a href="qtsingleapplication.html#activateWindow">activateWindow</a>() slot.</p>
|
||||
<p>If <a href="qtsingleapplication.html#isRunning">isRunning</a>() returns true, another instance is already running. It may be alerted to the fact that another instance has started by using the <a href="qtsingleapplication.html#sendMessage">sendMessage</a>() function. Also data such as startup parameters (e.g. the name of the file the user wanted this new instance to open) can be passed to the running instance with this function. Then, the application should terminate (or enter client mode).</p>
|
||||
<p>If <a href="qtsingleapplication.html#isRunning">isRunning</a>() returns true, but <a href="qtsingleapplication.html#sendMessage">sendMessage</a>() fails, that is an indication that the running instance is frozen.</p>
|
||||
<p>Here's an example that shows how to convert an existing application to use QtSingleApplication. It is very simple and does not make use of all QtSingleApplication's functionality (see the examples for that).</p>
|
||||
<pre><span class="comment"> // Original</span>
|
||||
int main(int argc, char **argv)
|
||||
|
@ -88,7 +93,6 @@
|
|||
QApplication app(argc, argv);
|
||||
|
||||
MyMainWidget mmw;
|
||||
|
||||
mmw.show();
|
||||
return app.exec();
|
||||
}
|
||||
|
@ -99,62 +103,60 @@
|
|||
QtSingleApplication app(argc, argv);
|
||||
|
||||
if (app.isRunning())
|
||||
return 0;
|
||||
return !app.sendMessage(someDataString);
|
||||
|
||||
MyMainWidget mmw;
|
||||
|
||||
app.setActivationWindow(&mmw);
|
||||
|
||||
mmw.show();
|
||||
return app.exec();
|
||||
}</pre>
|
||||
<p>Once this QtSingleApplication instance is destroyed(for example, when the user quits), when the user next attempts to run the application this instance will not, of course, be encountered. The next instance to call <a href="qtsingleapplication.html#isRunning">isRunning</a>() or <a href="qtsingleapplication.html#sendMessage">sendMessage</a>() will assume the role as the new running instance.</p>
|
||||
<p>For console (non-GUI) applications, <a href="qtsinglecoreapplication.html">QtSingleCoreApplication</a> may be used instead of this class, to avoid the dependency on the <a href="http://doc.trolltech.com/4.4/qtgui.html">QtGui</a> library.</p>
|
||||
<p>Once this QtSingleApplication instance is destroyed (normally when the process exits or crashes), when the user next attempts to run the application this instance will not, of course, be encountered. The next instance to call <a href="qtsingleapplication.html#isRunning">isRunning</a>() or <a href="qtsingleapplication.html#sendMessage">sendMessage</a>() will assume the role as the new running instance.</p>
|
||||
<p>For console (non-GUI) applications, <a href="qtsinglecoreapplication.html">QtSingleCoreApplication</a> may be used instead of this class, to avoid the dependency on the <a href="http://qt.nokia.com/doc/4.6/qtgui.html">QtGui</a> library.</p>
|
||||
<p>See also <a href="qtsinglecoreapplication.html">QtSingleCoreApplication</a>.</p>
|
||||
<hr />
|
||||
<h2>Member Function Documentation</h2>
|
||||
<h3 class="fn"><a name="QtSingleApplication"></a>QtSingleApplication::QtSingleApplication ( int & <i>argc</i>, char ** <i>argv</i>, bool <i>GUIenabled</i> = true )</h3>
|
||||
<p>Creates a <a href="qtsingleapplication.html">QtSingleApplication</a> object. The application identifier will be <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationFilePath">QCoreApplication::applicationFilePath</a>(). <i>argc</i>, <i>argv</i>, and <i>GUIenabled</i> are passed on to the QAppliation constructor.</p>
|
||||
<p>Creates a <a href="qtsingleapplication.html">QtSingleApplication</a> object. The application identifier will be <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationFilePath">QCoreApplication::applicationFilePath</a>(). <i>argc</i>, <i>argv</i>, and <i>GUIenabled</i> are passed on to the QAppliation constructor.</p>
|
||||
<p>If you are creating a console application (i.e. setting <i>GUIenabled</i> to false), you may consider using <a href="qtsinglecoreapplication.html">QtSingleCoreApplication</a> instead.</p>
|
||||
<h3 class="fn"><a name="QtSingleApplication-2"></a>QtSingleApplication::QtSingleApplication ( const <a href="http://doc.trolltech.com/4.4/qstring.html">QString</a> & <i>appId</i>, int & <i>argc</i>, char ** <i>argv</i> )</h3>
|
||||
<h3 class="fn"><a name="QtSingleApplication-2"></a>QtSingleApplication::QtSingleApplication ( const <a href="http://qt.nokia.com/doc/4.6/qstring.html">QString</a> & <i>appId</i>, int & <i>argc</i>, char ** <i>argv</i> )</h3>
|
||||
<p>Creates a <a href="qtsingleapplication.html">QtSingleApplication</a> object with the application identifier <i>appId</i>. <i>argc</i> and <i>argv</i> are passed on to the QAppliation constructor.</p>
|
||||
<h3 class="fn"><a name="QtSingleApplication-3"></a>QtSingleApplication::QtSingleApplication ( int & <i>argc</i>, char ** <i>argv</i>, <a href="http://doc.trolltech.com/4.4/qapplication.html#Type-enum">Type</a> <i>type</i> )</h3>
|
||||
<p>Creates a <a href="qtsingleapplication.html">QtSingleApplication</a> object. The application identifier will be <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationFilePath">QCoreApplication::applicationFilePath</a>(). <i>argc</i>, <i>argv</i>, and <i>type</i> are passed on to the QAppliation constructor.</p>
|
||||
<h3 class="fn"><a name="QtSingleApplication-4"></a>QtSingleApplication::QtSingleApplication ( Display * <i>dpy</i>, <a href="http://doc.trolltech.com/4.4/qt.html#HANDLE-typedef">Qt::HANDLE</a> <i>visual</i> = 0, <a href="http://doc.trolltech.com/4.4/qt.html#HANDLE-typedef">Qt::HANDLE</a> <i>cmap</i> = 0 )</h3>
|
||||
<p>Special constructor for X11, ref. the documentation of <a href="http://doc.trolltech.com/4.4/qapplication.html">QApplication</a>'s corresponding constructor. The application identifier will be <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationFilePath">QCoreApplication::applicationFilePath</a>(). <i>dpy</i>, <i>visual</i>, and <i>cmap</i> are passed on to the <a href="http://doc.trolltech.com/4.4/qapplication.html">QApplication</a> constructor.</p>
|
||||
<h3 class="fn"><a name="QtSingleApplication-5"></a>QtSingleApplication::QtSingleApplication ( Display * <i>dpy</i>, int & <i>argc</i>, char ** <i>argv</i>, <a href="http://doc.trolltech.com/4.4/qt.html#HANDLE-typedef">Qt::HANDLE</a> <i>visual</i> = 0, <a href="http://doc.trolltech.com/4.4/qt.html#HANDLE-typedef">Qt::HANDLE</a> <i>cmap</i> = 0 )</h3>
|
||||
<p>Special constructor for X11, ref. the documentation of <a href="http://doc.trolltech.com/4.4/qapplication.html">QApplication</a>'s corresponding constructor. The application identifier will be <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationFilePath">QCoreApplication::applicationFilePath</a>(). <i>dpy</i>, <i>argc</i>, <i>argv</i>, <i>visual</i>, and <i>cmap</i> are passed on to the <a href="http://doc.trolltech.com/4.4/qapplication.html">QApplication</a> constructor.</p>
|
||||
<h3 class="fn"><a name="QtSingleApplication-6"></a>QtSingleApplication::QtSingleApplication ( Display * <i>dpy</i>, const <a href="http://doc.trolltech.com/4.4/qstring.html">QString</a> & <i>appId</i>, int <i>argc</i>, char ** <i>argv</i>, <a href="http://doc.trolltech.com/4.4/qt.html#HANDLE-typedef">Qt::HANDLE</a> <i>visual</i> = 0, <a href="http://doc.trolltech.com/4.4/qt.html#HANDLE-typedef">Qt::HANDLE</a> <i>cmap</i> = 0 )</h3>
|
||||
<p>Special constructor for X11, ref. the documentation of <a href="http://doc.trolltech.com/4.4/qapplication.html">QApplication</a>'s corresponding constructor. The application identifier will be <i>appId</i>. <i>dpy</i>, <i>argc</i>, <i>argv</i>, <i>visual</i>, and <i>cmap</i> are passed on to the <a href="http://doc.trolltech.com/4.4/qapplication.html">QApplication</a> constructor.</p>
|
||||
<h3 class="fn"><a name="QtSingleApplication-3"></a>QtSingleApplication::QtSingleApplication ( int & <i>argc</i>, char ** <i>argv</i>, <a href="http://qt.nokia.com/doc/4.6/qapplication.html#Type-enum">Type</a> <i>type</i> )</h3>
|
||||
<p>Creates a <a href="qtsingleapplication.html">QtSingleApplication</a> object. The application identifier will be <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationFilePath">QCoreApplication::applicationFilePath</a>(). <i>argc</i>, <i>argv</i>, and <i>type</i> are passed on to the QAppliation constructor.</p>
|
||||
<h3 class="fn"><a name="QtSingleApplication-4"></a>QtSingleApplication::QtSingleApplication ( Display * <i>dpy</i>, <a href="http://qt.nokia.com/doc/4.6/qt.html#HANDLE-typedef">Qt::HANDLE</a> <i>visual</i> = 0, <a href="http://qt.nokia.com/doc/4.6/qt.html#HANDLE-typedef">Qt::HANDLE</a> <i>cmap</i> = 0 )</h3>
|
||||
<p>Special constructor for X11, ref. the documentation of <a href="http://qt.nokia.com/doc/4.6/qapplication.html">QApplication</a>'s corresponding constructor. The application identifier will be <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationFilePath">QCoreApplication::applicationFilePath</a>(). <i>dpy</i>, <i>visual</i>, and <i>cmap</i> are passed on to the <a href="http://qt.nokia.com/doc/4.6/qapplication.html">QApplication</a> constructor.</p>
|
||||
<h3 class="fn"><a name="QtSingleApplication-5"></a>QtSingleApplication::QtSingleApplication ( Display * <i>dpy</i>, int & <i>argc</i>, char ** <i>argv</i>, <a href="http://qt.nokia.com/doc/4.6/qt.html#HANDLE-typedef">Qt::HANDLE</a> <i>visual</i> = 0, <a href="http://qt.nokia.com/doc/4.6/qt.html#HANDLE-typedef">Qt::HANDLE</a> <i>cmap</i> = 0 )</h3>
|
||||
<p>Special constructor for X11, ref. the documentation of <a href="http://qt.nokia.com/doc/4.6/qapplication.html">QApplication</a>'s corresponding constructor. The application identifier will be <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationFilePath">QCoreApplication::applicationFilePath</a>(). <i>dpy</i>, <i>argc</i>, <i>argv</i>, <i>visual</i>, and <i>cmap</i> are passed on to the <a href="http://qt.nokia.com/doc/4.6/qapplication.html">QApplication</a> constructor.</p>
|
||||
<h3 class="fn"><a name="QtSingleApplication-6"></a>QtSingleApplication::QtSingleApplication ( Display * <i>dpy</i>, const <a href="http://qt.nokia.com/doc/4.6/qstring.html">QString</a> & <i>appId</i>, int <i>argc</i>, char ** <i>argv</i>, <a href="http://qt.nokia.com/doc/4.6/qt.html#HANDLE-typedef">Qt::HANDLE</a> <i>visual</i> = 0, <a href="http://qt.nokia.com/doc/4.6/qt.html#HANDLE-typedef">Qt::HANDLE</a> <i>cmap</i> = 0 )</h3>
|
||||
<p>Special constructor for X11, ref. the documentation of <a href="http://qt.nokia.com/doc/4.6/qapplication.html">QApplication</a>'s corresponding constructor. The application identifier will be <i>appId</i>. <i>dpy</i>, <i>argc</i>, <i>argv</i>, <i>visual</i>, and <i>cmap</i> are passed on to the <a href="http://qt.nokia.com/doc/4.6/qapplication.html">QApplication</a> constructor.</p>
|
||||
<h3 class="fn"><a name="activateWindow"></a>void QtSingleApplication::activateWindow () <tt> [slot]</tt></h3>
|
||||
<p>De-minimizes, raises, and activates this application's activation window. This function does nothing if no activation window has been set.</p>
|
||||
<p>This is a convenience function to show the user that this application instance has been activated when he has tried to start another instance.</p>
|
||||
<p>This function should typically be called in response to the <a href="qtsingleapplication.html#messageReceived">messageReceived</a>() signal. By default, that will happen automatically, if an activation window has been set.</p>
|
||||
<p>See also <a href="qtsingleapplication.html#setActivationWindow">setActivationWindow</a>(), <a href="qtsingleapplication.html#messageReceived">messageReceived</a>(), and <a href="qtsingleapplication-obsolete.html#initialize">initialize</a>().</p>
|
||||
<h3 class="fn"><a name="activationWindow"></a><a href="http://doc.trolltech.com/4.4/qwidget.html">QWidget</a> * QtSingleApplication::activationWindow () const</h3>
|
||||
<p>See also <a href="qtsingleapplication.html#setActivationWindow">setActivationWindow</a>(), <a href="qtsingleapplication.html#messageReceived">messageReceived</a>(), and <a href="qtsingleapplication-obsolete.html#initialize" class="obsolete">initialize</a>().</p>
|
||||
<h3 class="fn"><a name="activationWindow"></a><a href="http://qt.nokia.com/doc/4.6/qwidget.html">QWidget</a> * QtSingleApplication::activationWindow () const</h3>
|
||||
<p>Returns the applications activation window if one has been set by calling <a href="qtsingleapplication.html#setActivationWindow">setActivationWindow</a>(), otherwise returns 0.</p>
|
||||
<p>See also <a href="qtsingleapplication.html#setActivationWindow">setActivationWindow</a>().</p>
|
||||
<h3 class="fn"><a name="id"></a><a href="http://doc.trolltech.com/4.4/qstring.html">QString</a> QtSingleApplication::id () const</h3>
|
||||
<h3 class="fn"><a name="id"></a><a href="http://qt.nokia.com/doc/4.6/qstring.html">QString</a> QtSingleApplication::id () const</h3>
|
||||
<p>Returns the application identifier. Two processes with the same identifier will be regarded as instances of the same application.</p>
|
||||
<h3 class="fn"><a name="isRunning"></a>bool QtSingleApplication::isRunning ()</h3>
|
||||
<p>Returns true if another instance of this application is running; otherwise false.</p>
|
||||
<p>This function does not find instances of this application that are being run by a different user (on Windows: that are running in another session).</p>
|
||||
<p>See also <a href="qtsingleapplication.html#sendMessage">sendMessage</a>().</p>
|
||||
<h3 class="fn"><a name="messageReceived"></a>void QtSingleApplication::messageReceived ( const <a href="http://doc.trolltech.com/4.4/qstring.html">QString</a> & <i>message</i> ) <tt> [signal]</tt></h3>
|
||||
<h3 class="fn"><a name="messageReceived"></a>void QtSingleApplication::messageReceived ( const <a href="http://qt.nokia.com/doc/4.6/qstring.html">QString</a> & <i>message</i> ) <tt> [signal]</tt></h3>
|
||||
<p>This signal is emitted when the current instance receives a <i>message</i> from another instance of this application.</p>
|
||||
<p>See also <a href="qtsingleapplication.html#sendMessage">sendMessage</a>(), <a href="qtsingleapplication.html#setActivationWindow">setActivationWindow</a>(), and <a href="qtsingleapplication.html#activateWindow">activateWindow</a>().</p>
|
||||
<h3 class="fn"><a name="sendMessage"></a>bool QtSingleApplication::sendMessage ( const <a href="http://doc.trolltech.com/4.4/qstring.html">QString</a> & <i>message</i>, int <i>timeout</i> = 5000 ) <tt> [slot]</tt></h3>
|
||||
<h3 class="fn"><a name="sendMessage"></a>bool QtSingleApplication::sendMessage ( const <a href="http://qt.nokia.com/doc/4.6/qstring.html">QString</a> & <i>message</i>, int <i>timeout</i> = 5000 ) <tt> [slot]</tt></h3>
|
||||
<p>Tries to send the text <i>message</i> to the currently running instance. The <a href="qtsingleapplication.html">QtSingleApplication</a> object in the running instance will emit the <a href="qtsingleapplication.html#messageReceived">messageReceived</a>() signal when it receives the message.</p>
|
||||
<p>This function returns true if the message has been sent to, and processed by, the current instance. If there is no instance currently running, or if the running instance fails to process the message within <i>timeout</i> milliseconds, this function return false.</p>
|
||||
<p>See also <a href="qtsingleapplication.html#isRunning">isRunning</a>() and <a href="qtsingleapplication.html#messageReceived">messageReceived</a>().</p>
|
||||
<h3 class="fn"><a name="setActivationWindow"></a>void QtSingleApplication::setActivationWindow ( <a href="http://doc.trolltech.com/4.4/qwidget.html">QWidget</a> * <i>aw</i>, bool <i>activateOnMessage</i> = true )</h3>
|
||||
<h3 class="fn"><a name="setActivationWindow"></a>void QtSingleApplication::setActivationWindow ( <a href="http://qt.nokia.com/doc/4.6/qwidget.html">QWidget</a> * <i>aw</i>, bool <i>activateOnMessage</i> = true )</h3>
|
||||
<p>Sets the activation window of this application to <i>aw</i>. The activation window is the widget that will be activated by <a href="qtsingleapplication.html#activateWindow">activateWindow</a>(). This is typically the application's main window.</p>
|
||||
<p>If <i>activateOnMessage</i> is true (the default), the window will be activated automatically every time a message is received, just prior to the <a href="qtsingleapplication.html#messageReceived">messageReceived</a>() signal being emitted.</p>
|
||||
<p>See also <a href="qtsingleapplication.html#activationWindow">activationWindow</a>(), <a href="qtsingleapplication.html#activateWindow">activateWindow</a>(), and <a href="qtsingleapplication.html#messageReceived">messageReceived</a>().</p>
|
||||
<p /><address><hr /><div align="center">
|
||||
<table width="100%" cellspacing="0" border="0"><tr class="address">
|
||||
<td width="30%" align="left">Copyright © 2009 Nokia</td>
|
||||
<td width="40%" align="center"><a href="http://doc.trolltech.com/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
|
||||
<td width="40%" align="center"><a href="http://qt.nokia.com/doc/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="right"><div align="right">Qt Solutions</div></td>
|
||||
</tr></table></div></address></body>
|
||||
</html>
|
||||
|
|
|
@ -2,111 +2,89 @@
|
|||
<!DOCTYPE QDOCINDEX>
|
||||
<INDEX url="" title="Qt Solutions: Single Application Documentation" version="">
|
||||
<namespace access="public" threadsafety="unspecified" status="commendable" name="" href="" location="" module="">
|
||||
<class access="public" threadsafety="unspecified" status="commendable" name="QtLockedFile" href="qtlockedfile.html" location="qtlockedfile.h" bases="QFile" module="">
|
||||
<enum access="public" threadsafety="unspecified" status="commendable" name="LockMode" fullname="QtLockedFile::LockMode" href="qtlockedfile.html#LockMode-enum" location="qtlockedfile.h">
|
||||
<value name="NoLock" value="0"></value>
|
||||
<value name="ReadLock" value="1"></value>
|
||||
<value name="WriteLock" value="2"></value>
|
||||
</enum>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="QtLockedFile" fullname="QtLockedFile::QtLockedFile" href="qtlockedfile.html#QtLockedFile" location="qtlockedfile.h" virtual="non" meta="constructor" const="false" static="false" overload="false" type="" signature="QtLockedFile()"></function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="QtLockedFile" fullname="QtLockedFile::QtLockedFile" href="qtlockedfile.html#QtLockedFile-2" location="qtlockedfile.h" virtual="non" meta="constructor" const="false" static="false" overload="true" overload-number="2" type="" signature="QtLockedFile(const QString & name)">
|
||||
<parameter left="const QString &" right="" name="name" default=""></parameter>
|
||||
<class access="public" threadsafety="unspecified" status="commendable" name="QtSingleCoreApplication" href="qtsinglecoreapplication.html" location="qtsinglecoreapplication.h" bases="QCoreApplication" module="">
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="QtSingleCoreApplication" fullname="QtSingleCoreApplication::QtSingleCoreApplication" href="qtsinglecoreapplication.html#QtSingleCoreApplication" location="qtsinglecoreapplication.h" virtual="non" meta="constructor" const="false" static="false" overload="false" type="" signature="QtSingleCoreApplication(int & argc, char ** argv)">
|
||||
<parameter left="int &" right="" name="argc" default=""/>
|
||||
<parameter left="char **" right="" name="argv" default=""/>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="~QtLockedFile" fullname="QtLockedFile::~QtLockedFile" href="qtlockedfile.html#dtor.QtLockedFile" location="qtlockedfile_win.cpp" virtual="non" meta="destructor" const="false" static="false" overload="false" type="" signature="~QtLockedFile()"></function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="open" fullname="QtLockedFile::open" href="qtlockedfile.html#open" location="qtlockedfile.h" virtual="non" meta="plain" const="false" static="false" overload="false" type="bool" signature="open(OpenMode mode)">
|
||||
<parameter left="OpenMode" right="" name="mode" default=""></parameter>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="QtSingleCoreApplication" fullname="QtSingleCoreApplication::QtSingleCoreApplication" href="qtsinglecoreapplication.html#QtSingleCoreApplication-2" location="qtsinglecoreapplication.h" virtual="non" meta="constructor" const="false" static="false" overload="true" overload-number="2" type="" signature="QtSingleCoreApplication(const QString & appId, int & argc, char ** argv)">
|
||||
<parameter left="const QString &" right="" name="appId" default=""/>
|
||||
<parameter left="int &" right="" name="argc" default=""/>
|
||||
<parameter left="char **" right="" name="argv" default=""/>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="lock" fullname="QtLockedFile::lock" href="qtlockedfile.html#lock" location="qtlockedfile_win.cpp" virtual="non" meta="plain" const="false" static="false" overload="false" type="bool" signature="lock(LockMode mode, bool block)">
|
||||
<parameter left="LockMode" right="" name="mode" default=""></parameter>
|
||||
<parameter left="bool" right="" name="block" default="true"></parameter>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="isRunning" fullname="QtSingleCoreApplication::isRunning" href="qtsinglecoreapplication.html#isRunning" location="qtsinglecoreapplication.h" virtual="non" meta="plain" const="false" static="false" overload="false" type="bool" signature="isRunning()"/>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="id" fullname="QtSingleCoreApplication::id" href="qtsinglecoreapplication.html#id" location="qtsinglecoreapplication.h" virtual="non" meta="plain" const="true" static="false" overload="false" type="QString" signature="id() const"/>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="sendMessage" fullname="QtSingleCoreApplication::sendMessage" href="qtsinglecoreapplication.html#sendMessage" location="qtsinglecoreapplication.h" virtual="non" meta="slot" const="false" static="false" overload="false" type="bool" signature="sendMessage(const QString & message, int timeout)">
|
||||
<parameter left="const QString &" right="" name="message" default=""/>
|
||||
<parameter left="int" right="" name="timeout" default="5000"/>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="messageReceived" fullname="QtSingleCoreApplication::messageReceived" href="qtsinglecoreapplication.html#messageReceived" location="qtsinglecoreapplication.h" virtual="non" meta="signal" const="false" static="false" overload="false" type="void" signature="messageReceived(const QString & message)">
|
||||
<parameter left="const QString &" right="" name="message" default=""/>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="unlock" fullname="QtLockedFile::unlock" href="qtlockedfile.html#unlock" location="qtlockedfile_win.cpp" virtual="non" meta="plain" const="false" static="false" overload="false" type="bool" signature="unlock()"></function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="isLocked" fullname="QtLockedFile::isLocked" href="qtlockedfile.html#isLocked" location="qtlockedfile.h" virtual="non" meta="plain" const="true" static="false" overload="false" type="bool" signature="isLocked() const"></function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="lockMode" fullname="QtLockedFile::lockMode" href="qtlockedfile.html#lockMode" location="qtlockedfile.h" virtual="non" meta="plain" const="true" static="false" overload="false" type="LockMode" signature="lockMode() const"></function>
|
||||
</class>
|
||||
<class access="public" threadsafety="unspecified" status="commendable" name="QtSingleApplication" href="qtsingleapplication.html" location="qtsingleapplication.h" bases="QApplication" module="">
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="QtSingleApplication" fullname="QtSingleApplication::QtSingleApplication" href="qtsingleapplication.html#QtSingleApplication" location="qtsingleapplication.h" virtual="non" meta="constructor" const="false" static="false" overload="false" type="" signature="QtSingleApplication(int & argc, char ** argv, bool GUIenabled)">
|
||||
<parameter left="int &" right="" name="argc" default=""></parameter>
|
||||
<parameter left="char **" right="" name="argv" default=""></parameter>
|
||||
<parameter left="bool" right="" name="GUIenabled" default="true"></parameter>
|
||||
<parameter left="int &" right="" name="argc" default=""/>
|
||||
<parameter left="char **" right="" name="argv" default=""/>
|
||||
<parameter left="bool" right="" name="GUIenabled" default="true"/>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="QtSingleApplication" fullname="QtSingleApplication::QtSingleApplication" href="qtsingleapplication.html#QtSingleApplication-2" location="qtsingleapplication.h" virtual="non" meta="constructor" const="false" static="false" overload="true" overload-number="2" type="" signature="QtSingleApplication(const QString & appId, int & argc, char ** argv)">
|
||||
<parameter left="const QString &" right="" name="appId" default=""></parameter>
|
||||
<parameter left="int &" right="" name="argc" default=""></parameter>
|
||||
<parameter left="char **" right="" name="argv" default=""></parameter>
|
||||
<parameter left="const QString &" right="" name="appId" default=""/>
|
||||
<parameter left="int &" right="" name="argc" default=""/>
|
||||
<parameter left="char **" right="" name="argv" default=""/>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="QtSingleApplication" fullname="QtSingleApplication::QtSingleApplication" href="qtsingleapplication.html#QtSingleApplication-3" location="qtsingleapplication.h" virtual="non" meta="constructor" const="false" static="false" overload="true" overload-number="3" type="" signature="QtSingleApplication(int & argc, char ** argv, Type type)">
|
||||
<parameter left="int &" right="" name="argc" default=""></parameter>
|
||||
<parameter left="char **" right="" name="argv" default=""></parameter>
|
||||
<parameter left="Type" right="" name="type" default=""></parameter>
|
||||
<parameter left="int &" right="" name="argc" default=""/>
|
||||
<parameter left="char **" right="" name="argv" default=""/>
|
||||
<parameter left="Type" right="" name="type" default=""/>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="QtSingleApplication" fullname="QtSingleApplication::QtSingleApplication" href="qtsingleapplication.html#QtSingleApplication-4" location="qtsingleapplication.h" virtual="non" meta="constructor" const="false" static="false" overload="true" overload-number="4" type="" signature="QtSingleApplication(Display * dpy, Qt::HANDLE visual, Qt::HANDLE cmap)">
|
||||
<parameter left="Display *" right="" name="dpy" default=""></parameter>
|
||||
<parameter left="Qt::HANDLE" right="" name="visual" default="0"></parameter>
|
||||
<parameter left="Qt::HANDLE" right="" name="cmap" default="0"></parameter>
|
||||
<parameter left="Display *" right="" name="dpy" default=""/>
|
||||
<parameter left="Qt::HANDLE" right="" name="visual" default="0"/>
|
||||
<parameter left="Qt::HANDLE" right="" name="cmap" default="0"/>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="QtSingleApplication" fullname="QtSingleApplication::QtSingleApplication" href="qtsingleapplication.html#QtSingleApplication-5" location="qtsingleapplication.h" virtual="non" meta="constructor" const="false" static="false" overload="true" overload-number="5" type="" signature="QtSingleApplication(Display * dpy, int & argc, char ** argv, Qt::HANDLE visual, Qt::HANDLE cmap)">
|
||||
<parameter left="Display *" right="" name="dpy" default=""></parameter>
|
||||
<parameter left="int &" right="" name="argc" default=""></parameter>
|
||||
<parameter left="char **" right="" name="argv" default=""></parameter>
|
||||
<parameter left="Qt::HANDLE" right="" name="visual" default="0"></parameter>
|
||||
<parameter left="Qt::HANDLE" right="" name="cmap" default="0"></parameter>
|
||||
<parameter left="Display *" right="" name="dpy" default=""/>
|
||||
<parameter left="int &" right="" name="argc" default=""/>
|
||||
<parameter left="char **" right="" name="argv" default=""/>
|
||||
<parameter left="Qt::HANDLE" right="" name="visual" default="0"/>
|
||||
<parameter left="Qt::HANDLE" right="" name="cmap" default="0"/>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="QtSingleApplication" fullname="QtSingleApplication::QtSingleApplication" href="qtsingleapplication.html#QtSingleApplication-6" location="qtsingleapplication.h" virtual="non" meta="constructor" const="false" static="false" overload="true" overload-number="6" type="" signature="QtSingleApplication(Display * dpy, const QString & appId, int argc, char ** argv, Qt::HANDLE visual, Qt::HANDLE cmap)">
|
||||
<parameter left="Display *" right="" name="dpy" default=""></parameter>
|
||||
<parameter left="const QString &" right="" name="appId" default=""></parameter>
|
||||
<parameter left="int" right="" name="argc" default=""></parameter>
|
||||
<parameter left="char **" right="" name="argv" default=""></parameter>
|
||||
<parameter left="Qt::HANDLE" right="" name="visual" default="0"></parameter>
|
||||
<parameter left="Qt::HANDLE" right="" name="cmap" default="0"></parameter>
|
||||
<parameter left="Display *" right="" name="dpy" default=""/>
|
||||
<parameter left="const QString &" right="" name="appId" default=""/>
|
||||
<parameter left="int" right="" name="argc" default=""/>
|
||||
<parameter left="char **" right="" name="argv" default=""/>
|
||||
<parameter left="Qt::HANDLE" right="" name="visual" default="0"/>
|
||||
<parameter left="Qt::HANDLE" right="" name="cmap" default="0"/>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="isRunning" fullname="QtSingleApplication::isRunning" href="qtsingleapplication.html#isRunning" location="qtsingleapplication.h" virtual="non" meta="plain" const="false" static="false" overload="false" type="bool" signature="isRunning()"></function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="id" fullname="QtSingleApplication::id" href="qtsingleapplication.html#id" location="qtsingleapplication.h" virtual="non" meta="plain" const="true" static="false" overload="false" type="QString" signature="id() const"></function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="isRunning" fullname="QtSingleApplication::isRunning" href="qtsingleapplication.html#isRunning" location="qtsingleapplication.h" virtual="non" meta="plain" const="false" static="false" overload="false" type="bool" signature="isRunning()"/>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="id" fullname="QtSingleApplication::id" href="qtsingleapplication.html#id" location="qtsingleapplication.h" virtual="non" meta="plain" const="true" static="false" overload="false" type="QString" signature="id() const"/>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="setActivationWindow" fullname="QtSingleApplication::setActivationWindow" href="qtsingleapplication.html#setActivationWindow" location="qtsingleapplication.h" virtual="non" meta="plain" const="false" static="false" overload="false" type="void" signature="setActivationWindow(QWidget * aw, bool activateOnMessage)">
|
||||
<parameter left="QWidget *" right="" name="aw" default=""></parameter>
|
||||
<parameter left="bool" right="" name="activateOnMessage" default="true"></parameter>
|
||||
<parameter left="QWidget *" right="" name="aw" default=""/>
|
||||
<parameter left="bool" right="" name="activateOnMessage" default="true"/>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="activationWindow" fullname="QtSingleApplication::activationWindow" href="qtsingleapplication.html#activationWindow" location="qtsingleapplication.h" virtual="non" meta="plain" const="true" static="false" overload="false" type="QWidget *" signature="activationWindow() const"></function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="activationWindow" fullname="QtSingleApplication::activationWindow" href="qtsingleapplication.html#activationWindow" location="qtsingleapplication.h" virtual="non" meta="plain" const="true" static="false" overload="false" type="QWidget *" signature="activationWindow() const"/>
|
||||
<function access="public" threadsafety="unspecified" status="obsolete" name="initialize" fullname="QtSingleApplication::initialize" href="qtsingleapplication-obsolete.html#initialize" location="qtsingleapplication.h" virtual="non" meta="plain" const="false" static="false" overload="false" type="void" signature="initialize(bool dummy)">
|
||||
<parameter left="bool" right="" name="dummy" default="true"></parameter>
|
||||
<parameter left="bool" right="" name="dummy" default="true"/>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="sendMessage" fullname="QtSingleApplication::sendMessage" href="qtsingleapplication.html#sendMessage" location="qtsingleapplication.h" virtual="non" meta="slot" const="false" static="false" overload="false" type="bool" signature="sendMessage(const QString & message, int timeout)">
|
||||
<parameter left="const QString &" right="" name="message" default=""></parameter>
|
||||
<parameter left="int" right="" name="timeout" default="5000"></parameter>
|
||||
<parameter left="const QString &" right="" name="message" default=""/>
|
||||
<parameter left="int" right="" name="timeout" default="5000"/>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="activateWindow" fullname="QtSingleApplication::activateWindow" href="qtsingleapplication.html#activateWindow" location="qtsingleapplication.h" virtual="non" meta="slot" const="false" static="false" overload="false" type="void" signature="activateWindow()"></function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="activateWindow" fullname="QtSingleApplication::activateWindow" href="qtsingleapplication.html#activateWindow" location="qtsingleapplication.h" virtual="non" meta="slot" const="false" static="false" overload="false" type="void" signature="activateWindow()"/>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="messageReceived" fullname="QtSingleApplication::messageReceived" href="qtsingleapplication.html#messageReceived" location="qtsingleapplication.h" virtual="non" meta="signal" const="false" static="false" overload="false" type="void" signature="messageReceived(const QString & message)">
|
||||
<parameter left="const QString &" right="" name="message" default=""></parameter>
|
||||
<parameter left="const QString &" right="" name="message" default=""/>
|
||||
</function>
|
||||
</class>
|
||||
<class access="public" threadsafety="unspecified" status="commendable" name="QtSingleCoreApplication" href="qtsinglecoreapplication.html" location="qtsinglecoreapplication.h" bases="QCoreApplication" module="">
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="QtSingleCoreApplication" fullname="QtSingleCoreApplication::QtSingleCoreApplication" href="qtsinglecoreapplication.html#QtSingleCoreApplication" location="qtsinglecoreapplication.h" virtual="non" meta="constructor" const="false" static="false" overload="false" type="" signature="QtSingleCoreApplication(int & argc, char ** argv)">
|
||||
<parameter left="int &" right="" name="argc" default=""></parameter>
|
||||
<parameter left="char **" right="" name="argv" default=""></parameter>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="QtSingleCoreApplication" fullname="QtSingleCoreApplication::QtSingleCoreApplication" href="qtsinglecoreapplication.html#QtSingleCoreApplication-2" location="qtsinglecoreapplication.h" virtual="non" meta="constructor" const="false" static="false" overload="true" overload-number="2" type="" signature="QtSingleCoreApplication(const QString & appId, int & argc, char ** argv)">
|
||||
<parameter left="const QString &" right="" name="appId" default=""></parameter>
|
||||
<parameter left="int &" right="" name="argc" default=""></parameter>
|
||||
<parameter left="char **" right="" name="argv" default=""></parameter>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="isRunning" fullname="QtSingleCoreApplication::isRunning" href="qtsinglecoreapplication.html#isRunning" location="qtsinglecoreapplication.h" virtual="non" meta="plain" const="false" static="false" overload="false" type="bool" signature="isRunning()"></function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="id" fullname="QtSingleCoreApplication::id" href="qtsinglecoreapplication.html#id" location="qtsinglecoreapplication.h" virtual="non" meta="plain" const="true" static="false" overload="false" type="QString" signature="id() const"></function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="sendMessage" fullname="QtSingleCoreApplication::sendMessage" href="qtsinglecoreapplication.html#sendMessage" location="qtsinglecoreapplication.h" virtual="non" meta="slot" const="false" static="false" overload="false" type="bool" signature="sendMessage(const QString & message, int timeout)">
|
||||
<parameter left="const QString &" right="" name="message" default=""></parameter>
|
||||
<parameter left="int" right="" name="timeout" default="5000"></parameter>
|
||||
</function>
|
||||
<function access="public" threadsafety="unspecified" status="commendable" name="messageReceived" fullname="QtSingleCoreApplication::messageReceived" href="qtsinglecoreapplication.html#messageReceived" location="qtsinglecoreapplication.h" virtual="non" meta="signal" const="false" static="false" overload="false" type="void" signature="messageReceived(const QString & message)">
|
||||
<parameter left="const QString &" right="" name="message" default=""></parameter>
|
||||
</function>
|
||||
</class>
|
||||
<page access="public" status="commendable" name="qtsinglecoreapplication-example-console.html" href="qtsinglecoreapplication-example-console.html" subtype="page" title="A non-GUI example" fulltitle="A non-GUI example" subtitle="" location="console.qdoc"></page>
|
||||
<page access="public" status="commendable" name="qtsingleapplication-example-loader.html" href="qtsingleapplication-example-loader.html" subtype="page" title="Loading Documents" fulltitle="Loading Documents" subtitle="" location="loader.qdoc"></page>
|
||||
<page access="public" status="commendable" name="qtsingleapplication-example-trivial.html" href="qtsingleapplication-example-trivial.html" subtype="page" title="A Trivial Example" fulltitle="A Trivial Example" subtitle="" location="trivial.qdoc"></page>
|
||||
<page access="public" status="commendable" name="index.html" href="index.html" subtype="page" title="Single Application" fulltitle="Single Application" subtitle="" location="index.qdoc">
|
||||
<contents name="description" title="Description" level="1"></contents>
|
||||
<contents name="classes" title="Classes" level="1"></contents>
|
||||
<contents name="examples" title="Examples" level="1"></contents>
|
||||
<contents name="tested-platforms" title="Tested platforms" level="1"></contents>
|
||||
<contents name="description" title="Description" level="1"/>
|
||||
<contents name="classes" title="Classes" level="1"/>
|
||||
<contents name="examples" title="Examples" level="1"/>
|
||||
<contents name="tested-platforms" title="Tested platforms" level="1"/>
|
||||
</page>
|
||||
<page access="public" status="commendable" name="qtsingleapplication-example-trivial.html" href="qtsingleapplication-example-trivial.html" subtype="page" title="A Trivial Example" fulltitle="A Trivial Example" subtitle="" location="trivial.qdoc"/>
|
||||
<page access="public" status="commendable" name="qtsinglecoreapplication-example-console.html" href="qtsinglecoreapplication-example-console.html" subtype="page" title="A non-GUI example" fulltitle="A non-GUI example" subtitle="" location="console.qdoc"/>
|
||||
<page access="public" status="commendable" name="qtsingleapplication-example-loader.html" href="qtsingleapplication-example-loader.html" subtype="page" title="Loading Documents" fulltitle="Loading Documents" subtitle="" location="loader.qdoc"/>
|
||||
</namespace>
|
||||
</INDEX>
|
||||
|
|
Binary file not shown.
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<QtHelpProject version="1.0">
|
||||
<namespace>com.trolltech.qtsolutions.qtsingleapplication_2.6</namespace>
|
||||
<namespace>com.nokia.qtsolutions.qtsingleapplication_head</namespace>
|
||||
<virtualFolder>qdoc</virtualFolder>
|
||||
<customFilter name="Qt Solutions: Single Application">
|
||||
<filterAttribute>qt</filterAttribute>
|
||||
|
@ -13,45 +13,33 @@
|
|||
<filterAttribute>qtsingleapplication</filterAttribute>
|
||||
<toc>
|
||||
<section ref="index.html" title="Qt Solutions: Single Application Documentation">
|
||||
<section ref="qtsingleapplication-example-trivial.html" title="A Trivial Example"></section>
|
||||
<section ref="qtsinglecoreapplication-example-console.html" title="A non-GUI example"></section>
|
||||
<section ref="qtsingleapplication-example-loader.html" title="Loading Documents"></section>
|
||||
<section ref="index.html" title="Single Application"></section>
|
||||
<section ref="qtsingleapplication-example-trivial.html" title="A Trivial Example"/>
|
||||
<section ref="qtsinglecoreapplication-example-console.html" title="A non-GUI example"/>
|
||||
<section ref="qtsingleapplication-example-loader.html" title="Loading Documents"/>
|
||||
<section ref="index.html" title="Single Application"/>
|
||||
</section>
|
||||
</toc>
|
||||
<keywords>
|
||||
<keyword name="A Trivial Example" id="A Trivial Example" ref="qtsingleapplication-example-trivial.html"></keyword>
|
||||
<keyword name="A non-GUI example" id="A non-GUI example" ref="qtsinglecoreapplication-example-console.html"></keyword>
|
||||
<keyword name="Loading Documents" id="Loading Documents" ref="qtsingleapplication-example-loader.html"></keyword>
|
||||
<keyword name="QtLockedFile" id="QtLockedFile" ref="qtlockedfile.html"></keyword>
|
||||
<keyword name="QtLockedFile::LockMode" id="QtLockedFile::LockMode" ref="qtlockedfile.html#LockMode-enum"></keyword>
|
||||
<keyword name="QtLockedFile::NoLock" id="QtLockedFile::NoLock" ref="qtlockedfile.html#LockMode-enum"></keyword>
|
||||
<keyword name="QtLockedFile::ReadLock" id="QtLockedFile::ReadLock" ref="qtlockedfile.html#LockMode-enum"></keyword>
|
||||
<keyword name="QtLockedFile::WriteLock" id="QtLockedFile::WriteLock" ref="qtlockedfile.html#LockMode-enum"></keyword>
|
||||
<keyword name="isLocked" id="QtLockedFile::isLocked" ref="qtlockedfile.html#isLocked"></keyword>
|
||||
<keyword name="lock" id="QtLockedFile::lock" ref="qtlockedfile.html#lock"></keyword>
|
||||
<keyword name="lockMode" id="QtLockedFile::lockMode" ref="qtlockedfile.html#lockMode"></keyword>
|
||||
<keyword name="open" id="QtLockedFile::open" ref="qtlockedfile.html#open"></keyword>
|
||||
<keyword name="unlock" id="QtLockedFile::unlock" ref="qtlockedfile.html#unlock"></keyword>
|
||||
<keyword name="~QtLockedFile" id="QtLockedFile::~QtLockedFile" ref="qtlockedfile.html#dtor.QtLockedFile"></keyword>
|
||||
<keyword name="QtSingleApplication" id="QtSingleApplication" ref="qtsingleapplication.html"></keyword>
|
||||
<keyword name="activateWindow" id="QtSingleApplication::activateWindow" ref="qtsingleapplication.html#activateWindow"></keyword>
|
||||
<keyword name="activationWindow" id="QtSingleApplication::activationWindow" ref="qtsingleapplication.html#activationWindow"></keyword>
|
||||
<keyword name="id" id="QtSingleApplication::id" ref="qtsingleapplication.html#id"></keyword>
|
||||
<keyword name="initialize" id="QtSingleApplication::initialize" ref="qtsingleapplication-obsolete.html#initialize"></keyword>
|
||||
<keyword name="isRunning" id="QtSingleApplication::isRunning" ref="qtsingleapplication.html#isRunning"></keyword>
|
||||
<keyword name="messageReceived" id="QtSingleApplication::messageReceived" ref="qtsingleapplication.html#messageReceived"></keyword>
|
||||
<keyword name="sendMessage" id="QtSingleApplication::sendMessage" ref="qtsingleapplication.html#sendMessage"></keyword>
|
||||
<keyword name="setActivationWindow" id="QtSingleApplication::setActivationWindow" ref="qtsingleapplication.html#setActivationWindow"></keyword>
|
||||
<keyword name="QtSingleCoreApplication" id="QtSingleCoreApplication" ref="qtsinglecoreapplication.html"></keyword>
|
||||
<keyword name="id" id="QtSingleCoreApplication::id" ref="qtsinglecoreapplication.html#id"></keyword>
|
||||
<keyword name="isRunning" id="QtSingleCoreApplication::isRunning" ref="qtsinglecoreapplication.html#isRunning"></keyword>
|
||||
<keyword name="messageReceived" id="QtSingleCoreApplication::messageReceived" ref="qtsinglecoreapplication.html#messageReceived"></keyword>
|
||||
<keyword name="sendMessage" id="QtSingleCoreApplication::sendMessage" ref="qtsinglecoreapplication.html#sendMessage"></keyword>
|
||||
<keyword name="Single Application" id="Single Application" ref="index.html"></keyword>
|
||||
<keyword name="A Trivial Example" id="A Trivial Example" ref="qtsingleapplication-example-trivial.html"/>
|
||||
<keyword name="A non-GUI example" id="A non-GUI example" ref="qtsinglecoreapplication-example-console.html"/>
|
||||
<keyword name="Loading Documents" id="Loading Documents" ref="qtsingleapplication-example-loader.html"/>
|
||||
<keyword name="QtSingleApplication" id="QtSingleApplication" ref="qtsingleapplication.html"/>
|
||||
<keyword name="activateWindow" id="QtSingleApplication::activateWindow" ref="qtsingleapplication.html#activateWindow"/>
|
||||
<keyword name="activationWindow" id="QtSingleApplication::activationWindow" ref="qtsingleapplication.html#activationWindow"/>
|
||||
<keyword name="id" id="QtSingleApplication::id" ref="qtsingleapplication.html#id"/>
|
||||
<keyword name="initialize" id="QtSingleApplication::initialize" ref="qtsingleapplication-obsolete.html#initialize"/>
|
||||
<keyword name="isRunning" id="QtSingleApplication::isRunning" ref="qtsingleapplication.html#isRunning"/>
|
||||
<keyword name="messageReceived" id="QtSingleApplication::messageReceived" ref="qtsingleapplication.html#messageReceived"/>
|
||||
<keyword name="sendMessage" id="QtSingleApplication::sendMessage" ref="qtsingleapplication.html#sendMessage"/>
|
||||
<keyword name="setActivationWindow" id="QtSingleApplication::setActivationWindow" ref="qtsingleapplication.html#setActivationWindow"/>
|
||||
<keyword name="QtSingleCoreApplication" id="QtSingleCoreApplication" ref="qtsinglecoreapplication.html"/>
|
||||
<keyword name="id" id="QtSingleCoreApplication::id" ref="qtsinglecoreapplication.html#id"/>
|
||||
<keyword name="isRunning" id="QtSingleCoreApplication::isRunning" ref="qtsinglecoreapplication.html#isRunning"/>
|
||||
<keyword name="messageReceived" id="QtSingleCoreApplication::messageReceived" ref="qtsinglecoreapplication.html#messageReceived"/>
|
||||
<keyword name="sendMessage" id="QtSingleCoreApplication::sendMessage" ref="qtsinglecoreapplication.html#sendMessage"/>
|
||||
<keyword name="Single Application" id="Single Application" ref="index.html"/>
|
||||
</keywords>
|
||||
<files>
|
||||
<file>qtlockedfile.html</file>
|
||||
<file>qtsingleapplication.html</file>
|
||||
<file>index.html</file>
|
||||
<file>qtsingleapplication-example-trivial.html</file>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<!-- qtsingleapplication-2.6-opensource/examples/console/console.qdoc -->
|
||||
<!-- console.qdoc -->
|
||||
<head>
|
||||
<title>A non-GUI example</title>
|
||||
<link href="classic.css" rel="stylesheet" type="text/css" />
|
||||
|
@ -28,47 +28,38 @@
|
|||
<p>main.cpp:</p>
|
||||
<pre><span class="comment"> /****************************************************************************
|
||||
**
|
||||
** This file is part of a Qt Solutions component.
|
||||
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** This file is part of the Qt Solutions component.
|
||||
**
|
||||
** Contact: Qt Software Information (qt-info@nokia.com)
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||
** accordance with the Qt Solutions Commercial License Agreement provided
|
||||
** with the Software or, alternatively, in accordance with the terms
|
||||
** contained in a written agreement between you and Nokia.
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
|
||||
** the names of its contributors may be used to endorse or promote
|
||||
** products derived from this software without specific prior written
|
||||
** permission.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain
|
||||
** additional rights. These rights are described in the Nokia Qt LGPL
|
||||
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
||||
** package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3.0 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 3.0 requirements will be
|
||||
** met: http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Please note Third Party Software included with Qt Solutions may impose
|
||||
** additional restrictions and it is the user's responsibility to ensure
|
||||
** that they have met the licensing requirements of the GPL, LGPL, or Qt
|
||||
** Solutions Commercial license and the relevant license of the Third
|
||||
** Party Software they are using.
|
||||
**
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** contact the sales department at qt-sales@nokia.com.
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
****************************************************************************/</span>
|
||||
|
||||
|
@ -103,9 +94,9 @@
|
|||
|
||||
if (app.isRunning()) {
|
||||
QString msg(QString("Hi master, I am %1.").arg(QCoreApplication::applicationPid()));
|
||||
bool sentok = app.sendMessage(msg);
|
||||
bool sentok = app.sendMessage(msg, 2000);
|
||||
QString rep("Another instance is running, so I will exit.");
|
||||
rep += sentok ? " Message sent ok." : " Message sending failed.";
|
||||
rep += sentok ? " Message sent ok." : " Message sending failed; the other instance may be frozen.";
|
||||
report(rep);
|
||||
return 0;
|
||||
} else {
|
||||
|
@ -120,8 +111,8 @@
|
|||
#include "main.moc"</pre>
|
||||
<p /><address><hr /><div align="center">
|
||||
<table width="100%" cellspacing="0" border="0"><tr class="address">
|
||||
<td width="30%" align="left">Copyright © 2009 Nokia</td>
|
||||
<td width="40%" align="center"><a href="http://doc.trolltech.com/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
|
||||
<td width="40%" align="center"><a href="http://qt.nokia.com/doc/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="right"><div align="right">Qt Solutions</div></td>
|
||||
</tr></table></div></address></body>
|
||||
</html>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<!-- qtsingleapplication-2.6-opensource/src/qtsinglecoreapplication.cpp -->
|
||||
<!-- qtsinglecoreapplication.cpp -->
|
||||
<head>
|
||||
<title>List of All Members for QtSingleCoreApplication</title>
|
||||
<link href="classic.css" rel="stylesheet" type="text/css" />
|
||||
|
@ -14,113 +14,113 @@
|
|||
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a></td>
|
||||
</tr></table><h1 class="title">List of All Members for QtSingleCoreApplication</h1>
|
||||
<p>This is the complete list of members for <a href="qtsinglecoreapplication.html">QtSingleCoreApplication</a>, including inherited members.</p>
|
||||
<p><table width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<p><table class="propsummary" width="100%" border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td width="45%" valign="top"><ul>
|
||||
<li><div class="fn"/>enum <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#Encoding-enum">Encoding</a></li>
|
||||
<li><div class="fn"/>typedef <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#EventFilter-typedef">EventFilter</a></li>
|
||||
<li><div class="fn"/><a href="qtsinglecoreapplication.html#QtSingleCoreApplication">QtSingleCoreApplication</a> ( int &, char ** )</li>
|
||||
<li><div class="fn"/><a href="qtsinglecoreapplication.html#QtSingleCoreApplication-2">QtSingleCoreApplication</a> ( const QString &, int &, char ** )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#aboutToQuit">aboutToQuit</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#addLibraryPath">addLibraryPath</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationDirPath">applicationDirPath</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationFilePath">applicationFilePath</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationName-prop">applicationName</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationPid">applicationPid</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationVersion-prop">applicationVersion</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#arguments">arguments</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#blockSignals">blockSignals</a> ( bool )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#childEvent">childEvent</a> ( QChildEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#children">children</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#closingDown">closingDown</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#connect">connect</a> ( const QObject *, const char *, const QObject *, const char *, Qt::ConnectionType )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#connect-2">connect</a> ( const QObject *, const char *, const char *, Qt::ConnectionType ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#connectNotify">connectNotify</a> ( const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#customEvent">customEvent</a> ( QEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#d_ptr-var">d_ptr</a> : </li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#deleteLater">deleteLater</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#destroyed">destroyed</a> ( QObject * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#disconnect">disconnect</a> ( const QObject *, const char *, const QObject *, const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#disconnect-2">disconnect</a> ( const char *, const QObject *, const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#disconnect-3">disconnect</a> ( const QObject *, const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#disconnectNotify">disconnectNotify</a> ( const char * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#dumpObjectInfo">dumpObjectInfo</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#dumpObjectTree">dumpObjectTree</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#dynamicPropertyNames">dynamicPropertyNames</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#event">event</a> ( QEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#eventFilter">eventFilter</a> ( QObject *, QEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#exec">exec</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#exit">exit</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#filterEvent">filterEvent</a> ( void *, long * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#findChild">findChild</a> ( const QString & ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#findChildren">findChildren</a> ( const QString & ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#findChildren-2">findChildren</a> ( const QRegExp & ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#flush">flush</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#hasPendingEvents">hasPendingEvents</a> ()</li>
|
||||
<li><div class="fn"/><a href="qtsinglecoreapplication.html#id">id</a> () const : QString</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#inherits">inherits</a> ( const char * ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#installEventFilter">installEventFilter</a> ( QObject * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#installTranslator">installTranslator</a> ( QTranslator * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#instance">instance</a> ()</li>
|
||||
<li><div class="fn"/><a href="qtsinglecoreapplication.html#isRunning">isRunning</a> () : bool</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#isWidgetType">isWidgetType</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#killTimer">killTimer</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#libraryPaths">libraryPaths</a> ()</li>
|
||||
<li><div class="fn">enum <b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#Encoding-enum">Encoding</a></b></div></li>
|
||||
<li><div class="fn">typedef <b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#EventFilter-typedef">EventFilter</a></b></div></li>
|
||||
<li><div class="fn"><b><a href="qtsinglecoreapplication.html#QtSingleCoreApplication">QtSingleCoreApplication</a></b> ( int &, char ** )</div></li>
|
||||
<li><div class="fn"><b><a href="qtsinglecoreapplication.html#QtSingleCoreApplication-2">QtSingleCoreApplication</a></b> ( const QString &, int &, char ** )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#aboutToQuit">aboutToQuit</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#addLibraryPath">addLibraryPath</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationDirPath">applicationDirPath</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationFilePath">applicationFilePath</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationName-prop">applicationName</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationPid">applicationPid</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationVersion-prop">applicationVersion</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#arguments">arguments</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#blockSignals">blockSignals</a></b> ( bool )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#childEvent">childEvent</a></b> ( QChildEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#children">children</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#closingDown">closingDown</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#connect">connect</a></b> ( const QObject *, const char *, const QObject *, const char *, Qt::ConnectionType )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#connect-2">connect</a></b> ( const QObject *, const char *, const char *, Qt::ConnectionType ) const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#connectNotify">connectNotify</a></b> ( const char * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#customEvent">customEvent</a></b> ( QEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#d_ptr-var">d_ptr</a></b> : </div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#deleteLater">deleteLater</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#destroyed">destroyed</a></b> ( QObject * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#disconnect">disconnect</a></b> ( const QObject *, const char *, const QObject *, const char * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#disconnect-2">disconnect</a></b> ( const char *, const QObject *, const char * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#disconnect-3">disconnect</a></b> ( const QObject *, const char * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#disconnectNotify">disconnectNotify</a></b> ( const char * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#dumpObjectInfo">dumpObjectInfo</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#dumpObjectTree">dumpObjectTree</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#dynamicPropertyNames">dynamicPropertyNames</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#event">event</a></b> ( QEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#eventFilter">eventFilter</a></b> ( QObject *, QEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#exec">exec</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#exit">exit</a></b> ( int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#filterEvent">filterEvent</a></b> ( void *, long * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#findChild">findChild</a></b> ( const QString & ) const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#findChildren">findChildren</a></b> ( const QString & ) const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#findChildren-2">findChildren</a></b> ( const QRegExp & ) const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#flush">flush</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#hasPendingEvents">hasPendingEvents</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="qtsinglecoreapplication.html#id">id</a></b> () const : QString</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#inherits">inherits</a></b> ( const char * ) const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#installEventFilter">installEventFilter</a></b> ( QObject * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#installTranslator">installTranslator</a></b> ( QTranslator * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#instance">instance</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="qtsinglecoreapplication.html#isRunning">isRunning</a></b> () : bool</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#isWidgetType">isWidgetType</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#killTimer">killTimer</a></b> ( int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#libraryPaths">libraryPaths</a></b> ()</div></li>
|
||||
</ul></td><td valign="top"><ul>
|
||||
<li><div class="fn"/><a href="qtsinglecoreapplication.html#messageReceived">messageReceived</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#metaObject">metaObject</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#moveToThread">moveToThread</a> ( QThread * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#notify">notify</a> ( QObject *, QEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#objectName-prop">objectName</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#organizationDomain-prop">organizationDomain</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#organizationName-prop">organizationName</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#parent">parent</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#postEvent">postEvent</a> ( QObject *, QEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#postEvent-2">postEvent</a> ( QObject *, QEvent *, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#processEvents">processEvents</a> ( QFlags<QEventLoop::ProcessEventsFlag> )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#processEvents-2">processEvents</a> ( QFlags<QEventLoop::ProcessEventsFlag>, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#property">property</a> ( const char * ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#quit">quit</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#receivers">receivers</a> ( const char * ) const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#removeEventFilter">removeEventFilter</a> ( QObject * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#removeLibraryPath">removeLibraryPath</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#removePostedEvents">removePostedEvents</a> ( QObject * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#removePostedEvents-2">removePostedEvents</a> ( QObject *, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#removeTranslator">removeTranslator</a> ( QTranslator * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#sendEvent">sendEvent</a> ( QObject *, QEvent * )</li>
|
||||
<li><div class="fn"/><a href="qtsinglecoreapplication.html#sendMessage">sendMessage</a> ( const QString &, int ) : bool</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#sendPostedEvents">sendPostedEvents</a> ( QObject *, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#sendPostedEvents-2">sendPostedEvents</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#sender">sender</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationName-prop">setApplicationName</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationVersion-prop">setApplicationVersion</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#setAttribute">setAttribute</a> ( Qt::ApplicationAttribute, bool )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#setEventFilter">setEventFilter</a> ( EventFilter )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#setLibraryPaths">setLibraryPaths</a> ( const QStringList & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#objectName-prop">setObjectName</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#organizationDomain-prop">setOrganizationDomain</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#organizationName-prop">setOrganizationName</a> ( const QString & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#setParent">setParent</a> ( QObject * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#setProperty">setProperty</a> ( const char *, const QVariant & )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#signalsBlocked">signalsBlocked</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#startTimer">startTimer</a> ( int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#startingUp">startingUp</a> ()</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#staticMetaObject-var">staticMetaObject</a> : </li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#staticQtMetaObject-var">staticQtMetaObject</a> : </li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#testAttribute">testAttribute</a> ( Qt::ApplicationAttribute )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#thread">thread</a> () const</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#timerEvent">timerEvent</a> ( QTimerEvent * )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#tr">tr</a> ( const char *, const char *, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qobject.html#trUtf8">trUtf8</a> ( const char *, const char *, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#translate">translate</a> ( const char *, const char *, const char *, Encoding, int )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#translate-2">translate</a> ( const char *, const char *, const char *, Encoding )</li>
|
||||
<li><div class="fn"/><a href="http://doc.trolltech.com/4.4/qcoreapplication.html#winEventFilter">winEventFilter</a> ( MSG *, long * )</li>
|
||||
<li><div class="fn"><b><a href="qtsinglecoreapplication.html#messageReceived">messageReceived</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#metaObject">metaObject</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#moveToThread">moveToThread</a></b> ( QThread * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#notify">notify</a></b> ( QObject *, QEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#objectName-prop">objectName</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#organizationDomain-prop">organizationDomain</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#organizationName-prop">organizationName</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#parent">parent</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#postEvent">postEvent</a></b> ( QObject *, QEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#postEvent-2">postEvent</a></b> ( QObject *, QEvent *, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#processEvents">processEvents</a></b> ( QFlags<QEventLoop::ProcessEventsFlag> )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#processEvents-2">processEvents</a></b> ( QFlags<QEventLoop::ProcessEventsFlag>, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#property">property</a></b> ( const char * ) const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#quit">quit</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#receivers">receivers</a></b> ( const char * ) const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#removeEventFilter">removeEventFilter</a></b> ( QObject * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#removeLibraryPath">removeLibraryPath</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#removePostedEvents">removePostedEvents</a></b> ( QObject * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#removePostedEvents-2">removePostedEvents</a></b> ( QObject *, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#removeTranslator">removeTranslator</a></b> ( QTranslator * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#sendEvent">sendEvent</a></b> ( QObject *, QEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="qtsinglecoreapplication.html#sendMessage">sendMessage</a></b> ( const QString &, int ) : bool</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#sendPostedEvents">sendPostedEvents</a></b> ( QObject *, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#sendPostedEvents-2">sendPostedEvents</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#sender">sender</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationName-prop">setApplicationName</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationVersion-prop">setApplicationVersion</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#setAttribute">setAttribute</a></b> ( Qt::ApplicationAttribute, bool )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#setEventFilter">setEventFilter</a></b> ( EventFilter )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#setLibraryPaths">setLibraryPaths</a></b> ( const QStringList & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#objectName-prop">setObjectName</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#organizationDomain-prop">setOrganizationDomain</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#organizationName-prop">setOrganizationName</a></b> ( const QString & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#setParent">setParent</a></b> ( QObject * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#setProperty">setProperty</a></b> ( const char *, const QVariant & )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#signalsBlocked">signalsBlocked</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#startTimer">startTimer</a></b> ( int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#startingUp">startingUp</a></b> ()</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#staticMetaObject-var">staticMetaObject</a></b> : </div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#staticQtMetaObject-var">staticQtMetaObject</a></b> : </div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#testAttribute">testAttribute</a></b> ( Qt::ApplicationAttribute )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#thread">thread</a></b> () const</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#timerEvent">timerEvent</a></b> ( QTimerEvent * )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#tr">tr</a></b> ( const char *, const char *, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qobject.html#trUtf8">trUtf8</a></b> ( const char *, const char *, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#translate">translate</a></b> ( const char *, const char *, const char *, Encoding, int )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#translate-2">translate</a></b> ( const char *, const char *, const char *, Encoding )</div></li>
|
||||
<li><div class="fn"><b><a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#winEventFilter">winEventFilter</a></b> ( MSG *, long * )</div></li>
|
||||
</ul>
|
||||
</td></tr>
|
||||
</table></p>
|
||||
<p /><address><hr /><div align="center">
|
||||
<table width="100%" cellspacing="0" border="0"><tr class="address">
|
||||
<td width="30%" align="left">Copyright © 2009 Nokia</td>
|
||||
<td width="40%" align="center"><a href="http://doc.trolltech.com/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
|
||||
<td width="40%" align="center"><a href="http://qt.nokia.com/doc/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="right"><div align="right">Qt Solutions</div></td>
|
||||
</tr></table></div></address></body>
|
||||
</html>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE html
|
||||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<!-- qtsingleapplication-2.6-opensource/src/qtsinglecoreapplication.cpp -->
|
||||
<!-- qtsinglecoreapplication.cpp -->
|
||||
<head>
|
||||
<title>QtSingleCoreApplication Class Reference</title>
|
||||
<link href="classic.css" rel="stylesheet" type="text/css" />
|
||||
|
@ -14,81 +14,85 @@
|
|||
<td width="1"> </td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a></td>
|
||||
</tr></table><h1 class="title">QtSingleCoreApplication Class Reference</h1>
|
||||
<p>A variant of the <a href="qtsingleapplication.html">QtSingleApplication</a> class for non-GUI applications. <a href="#details">More...</a></p>
|
||||
<pre> #include <QtSingleCoreApplication></pre><p>Inherits <a href="http://doc.trolltech.com/4.4/qcoreapplication.html">QCoreApplication</a>.</p>
|
||||
<pre> #include <QtSingleCoreApplication></pre><p>Inherits <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html">QCoreApplication</a>.</p>
|
||||
<ul>
|
||||
<li><a href="qtsinglecoreapplication-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<hr />
|
||||
<a name="public-functions"></a>
|
||||
<h3>Public Functions</h3>
|
||||
<h2>Public Functions</h2>
|
||||
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtsinglecoreapplication.html#QtSingleCoreApplication">QtSingleCoreApplication</a></b> ( int & <i>argc</i>, char ** <i>argv</i> )</td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qtsinglecoreapplication.html#QtSingleCoreApplication-2">QtSingleCoreApplication</a></b> ( const QString & <i>appId</i>, int & <i>argc</i>, char ** <i>argv</i> )</td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">QString </td><td class="memItemRight" valign="bottom"><b><a href="qtsinglecoreapplication.html#id">id</a></b> () const</td></tr>
|
||||
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qtsinglecoreapplication.html#isRunning">isRunning</a></b> ()</td></tr>
|
||||
</table>
|
||||
<ul>
|
||||
<li><div class="fn"/><b><a href="qtsinglecoreapplication.html#QtSingleCoreApplication">QtSingleCoreApplication</a></b> ( int & <i>argc</i>, char ** <i>argv</i> )</li>
|
||||
<li><div class="fn"/><b><a href="qtsinglecoreapplication.html#QtSingleCoreApplication-2">QtSingleCoreApplication</a></b> ( const QString & <i>appId</i>, int & <i>argc</i>, char ** <i>argv</i> )</li>
|
||||
<li><div class="fn"/>QString <b><a href="qtsinglecoreapplication.html#id">id</a></b> () const</li>
|
||||
<li><div class="fn"/>bool <b><a href="qtsinglecoreapplication.html#isRunning">isRunning</a></b> ()</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><div class="fn"/>4 public functions inherited from <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#public-functions">QCoreApplication</a></li>
|
||||
<li><div class="fn"/>29 public functions inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#public-functions">QObject</a></li>
|
||||
<li><div bar="2" class="fn"></div>4 public functions inherited from <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#public-functions">QCoreApplication</a></li>
|
||||
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#public-functions">QObject</a></li>
|
||||
</ul>
|
||||
<hr />
|
||||
<a name="public-slots"></a>
|
||||
<h3>Public Slots</h3>
|
||||
<h2>Public Slots</h2>
|
||||
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><b><a href="qtsinglecoreapplication.html#sendMessage">sendMessage</a></b> ( const QString & <i>message</i>, int <i>timeout</i> = 5000 )</td></tr>
|
||||
</table>
|
||||
<ul>
|
||||
<li><div class="fn"/>bool <b><a href="qtsinglecoreapplication.html#sendMessage">sendMessage</a></b> ( const QString & <i>message</i>, int <i>timeout</i> = 5000 )</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><div class="fn"/>1 public slot inherited from <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#public-slots">QCoreApplication</a></li>
|
||||
<li><div class="fn"/>1 public slot inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#public-slots">QObject</a></li>
|
||||
<li><div bar="2" class="fn"></div>1 public slot inherited from <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#public-slots">QCoreApplication</a></li>
|
||||
<li><div bar="2" class="fn"></div>1 public slot inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#public-slots">QObject</a></li>
|
||||
</ul>
|
||||
<hr />
|
||||
<a name="signals"></a>
|
||||
<h3>Signals</h3>
|
||||
<h2>Signals</h2>
|
||||
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qtsinglecoreapplication.html#messageReceived">messageReceived</a></b> ( const QString & <i>message</i> )</td></tr>
|
||||
</table>
|
||||
<ul>
|
||||
<li><div class="fn"/>void <b><a href="qtsinglecoreapplication.html#messageReceived">messageReceived</a></b> ( const QString & <i>message</i> )</li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><div class="fn"/>1 signal inherited from <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#signals">QCoreApplication</a></li>
|
||||
<li><div class="fn"/>1 signal inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#signals">QObject</a></li>
|
||||
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#signals">QCoreApplication</a></li>
|
||||
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#signals">QObject</a></li>
|
||||
</ul>
|
||||
<h3>Additional Inherited Members</h3>
|
||||
<ul>
|
||||
<li><div class="fn"/>4 properties inherited from <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#properties">QCoreApplication</a></li>
|
||||
<li><div class="fn"/>1 property inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#properties">QObject</a></li>
|
||||
<li><div class="fn"/>1 public type inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#public-variables">QObject</a></li>
|
||||
<li><div class="fn"/>38 static public members inherited from <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#static-public-members">QCoreApplication</a></li>
|
||||
<li><div class="fn"/>4 static public members inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#static-public-members">QObject</a></li>
|
||||
<li><div class="fn"/>7 protected functions inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#protected-functions">QObject</a></li>
|
||||
<li><div class="fn"/>2 protected variables inherited from <a href="http://doc.trolltech.com/4.4/qobject.html#protected-variables">QObject</a></li>
|
||||
<li><div class="fn"></div>4 properties inherited from <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#properties">QCoreApplication</a></li>
|
||||
<li><div class="fn"></div>1 property inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#properties">QObject</a></li>
|
||||
<li><div class="fn"></div>1 public type inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#public-variables">QObject</a></li>
|
||||
<li><div class="fn"></div>38 static public members inherited from <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#static-public-members">QCoreApplication</a></li>
|
||||
<li><div class="fn"></div>4 static public members inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#static-public-members">QObject</a></li>
|
||||
<li><div class="fn"></div>1 protected function inherited from <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#protected-functions">QCoreApplication</a></li>
|
||||
<li><div class="fn"></div>7 protected functions inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#protected-functions">QObject</a></li>
|
||||
<li><div class="fn"></div>2 protected variables inherited from <a href="http://qt.nokia.com/doc/4.6/qobject.html#protected-variables">QObject</a></li>
|
||||
</ul>
|
||||
<a name="details"></a>
|
||||
<hr />
|
||||
<h2>Detailed Description</h2>
|
||||
<p>A variant of the <a href="qtsingleapplication.html">QtSingleApplication</a> class for non-GUI applications.</p>
|
||||
<p>This class is a variant of <a href="qtsingleapplication.html">QtSingleApplication</a> suited for use in console (non-GUI) applications. It is an extension of <a href="http://doc.trolltech.com/4.4/qcoreapplication.html">QCoreApplication</a> (instead of <a href="http://doc.trolltech.com/4.4/qapplication.html">QApplication</a>). It does not require the <a href="http://doc.trolltech.com/4.4/qtgui.html">QtGui</a> library.</p>
|
||||
<p>This class is a variant of <a href="qtsingleapplication.html">QtSingleApplication</a> suited for use in console (non-GUI) applications. It is an extension of <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html">QCoreApplication</a> (instead of <a href="http://qt.nokia.com/doc/4.6/qapplication.html">QApplication</a>). It does not require the <a href="http://qt.nokia.com/doc/4.6/qtgui.html">QtGui</a> library.</p>
|
||||
<p>The API and usage is identical to <a href="qtsingleapplication.html">QtSingleApplication</a>, except that functions relating to the "activation window" are not present, for obvious reasons. Please refer to the <a href="qtsingleapplication.html">QtSingleApplication</a> documentation for explanation of the usage.</p>
|
||||
<p>A QtSingleCoreApplication instance can communicate to a <a href="qtsingleapplication.html">QtSingleApplication</a> instance if they share the same application id. Hence, this class can be used to create a light-weight command-line tool that sends commands to a GUI application.</p>
|
||||
<p>See also <a href="qtsingleapplication.html">QtSingleApplication</a>.</p>
|
||||
<hr />
|
||||
<h2>Member Function Documentation</h2>
|
||||
<h3 class="fn"><a name="QtSingleCoreApplication"></a>QtSingleCoreApplication::QtSingleCoreApplication ( int & <i>argc</i>, char ** <i>argv</i> )</h3>
|
||||
<p>Creates a <a href="qtsinglecoreapplication.html">QtSingleCoreApplication</a> object. The application identifier will be <a href="http://doc.trolltech.com/4.4/qcoreapplication.html#applicationFilePath">QCoreApplication::applicationFilePath</a>(). <i>argc</i> and <i>argv</i> are passed on to the QCoreAppliation constructor.</p>
|
||||
<h3 class="fn"><a name="QtSingleCoreApplication-2"></a>QtSingleCoreApplication::QtSingleCoreApplication ( const <a href="http://doc.trolltech.com/4.4/qstring.html">QString</a> & <i>appId</i>, int & <i>argc</i>, char ** <i>argv</i> )</h3>
|
||||
<p>Creates a <a href="qtsinglecoreapplication.html">QtSingleCoreApplication</a> object. The application identifier will be <a href="http://qt.nokia.com/doc/4.6/qcoreapplication.html#applicationFilePath">QCoreApplication::applicationFilePath</a>(). <i>argc</i> and <i>argv</i> are passed on to the QCoreAppliation constructor.</p>
|
||||
<h3 class="fn"><a name="QtSingleCoreApplication-2"></a>QtSingleCoreApplication::QtSingleCoreApplication ( const <a href="http://qt.nokia.com/doc/4.6/qstring.html">QString</a> & <i>appId</i>, int & <i>argc</i>, char ** <i>argv</i> )</h3>
|
||||
<p>Creates a <a href="qtsinglecoreapplication.html">QtSingleCoreApplication</a> object with the application identifier <i>appId</i>. <i>argc</i> and <i>argv</i> are passed on to the QCoreAppliation constructor.</p>
|
||||
<h3 class="fn"><a name="id"></a><a href="http://doc.trolltech.com/4.4/qstring.html">QString</a> QtSingleCoreApplication::id () const</h3>
|
||||
<h3 class="fn"><a name="id"></a><a href="http://qt.nokia.com/doc/4.6/qstring.html">QString</a> QtSingleCoreApplication::id () const</h3>
|
||||
<p>Returns the application identifier. Two processes with the same identifier will be regarded as instances of the same application.</p>
|
||||
<h3 class="fn"><a name="isRunning"></a>bool QtSingleCoreApplication::isRunning ()</h3>
|
||||
<p>Returns true if another instance of this application is running; otherwise false.</p>
|
||||
<p>This function does not find instances of this application that are being run by a different user (on Windows: that are running in another session).</p>
|
||||
<p>See also <a href="qtsinglecoreapplication.html#sendMessage">sendMessage</a>().</p>
|
||||
<h3 class="fn"><a name="messageReceived"></a>void QtSingleCoreApplication::messageReceived ( const <a href="http://doc.trolltech.com/4.4/qstring.html">QString</a> & <i>message</i> ) <tt> [signal]</tt></h3>
|
||||
<h3 class="fn"><a name="messageReceived"></a>void QtSingleCoreApplication::messageReceived ( const <a href="http://qt.nokia.com/doc/4.6/qstring.html">QString</a> & <i>message</i> ) <tt> [signal]</tt></h3>
|
||||
<p>This signal is emitted when the current instance receives a <i>message</i> from another instance of this application.</p>
|
||||
<p>See also <a href="qtsinglecoreapplication.html#sendMessage">sendMessage</a>().</p>
|
||||
<h3 class="fn"><a name="sendMessage"></a>bool QtSingleCoreApplication::sendMessage ( const <a href="http://doc.trolltech.com/4.4/qstring.html">QString</a> & <i>message</i>, int <i>timeout</i> = 5000 ) <tt> [slot]</tt></h3>
|
||||
<h3 class="fn"><a name="sendMessage"></a>bool QtSingleCoreApplication::sendMessage ( const <a href="http://qt.nokia.com/doc/4.6/qstring.html">QString</a> & <i>message</i>, int <i>timeout</i> = 5000 ) <tt> [slot]</tt></h3>
|
||||
<p>Tries to send the text <i>message</i> to the currently running instance. The <a href="qtsinglecoreapplication.html">QtSingleCoreApplication</a> object in the running instance will emit the <a href="qtsinglecoreapplication.html#messageReceived">messageReceived</a>() signal when it receives the message.</p>
|
||||
<p>This function returns true if the message has been sent to, and processed by, the current instance. If there is no instance currently running, or if the running instance fails to process the message within <i>timeout</i> milliseconds, this function return false.</p>
|
||||
<p>See also <a href="qtsinglecoreapplication.html#isRunning">isRunning</a>() and <a href="qtsinglecoreapplication.html#messageReceived">messageReceived</a>().</p>
|
||||
<p /><address><hr /><div align="center">
|
||||
<table width="100%" cellspacing="0" border="0"><tr class="address">
|
||||
<td width="30%" align="left">Copyright © 2009 Nokia</td>
|
||||
<td width="40%" align="center"><a href="http://doc.trolltech.com/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="left">Copyright © 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
|
||||
<td width="40%" align="center"><a href="http://qt.nokia.com/doc/trademarks.html">Trademarks</a></td>
|
||||
<td width="30%" align="right"><div align="right">Qt Solutions</div></td>
|
||||
</tr></table></div></address></body>
|
||||
</html>
|
||||
|
|
42
thirdparty/singleapp/doc/index.qdoc
vendored
42
thirdparty/singleapp/doc/index.qdoc
vendored
|
@ -1,3 +1,43 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** This file is part of the Qt Solutions component.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
|
||||
** of its contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
/*!
|
||||
\page index.html
|
||||
\title Single Application
|
||||
|
@ -44,4 +84,4 @@
|
|||
|
||||
|
||||
|
||||
*/
|
||||
*/
|
||||
|
|
83
thirdparty/singleapp/src/qtlocalpeer.cpp
vendored
83
thirdparty/singleapp/src/qtlocalpeer.cpp
vendored
|
@ -1,61 +1,56 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** This file is part of a Qt Solutions component.
|
||||
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** This file is part of the Qt Solutions component.
|
||||
**
|
||||
** Contact: Qt Software Information (qt-info@nokia.com)
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||
** accordance with the Qt Solutions Commercial License Agreement provided
|
||||
** with the Software or, alternatively, in accordance with the terms
|
||||
** contained in a written agreement between you and Nokia.
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
|
||||
** of its contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain
|
||||
** additional rights. These rights are described in the Nokia Qt LGPL
|
||||
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
||||
** package.
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3.0 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 3.0 requirements will be
|
||||
** met: http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Please note Third Party Software included with Qt Solutions may impose
|
||||
** additional restrictions and it is the user's responsibility to ensure
|
||||
** that they have met the licensing requirements of the GPL, LGPL, or Qt
|
||||
** Solutions Commercial license and the relevant license of the Third
|
||||
** Party Software they are using.
|
||||
**
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** contact the sales department at qt-sales@nokia.com.
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#include "qtlocalpeer.h"
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QTime>
|
||||
#include <QCoreApplication>
|
||||
#include <QTime>
|
||||
|
||||
#if defined(Q_OS_WIN)
|
||||
#include <QtCore/QLibrary>
|
||||
#include <QtCore/qt_windows.h>
|
||||
#include <QLibrary>
|
||||
#include <qt_windows.h>
|
||||
typedef BOOL(WINAPI*PProcessIdToSessionId)(DWORD,DWORD*);
|
||||
static PProcessIdToSessionId pProcessIdToSessionId = 0;
|
||||
#endif
|
||||
#if defined(Q_OS_UNIX)
|
||||
#include <sys/types.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
@ -165,8 +160,11 @@ bool QtLocalPeer::sendMessage(const QString &message, int timeout)
|
|||
QDataStream ds(&socket);
|
||||
ds.writeBytes(uMsg.constData(), uMsg.size());
|
||||
bool res = socket.waitForBytesWritten(timeout);
|
||||
res &= socket.waitForReadyRead(timeout); // wait for ack
|
||||
res &= (socket.read(qstrlen(ack)) == ack);
|
||||
if (res) {
|
||||
res &= socket.waitForReadyRead(timeout); // wait for ack
|
||||
if (res)
|
||||
res &= (socket.read(qstrlen(ack)) == ack);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
|
@ -192,13 +190,14 @@ void QtLocalPeer::receiveConnection()
|
|||
uMsgBuf += got;
|
||||
} while (remaining && got >= 0 && socket->waitForReadyRead(2000));
|
||||
if (got < 0) {
|
||||
qWarning() << "QtLocalPeer: Message reception failed" << socket->errorString();
|
||||
qWarning("QtLocalPeer: Message reception failed %s", socket->errorString().toLatin1().constData());
|
||||
delete socket;
|
||||
return;
|
||||
}
|
||||
QString message(QString::fromUtf8(uMsg));
|
||||
socket->write(ack, qstrlen(ack));
|
||||
socket->waitForBytesWritten(1000);
|
||||
socket->waitForDisconnected(1000); // make sure client reads ack
|
||||
delete socket;
|
||||
emit messageReceived(message); //### (might take a long time to return)
|
||||
}
|
||||
|
|
90
thirdparty/singleapp/src/qtlocalpeer.h
vendored
90
thirdparty/singleapp/src/qtlocalpeer.h
vendored
|
@ -1,57 +1,51 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** This file is part of a Qt Solutions component.
|
||||
**
|
||||
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
||||
**
|
||||
** Contact: Qt Software Information (qt-info@nokia.com)
|
||||
**
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||
** accordance with the Qt Solutions Commercial License Agreement provided
|
||||
** with the Software or, alternatively, in accordance with the terms
|
||||
** contained in a written agreement between you and Nokia.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain
|
||||
** additional rights. These rights are described in the Nokia Qt LGPL
|
||||
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
||||
** package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3.0 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 3.0 requirements will be
|
||||
** met: http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Please note Third Party Software included with Qt Solutions may impose
|
||||
** additional restrictions and it is the user's responsibility to ensure
|
||||
** that they have met the licensing requirements of the GPL, LGPL, or Qt
|
||||
** Solutions Commercial license and the relevant license of the Third
|
||||
** Party Software they are using.
|
||||
**
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** contact the sales department at qt-sales@nokia.com.
|
||||
**
|
||||
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** This file is part of the Qt Solutions component.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
|
||||
** of its contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QTLOCALPEER_H
|
||||
#define QTLOCALPEER_H
|
||||
|
||||
#include <QtNetwork/QLocalServer>
|
||||
#include <QtNetwork/QLocalSocket>
|
||||
#include <QtCore/QDir>
|
||||
#include <QLocalServer>
|
||||
#include <QLocalSocket>
|
||||
#include <QDir>
|
||||
|
||||
namespace QtLP_Private {
|
||||
#include "qtlockedfile.h"
|
||||
}
|
||||
|
||||
class QtLocalPeer : public QObject
|
||||
{
|
||||
|
@ -79,3 +73,5 @@ protected:
|
|||
private:
|
||||
static const char* ack;
|
||||
};
|
||||
|
||||
#endif // QTLOCALPEER_H
|
||||
|
|
78
thirdparty/singleapp/src/qtlockedfile.cpp
vendored
78
thirdparty/singleapp/src/qtlockedfile.cpp
vendored
|
@ -1,47 +1,41 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** This file is part of a Qt Solutions component.
|
||||
**
|
||||
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
||||
**
|
||||
** Contact: Qt Software Information (qt-info@nokia.com)
|
||||
**
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||
** accordance with the Qt Solutions Commercial License Agreement provided
|
||||
** with the Software or, alternatively, in accordance with the terms
|
||||
** contained in a written agreement between you and Nokia.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain
|
||||
** additional rights. These rights are described in the Nokia Qt LGPL
|
||||
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
||||
** package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3.0 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 3.0 requirements will be
|
||||
** met: http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Please note Third Party Software included with Qt Solutions may impose
|
||||
** additional restrictions and it is the user's responsibility to ensure
|
||||
** that they have met the licensing requirements of the GPL, LGPL, or Qt
|
||||
** Solutions Commercial license and the relevant license of the Third
|
||||
** Party Software they are using.
|
||||
**
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** contact the sales department at qt-sales@nokia.com.
|
||||
**
|
||||
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** This file is part of the Qt Solutions component.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
|
||||
** of its contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "qtlockedfile.h"
|
||||
|
|
88
thirdparty/singleapp/src/qtlockedfile.h
vendored
88
thirdparty/singleapp/src/qtlockedfile.h
vendored
|
@ -1,58 +1,52 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** This file is part of a Qt Solutions component.
|
||||
**
|
||||
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
||||
**
|
||||
** Contact: Qt Software Information (qt-info@nokia.com)
|
||||
**
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||
** accordance with the Qt Solutions Commercial License Agreement provided
|
||||
** with the Software or, alternatively, in accordance with the terms
|
||||
** contained in a written agreement between you and Nokia.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain
|
||||
** additional rights. These rights are described in the Nokia Qt LGPL
|
||||
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
||||
** package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3.0 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 3.0 requirements will be
|
||||
** met: http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Please note Third Party Software included with Qt Solutions may impose
|
||||
** additional restrictions and it is the user's responsibility to ensure
|
||||
** that they have met the licensing requirements of the GPL, LGPL, or Qt
|
||||
** Solutions Commercial license and the relevant license of the Third
|
||||
** Party Software they are using.
|
||||
**
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** contact the sales department at qt-sales@nokia.com.
|
||||
**
|
||||
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** This file is part of the Qt Solutions component.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
|
||||
** of its contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QTLOCKEDFILE_H
|
||||
#define QTLOCKEDFILE_H
|
||||
|
||||
#include <QtCore/QFile>
|
||||
#include <QFile>
|
||||
#ifdef Q_OS_WIN
|
||||
#include <QtCore/QVector>
|
||||
#include <QVector>
|
||||
#endif
|
||||
|
||||
#if defined(Q_WS_WIN)
|
||||
#if defined(Q_OS_WIN)
|
||||
# if !defined(QT_QTLOCKEDFILE_EXPORT) && !defined(QT_QTLOCKEDFILE_IMPORT)
|
||||
# define QT_QTLOCKEDFILE_EXPORT
|
||||
# elif defined(QT_QTLOCKEDFILE_IMPORT)
|
||||
|
@ -68,6 +62,8 @@
|
|||
# define QT_QTLOCKEDFILE_EXPORT
|
||||
#endif
|
||||
|
||||
namespace QtLP_Private {
|
||||
|
||||
class QT_QTLOCKEDFILE_EXPORT QtLockedFile : public QFile
|
||||
{
|
||||
public:
|
||||
|
@ -97,5 +93,5 @@ private:
|
|||
#endif
|
||||
LockMode m_lock_mode;
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
|
|
78
thirdparty/singleapp/src/qtlockedfile_unix.cpp
vendored
78
thirdparty/singleapp/src/qtlockedfile_unix.cpp
vendored
|
@ -1,47 +1,41 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** This file is part of a Qt Solutions component.
|
||||
**
|
||||
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
||||
**
|
||||
** Contact: Qt Software Information (qt-info@nokia.com)
|
||||
**
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||
** accordance with the Qt Solutions Commercial License Agreement provided
|
||||
** with the Software or, alternatively, in accordance with the terms
|
||||
** contained in a written agreement between you and Nokia.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain
|
||||
** additional rights. These rights are described in the Nokia Qt LGPL
|
||||
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
||||
** package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3.0 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 3.0 requirements will be
|
||||
** met: http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Please note Third Party Software included with Qt Solutions may impose
|
||||
** additional restrictions and it is the user's responsibility to ensure
|
||||
** that they have met the licensing requirements of the GPL, LGPL, or Qt
|
||||
** Solutions Commercial license and the relevant license of the Third
|
||||
** Party Software they are using.
|
||||
**
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** contact the sales department at qt-sales@nokia.com.
|
||||
**
|
||||
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** This file is part of the Qt Solutions component.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
|
||||
** of its contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <string.h>
|
||||
|
|
72
thirdparty/singleapp/src/qtlockedfile_win.cpp
vendored
72
thirdparty/singleapp/src/qtlockedfile_win.cpp
vendored
|
@ -1,57 +1,55 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** This file is part of a Qt Solutions component.
|
||||
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** This file is part of the Qt Solutions component.
|
||||
**
|
||||
** Contact: Qt Software Information (qt-info@nokia.com)
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||
** accordance with the Qt Solutions Commercial License Agreement provided
|
||||
** with the Software or, alternatively, in accordance with the terms
|
||||
** contained in a written agreement between you and Nokia.
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
|
||||
** of its contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain
|
||||
** additional rights. These rights are described in the Nokia Qt LGPL
|
||||
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
||||
** package.
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3.0 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 3.0 requirements will be
|
||||
** met: http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Please note Third Party Software included with Qt Solutions may impose
|
||||
** additional restrictions and it is the user's responsibility to ensure
|
||||
** that they have met the licensing requirements of the GPL, LGPL, or Qt
|
||||
** Solutions Commercial license and the relevant license of the Third
|
||||
** Party Software they are using.
|
||||
**
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** contact the sales department at qt-sales@nokia.com.
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include "qtlockedfile.h"
|
||||
#include <QtCore/qt_windows.h>
|
||||
#include <QtCore/QFileInfo>
|
||||
#include <qt_windows.h>
|
||||
#include <QFileInfo>
|
||||
|
||||
#define MUTEX_PREFIX "QtLockedFile mutex "
|
||||
// Maximum number of concurrent read locks. Must not be greater than MAXIMUM_WAIT_OBJECTS
|
||||
#define MAX_READERS MAXIMUM_WAIT_OBJECTS
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
#define QT_WA(unicode, ansi) unicode
|
||||
#endif
|
||||
|
||||
Qt::HANDLE QtLockedFile::getMutexHandle(int idx, bool doCreate)
|
||||
{
|
||||
if (mutexname.isEmpty()) {
|
||||
|
|
125
thirdparty/singleapp/src/qtsingleapplication.cpp
vendored
125
thirdparty/singleapp/src/qtsingleapplication.cpp
vendored
|
@ -1,52 +1,47 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** This file is part of a Qt Solutions component.
|
||||
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** This file is part of the Qt Solutions component.
|
||||
**
|
||||
** Contact: Qt Software Information (qt-info@nokia.com)
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||
** accordance with the Qt Solutions Commercial License Agreement provided
|
||||
** with the Software or, alternatively, in accordance with the terms
|
||||
** contained in a written agreement between you and Nokia.
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
|
||||
** of its contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain
|
||||
** additional rights. These rights are described in the Nokia Qt LGPL
|
||||
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
||||
** package.
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3.0 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 3.0 requirements will be
|
||||
** met: http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Please note Third Party Software included with Qt Solutions may impose
|
||||
** additional restrictions and it is the user's responsibility to ensure
|
||||
** that they have met the licensing requirements of the GPL, LGPL, or Qt
|
||||
** Solutions Commercial license and the relevant license of the Third
|
||||
** Party Software they are using.
|
||||
**
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** contact the sales department at qt-sales@nokia.com.
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
#include "qtsingleapplication.h"
|
||||
#include "qtlocalpeer.h"
|
||||
#include <QWidget>
|
||||
|
||||
|
||||
/*!
|
||||
|
@ -67,28 +62,31 @@
|
|||
that will be compared instead.
|
||||
|
||||
The application should create the QtSingleApplication object early
|
||||
in the startup phase, and call isRunning() or sendMessage() to
|
||||
find out if another instance of this application is already
|
||||
running. Startup parameters (e.g. the name of the file the user
|
||||
wanted this new instance to open) can be passed to the running
|
||||
instance in the sendMessage() function.
|
||||
in the startup phase, and call isRunning() to find out if another
|
||||
instance of this application is already running. If isRunning()
|
||||
returns false, it means that no other instance is running, and
|
||||
this instance has assumed the role as the running instance. In
|
||||
this case, the application should continue with the initialization
|
||||
of the application user interface before entering the event loop
|
||||
with exec(), as normal.
|
||||
|
||||
If isRunning() or sendMessage() returns false, it means that no
|
||||
other instance is running, and this instance has assumed the role
|
||||
as the running instance. The application should continue with the
|
||||
initialization of the application user interface before entering
|
||||
the event loop with exec(), as normal. The messageReceived()
|
||||
signal will be emitted when the application receives messages from
|
||||
another instance of the same application.
|
||||
The messageReceived() signal will be emitted when the running
|
||||
application receives messages from another instance of the same
|
||||
application. When a message is received it might be helpful to the
|
||||
user to raise the application so that it becomes visible. To
|
||||
facilitate this, QtSingleApplication provides the
|
||||
setActivationWindow() function and the activateWindow() slot.
|
||||
|
||||
If isRunning() or sendMessage() returns true, another instance is
|
||||
already running, and the application should terminate or enter
|
||||
client mode.
|
||||
If isRunning() returns true, another instance is already
|
||||
running. It may be alerted to the fact that another instance has
|
||||
started by using the sendMessage() function. Also data such as
|
||||
startup parameters (e.g. the name of the file the user wanted this
|
||||
new instance to open) can be passed to the running instance with
|
||||
this function. Then, the application should terminate (or enter
|
||||
client mode).
|
||||
|
||||
If a message is received it might be helpful to the user to raise
|
||||
the application so that it becomes visible. To facilitate this,
|
||||
QtSingleApplication provides the setActivationWindow() function
|
||||
and the activateWindow() slot.
|
||||
If isRunning() returns true, but sendMessage() fails, that is an
|
||||
indication that the running instance is frozen.
|
||||
|
||||
Here's an example that shows how to convert an existing
|
||||
application to use QtSingleApplication. It is very simple and does
|
||||
|
@ -102,7 +100,6 @@
|
|||
QApplication app(argc, argv);
|
||||
|
||||
MyMainWidget mmw;
|
||||
|
||||
mmw.show();
|
||||
return app.exec();
|
||||
}
|
||||
|
@ -113,19 +110,17 @@
|
|||
QtSingleApplication app(argc, argv);
|
||||
|
||||
if (app.isRunning())
|
||||
return 0;
|
||||
return !app.sendMessage(someDataString);
|
||||
|
||||
MyMainWidget mmw;
|
||||
|
||||
app.setActivationWindow(&mmw);
|
||||
|
||||
mmw.show();
|
||||
return app.exec();
|
||||
}
|
||||
\endcode
|
||||
|
||||
Once this QtSingleApplication instance is destroyed(for example,
|
||||
when the user quits), when the user next attempts to run the
|
||||
Once this QtSingleApplication instance is destroyed (normally when
|
||||
the process exits or crashes), when the user next attempts to run the
|
||||
application this instance will not, of course, be encountered. The
|
||||
next instance to call isRunning() or sendMessage() will assume the
|
||||
role as the new running instance.
|
||||
|
@ -175,7 +170,8 @@ QtSingleApplication::QtSingleApplication(const QString &appId, int &argc, char *
|
|||
sysInit(appId);
|
||||
}
|
||||
|
||||
#if 0
|
||||
#if QT_VERSION < 0x050000
|
||||
|
||||
/*!
|
||||
Creates a QtSingleApplication object. The application identifier
|
||||
will be QCoreApplication::applicationFilePath(). \a argc, \a
|
||||
|
@ -186,9 +182,9 @@ QtSingleApplication::QtSingleApplication(int &argc, char **argv, Type type)
|
|||
{
|
||||
sysInit();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(Q_WS_X11)
|
||||
|
||||
# if defined(Q_WS_X11)
|
||||
/*!
|
||||
Special constructor for X11, ref. the documentation of
|
||||
QApplication's corresponding constructor. The application identifier
|
||||
|
@ -226,7 +222,8 @@ QtSingleApplication::QtSingleApplication(Display* dpy, const QString &appId, int
|
|||
{
|
||||
sysInit(appId);
|
||||
}
|
||||
#endif
|
||||
# endif // Q_WS_X11
|
||||
#endif // QT_VERSION < 0x050000
|
||||
|
||||
|
||||
/*!
|
||||
|
|
81
thirdparty/singleapp/src/qtsingleapplication.h
vendored
81
thirdparty/singleapp/src/qtsingleapplication.h
vendored
|
@ -1,52 +1,51 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** This file is part of a Qt Solutions component.
|
||||
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** This file is part of the Qt Solutions component.
|
||||
**
|
||||
** Contact: Qt Software Information (qt-info@nokia.com)
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||
** accordance with the Qt Solutions Commercial License Agreement provided
|
||||
** with the Software or, alternatively, in accordance with the terms
|
||||
** contained in a written agreement between you and Nokia.
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
|
||||
** of its contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain
|
||||
** additional rights. These rights are described in the Nokia Qt LGPL
|
||||
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
||||
** package.
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3.0 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 3.0 requirements will be
|
||||
** met: http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Please note Third Party Software included with Qt Solutions may impose
|
||||
** additional restrictions and it is the user's responsibility to ensure
|
||||
** that they have met the licensing requirements of the GPL, LGPL, or Qt
|
||||
** Solutions Commercial license and the relevant license of the Third
|
||||
** Party Software they are using.
|
||||
**
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** contact the sales department at qt-sales@nokia.com.
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QTSINGLEAPPLICATION_H
|
||||
#define QTSINGLEAPPLICATION_H
|
||||
|
||||
#include <QApplication>
|
||||
|
||||
class QtLocalPeer;
|
||||
|
||||
#if defined(Q_WS_WIN)
|
||||
#if defined(Q_OS_WIN)
|
||||
# if !defined(QT_QTSINGLEAPPLICATION_EXPORT) && !defined(QT_QTSINGLEAPPLICATION_IMPORT)
|
||||
# define QT_QTSINGLEAPPLICATION_EXPORT
|
||||
# elif defined(QT_QTSINGLEAPPLICATION_IMPORT)
|
||||
|
@ -69,12 +68,14 @@ class QT_QTSINGLEAPPLICATION_EXPORT QtSingleApplication : public QApplication
|
|||
public:
|
||||
QtSingleApplication(int &argc, char **argv, bool GUIenabled = true);
|
||||
QtSingleApplication(const QString &id, int &argc, char **argv);
|
||||
// QtSingleApplication(int &argc, char **argv, Type type);
|
||||
#if defined(Q_WS_X11)
|
||||
#if QT_VERSION < 0x050000
|
||||
QtSingleApplication(int &argc, char **argv, Type type);
|
||||
# if defined(Q_WS_X11)
|
||||
QtSingleApplication(Display* dpy, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0);
|
||||
QtSingleApplication(Display *dpy, int &argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE cmap= 0);
|
||||
QtSingleApplication(Display* dpy, const QString &appId, int argc, char **argv, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0);
|
||||
#endif
|
||||
# endif // Q_WS_X11
|
||||
#endif // QT_VERSION < 0x050000
|
||||
|
||||
bool isRunning();
|
||||
QString id() const;
|
||||
|
@ -100,3 +101,5 @@ private:
|
|||
QtLocalPeer *peer;
|
||||
QWidget *actWin;
|
||||
};
|
||||
|
||||
#endif // QTSINGLEAPPLICATION_H
|
||||
|
|
|
@ -1,47 +1,41 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** This file is part of a Qt Solutions component.
|
||||
**
|
||||
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
||||
**
|
||||
** Contact: Qt Software Information (qt-info@nokia.com)
|
||||
**
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||
** accordance with the Qt Solutions Commercial License Agreement provided
|
||||
** with the Software or, alternatively, in accordance with the terms
|
||||
** contained in a written agreement between you and Nokia.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain
|
||||
** additional rights. These rights are described in the Nokia Qt LGPL
|
||||
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
||||
** package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3.0 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 3.0 requirements will be
|
||||
** met: http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Please note Third Party Software included with Qt Solutions may impose
|
||||
** additional restrictions and it is the user's responsibility to ensure
|
||||
** that they have met the licensing requirements of the GPL, LGPL, or Qt
|
||||
** Solutions Commercial license and the relevant license of the Third
|
||||
** Party Software they are using.
|
||||
**
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** contact the sales department at qt-sales@nokia.com.
|
||||
**
|
||||
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** This file is part of the Qt Solutions component.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
|
||||
** of its contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
|
|
|
@ -1,51 +1,47 @@
|
|||
/****************************************************************************
|
||||
**
|
||||
** This file is part of a Qt Solutions component.
|
||||
**
|
||||
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
||||
**
|
||||
** Contact: Qt Software Information (qt-info@nokia.com)
|
||||
**
|
||||
** Commercial Usage
|
||||
** Licensees holding valid Qt Commercial licenses may use this file in
|
||||
** accordance with the Qt Solutions Commercial License Agreement provided
|
||||
** with the Software or, alternatively, in accordance with the terms
|
||||
** contained in a written agreement between you and Nokia.
|
||||
**
|
||||
** GNU Lesser General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU Lesser
|
||||
** General Public License version 2.1 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.LGPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU Lesser General Public License version 2.1 requirements
|
||||
** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain
|
||||
** additional rights. These rights are described in the Nokia Qt LGPL
|
||||
** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
|
||||
** package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU
|
||||
** General Public License version 3.0 as published by the Free Software
|
||||
** Foundation and appearing in the file LICENSE.GPL included in the
|
||||
** packaging of this file. Please review the following information to
|
||||
** ensure the GNU General Public License version 3.0 requirements will be
|
||||
** met: http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Please note Third Party Software included with Qt Solutions may impose
|
||||
** additional restrictions and it is the user's responsibility to ensure
|
||||
** that they have met the licensing requirements of the GPL, LGPL, or Qt
|
||||
** Solutions Commercial license and the relevant license of the Third
|
||||
** Party Software they are using.
|
||||
**
|
||||
** If you are unsure which license is appropriate for your use, please
|
||||
** contact the sales department at qt-sales@nokia.com.
|
||||
**
|
||||
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
|
||||
** Contact: http://www.qt-project.org/legal
|
||||
**
|
||||
** This file is part of the Qt Solutions component.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:BSD$
|
||||
** You may use this file under the terms of the BSD license as follows:
|
||||
**
|
||||
** "Redistribution and use in source and binary forms, with or without
|
||||
** modification, are permitted provided that the following conditions are
|
||||
** met:
|
||||
** * Redistributions of source code must retain the above copyright
|
||||
** notice, this list of conditions and the following disclaimer.
|
||||
** * Redistributions in binary form must reproduce the above copyright
|
||||
** notice, this list of conditions and the following disclaimer in
|
||||
** the documentation and/or other materials provided with the
|
||||
** distribution.
|
||||
** * Neither the name of Digia Plc and its Subsidiary(-ies) nor the names
|
||||
** of its contributors may be used to endorse or promote products derived
|
||||
** from this software without specific prior written permission.
|
||||
**
|
||||
**
|
||||
** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||
** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef QTSINGLECOREAPPLICATION_H
|
||||
#define QTSINGLECOREAPPLICATION_H
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QCoreApplication>
|
||||
|
||||
class QtLocalPeer;
|
||||
|
||||
|
@ -71,3 +67,5 @@ Q_SIGNALS:
|
|||
private:
|
||||
QtLocalPeer* peer;
|
||||
};
|
||||
|
||||
#endif // QTSINGLECOREAPPLICATION_H
|
||||
|
|
Loading…
Reference in a new issue