summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqsessionmanager.3qt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/man/man3/tqsessionmanager.3qt')
-rw-r--r--doc/man/man3/tqsessionmanager.3qt60
1 files changed, 30 insertions, 30 deletions
diff --git a/doc/man/man3/tqsessionmanager.3qt b/doc/man/man3/tqsessionmanager.3qt
index 79472a0e..4ae80cd5 100644
--- a/doc/man/man3/tqsessionmanager.3qt
+++ b/doc/man/man3/tqsessionmanager.3qt
@@ -1,5 +1,5 @@
'\" t
-.TH QSessionManager 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
+.TH TQSessionManager 3qt "2 February 2007" "Trolltech AS" \" -*- nroff -*-
.\" Copyright 1992-2007 Trolltech ASA. All rights reserved. See the
.\" license file included in the distribution for a complete license
.\" statement.
@@ -7,9 +7,9 @@
.ad l
.nh
.SH NAME
-QSessionManager \- Access to the session manager
+TQSessionManager \- Access to the session manager
.SH SYNOPSIS
-\fC#include <ntqsessionmanager.h>\fR
+\fC#include <tqsessionmanager.h>\fR
.PP
Inherits TQObject.
.PP
@@ -71,38 +71,38 @@ Inherits TQObject.
.br
.in -1c
.SH DESCRIPTION
-The QSessionManager class provides access to the session manager.
+The TQSessionManager class provides access to the session manager.
.PP
The session manager is responsible for session management, most importantly for interruption and resumption. A "session" is a kind of record of the state of the system, e.g. which applications were run at start up and which applications are currently running. The session manager is used to save the session, e.g. when the machine is shut down; and to restore a session, e.g. when the machine is started up. Use QSettings to save and restore an individual application's settings, e.g. window positions, recently used files, etc.
.PP
-QSessionManager provides an interface between the application and the session manager so that the program can work well with the session manager. In Qt, session management requests for action are handled by the two virtual functions QApplication::commitData() and QApplication::saveState(). Both provide a reference to a session manager object as argument, to allow the application to communicate with the session manager.
+TQSessionManager provides an interface between the application and the session manager so that the program can work well with the session manager. In Qt, session management requests for action are handled by the two virtual functions QApplication::commitData() and QApplication::saveState(). Both provide a reference to a session manager object as argument, to allow the application to communicate with the session manager.
.PP
During a session management action (i.e. within commitData() and saveState()), no user interaction is possible \fIunless\fR the application got explicit permission from the session manager. You ask for permission by calling allowsInteraction() or, if it's really urgent, allowsErrorInteraction(). TQt does not enforce this, but the session manager may.
.PP
You can try to abort the shutdown process by calling cancel(). The default commitData() function does this if some top-level window rejected its closeEvent().
.PP
-For sophisticated session managers provided on Unix/X11, QSessionManager offers further possibilites to fine-tune an application's session management behavior: setRestartCommand(), setDiscardCommand(), setRestartHint(), setProperty(), requestPhase2(). See the respective function descriptions for further details.
+For sophisticated session managers provided on Unix/X11, TQSessionManager offers further possibilites to fine-tune an application's session management behavior: setRestartCommand(), setDiscardCommand(), setRestartHint(), setProperty(), requestPhase2(). See the respective function descriptions for further details.
.PP
See also Main Window and Related Classes and Environment Classes.
.SS "Member Type Documentation"
-.SH "QSessionManager::RestartHint"
+.SH "TQSessionManager::RestartHint"
This enum type defines the circumstances under which this application wants to be restarted by the session manager. The current values are
.TP
-\fCQSessionManager::RestartIfRunning\fR - if the application is still running when the session is shut down, it wants to be restarted at the start of the next session.
+\fCTQSessionManager::RestartIfRunning\fR - if the application is still running when the session is shut down, it wants to be restarted at the start of the next session.
.TP
-\fCQSessionManager::RestartAnyway\fR - the application wants to be started at the start of the next session, no matter what. (This is useful for utilities that run just after startup and then quit.)
+\fCTQSessionManager::RestartAnyway\fR - the application wants to be started at the start of the next session, no matter what. (This is useful for utilities that run just after startup and then quit.)
.TP
-\fCQSessionManager::RestartImmediately\fR - the application wants to be started immediately whenever it is not running.
+\fCTQSessionManager::RestartImmediately\fR - the application wants to be started immediately whenever it is not running.
.TP
-\fCQSessionManager::RestartNever\fR - the application does not want to be restarted automatically.
+\fCTQSessionManager::RestartNever\fR - the application does not want to be restarted automatically.
.PP
The default hint is RestartIfRunning.
.SH MEMBER FUNCTION DOCUMENTATION
-.SH "bool QSessionManager::allowsErrorInteraction ()"
+.SH "bool TQSessionManager::allowsErrorInteraction ()"
This is similar to allowsInteraction(), but also tells the session manager that an error occurred. Session managers may give error interaction request higher priority, which means that it is more likely that an error interaction is permitted. However, you are still not guaranteed that the session manager will allow interaction.
.PP
See also allowsInteraction(), release(), and cancel().
-.SH "bool QSessionManager::allowsInteraction ()"
+.SH "bool TQSessionManager::allowsInteraction ()"
Asks the session manager for permission to interact with the user. Returns TRUE if interaction is permitted; otherwise returns FALSE.
.PP
The rationale behind this mechanism is to make it possible to synchronize user interaction during a shutdown. Advanced session managers may ask all applications simultaneously to commit their data, resulting in a much faster shutdown.
@@ -115,7 +115,7 @@ Here's an example of how an application's QApplication::commitData() might be im
.PP
.nf
.br
-void MyApplication::commitData( QSessionManager& sm ) {
+void MyApplication::commitData( TQSessionManager& sm ) {
.br
if ( sm.allowsInteraction() ) {
.br
@@ -169,11 +169,11 @@ void MyApplication::commitData( QSessionManager& sm ) {
If an error occurred within the application while saving its data, you may want to try allowsErrorInteraction() instead.
.PP
See also QApplication::commitData(), release(), and cancel().
-.SH "void QSessionManager::cancel ()"
+.SH "void TQSessionManager::cancel ()"
Tells the session manager to cancel the shutdown process. Applications should not call this function without first asking the user.
.PP
See also allowsInteraction() and allowsErrorInteraction().
-.SH "TQStringList QSessionManager::discardCommand () const"
+.SH "TQStringList TQSessionManager::discardCommand () const"
Returns the currently set discard command.
.PP
Note that if you want to iterate over the list, you should iterate over a copy, e.g.
@@ -195,17 +195,17 @@ Note that if you want to iterate over the list, you should iterate over a copy,
.fi
.PP
See also setDiscardCommand(), restartCommand(), and setRestartCommand().
-.SH "void * QSessionManager::handle () const"
+.SH "void * TQSessionManager::handle () const"
X11 only: returns a handle to the current \fCSmcConnection\fR.
-.SH "bool QSessionManager::isPhase2 () const"
+.SH "bool TQSessionManager::isPhase2 () const"
Returns TRUE if the session manager is currently performing a second session management phase; otherwise returns FALSE.
.PP
See also requestPhase2().
-.SH "void QSessionManager::release ()"
+.SH "void TQSessionManager::release ()"
Releases the session manager's interaction semaphore after an interaction phase.
.PP
See also allowsInteraction() and allowsErrorInteraction().
-.SH "void QSessionManager::requestPhase2 ()"
+.SH "void TQSessionManager::requestPhase2 ()"
Requests a second session management phase for the application. The application may then return immediately from the QApplication::commitData() or QApplication::saveState() function, and they will be called again once most or all other applications have finished their session management.
.PP
The two phases are useful for applications such as the X11 window manager that need to store information about another application's windows and therefore have to wait until these applications have completed their respective session management tasks.
@@ -213,7 +213,7 @@ The two phases are useful for applications such as the X11 window manager that n
Note that if another application has requested a second phase it may get called before, simultaneously with, or after your application's second phase.
.PP
See also isPhase2().
-.SH "TQStringList QSessionManager::restartCommand () const"
+.SH "TQStringList TQSessionManager::restartCommand () const"
Returns the currently set restart command.
.PP
Note that if you want to iterate over the list, you should iterate over a copy, e.g.
@@ -235,17 +235,17 @@ Note that if you want to iterate over the list, you should iterate over a copy,
.fi
.PP
See also setRestartCommand() and restartHint().
-.SH "RestartHint QSessionManager::restartHint () const"
+.SH "RestartHint TQSessionManager::restartHint () const"
Returns the application's current restart hint. The default is RestartIfRunning.
.PP
See also setRestartHint().
-.SH "TQString QSessionManager::sessionId () const"
+.SH "TQString TQSessionManager::sessionId () const"
Returns the identifier of the current session.
.PP
If the application has been restored from an earlier session, this identifier is the same as it was in that earlier session.
.PP
See also sessionKey() and QApplication::sessionId().
-.SH "TQString QSessionManager::sessionKey () const"
+.SH "TQString TQSessionManager::sessionKey () const"
Returns the session key in the current session.
.PP
If the application has been restored from an earlier session, this key is the same as it was when the previous session ended.
@@ -253,19 +253,19 @@ If the application has been restored from an earlier session, this key is the sa
The session key changes with every call of commitData() or saveState().
.PP
See also sessionId() and QApplication::sessionKey().
-.SH "void QSessionManager::setDiscardCommand ( const TQStringList & )"
+.SH "void TQSessionManager::setDiscardCommand ( const TQStringList & )"
See also discardCommand() and setRestartCommand().
-.SH "void QSessionManager::setManagerProperty ( const TQString & name, const TQStringList & value )"
+.SH "void TQSessionManager::setManagerProperty ( const TQString & name, const TQStringList & value )"
Low-level write access to the application's identification and state record are kept in the session manager.
.PP
The property called \fIname\fR has its value set to the string list \fIvalue\fR.
-.SH "void QSessionManager::setManagerProperty ( const TQString & name, const TQString & value )"
+.SH "void TQSessionManager::setManagerProperty ( const TQString & name, const TQString & value )"
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
.PP
Low-level write access to the application's identification and state records are kept in the session manager.
.PP
The property called \fIname\fR has its value set to the string \fIvalue\fR.
-.SH "void QSessionManager::setRestartCommand ( const TQStringList & command )"
+.SH "void TQSessionManager::setRestartCommand ( const TQStringList & command )"
If the session manager is capable of restoring sessions it will execute \fIcommand\fR in order to restore the application. The command defaults to
.PP
.nf
@@ -279,7 +279,7 @@ The \fC-session\fR option is mandatory; otherwise QApplication cannot tell wheth
If your application is very simple, it may be possible to store the entire application state in additional command line options. This is usually a very bad idea because command lines are often limited to a few hundred bytes. Instead, use QSettings, or temporary files or a database for this purpose. By marking the data with the unique sessionId(), you will be able to restore the application in a future session.
.PP
See also restartCommand(), setDiscardCommand(), and setRestartHint().
-.SH "void QSessionManager::setRestartHint ( RestartHint hint )"
+.SH "void TQSessionManager::setRestartHint ( RestartHint hint )"
Sets the application's restart hint to \fIhint\fR. On application startup the hint is set to RestartIfRunning.
.PP
Note that these flags are only hints, a session manager may or may not respect them.
@@ -289,7 +289,7 @@ We recommend setting the restart hint in QApplication::saveState() because most
See also restartHint().
.SH "SEE ALSO"
-.BR http://doc.trolltech.com/ntqsessionmanager.html
+.BR http://doc.trolltech.com/tqsessionmanager.html
.BR http://www.trolltech.com/faq/tech.html
.SH COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the