summaryrefslogtreecommitdiffstats
path: root/doc/src/html/messageviewer-main-cpp.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/html/messageviewer-main-cpp.html')
-rw-r--r--doc/src/html/messageviewer-main-cpp.html110
1 files changed, 0 insertions, 110 deletions
diff --git a/doc/src/html/messageviewer-main-cpp.html b/doc/src/html/messageviewer-main-cpp.html
deleted file mode 100644
index 5609fc6e..00000000
--- a/doc/src/html/messageviewer-main-cpp.html
+++ /dev/null
@@ -1,110 +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">
-<head>
- <title>main.cpp Example File (messageviewer/main.cpp)</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/qtlogo.png" align="left" border="0" /></td>
-<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a></td>
-<td align="right" valign="top" width="230"><img src="images/codeless.png" border="0" /></td></tr></table><h1 class="title">main.cpp Example File<br /><span class="small-subtitle">messageviewer/main.cpp</span>
-</h1>
-<pre><span class="comment"> /****************************************************************************
- **
- ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
- ** Contact: Nokia Corporation (qt-info@nokia.com)
- **
- ** This file is part of the Qt Messaging Framework.
- **
- ** $QT_BEGIN_LICENSE:LGPL$
- ** No Commercial Usage
- ** This file contains pre-release code and may not be distributed.
- ** You may use this file in accordance with the terms and conditions
- ** contained in the either Technology Preview License Agreement or the
- ** Beta Release License Agreement.
- **
- ** 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.
- **
- ** If you are unsure which license is appropriate for your use, please
- ** contact the sales department at qt-sales@nokia.com.
- ** $QT_END_LICENSE$
- **
- ****************************************************************************/</span>
-
- #include &quot;messageviewer.h&quot;
- #include &lt;qtopiaapplication.h&gt;
-
-<span class="comment"> // Comment out this line to use a manual main() function.</span>
-<span class="comment"> // Ensure you also remove CONFIG+=qtopia_main from qbuild.pro if you do this.</span>
- #define USE_THE_MAIN_MACROS
-
- #ifdef USE_THE_MAIN_MACROS
-
- QTOPIA_ADD_APPLICATION(QTOPIA_TARGET, MessageViewer)
- QTOPIA_MAIN
-
- #else
-
- #ifdef SINGLE_EXEC
- QTOPIA_ADD_APPLICATION(QTOPIA_TARGET, exampleapp)
- #define MAIN_FUNC main_exampleapp
- #else
- #define MAIN_FUNC main
- #endif
-
-<span class="comment"> // This is the storage for the SXE key that uniquely identified this applicaiton.</span>
-<span class="comment"> // make will fail without this</span>!
- QSXE_APP_KEY
-
- int MAIN_FUNC( int argc, char **argv )
- {
- <span class="comment">// This is required to load the SXE key into memory</span>
- QSXE_SET_APP_KEY(argv[0]);
-
- QtopiaApplication a( argc, argv );
-
- <span class="comment">// Set the preferred document system connection type</span>
- QTOPIA_SET_DOCUMENT_SYSTEM_CONNECTION();
-
- MessageViewer *mw = new MessageViewer();
- a.setMainWidget(mw);
- if ( mw-&gt;metaObject()-&gt;indexOfSlot(&quot;setDocument(QString)&quot;) != -1 ) {
- a.showMainDocumentWidget();
- } else {
- a.showMainWidget();
- }
- int rv = a.exec();
- delete mw;
- return rv;
- }
-
- #endif</pre>
-<p /><address><hr /><div align="center">
-<table width="100%" cellspacing="0" border="0"><tr class="address">
-<td align="left">Copyright &copy; 2010 QtSoftware</td>
-<td align="right"><div align="right">Messaging Framework</div></td>
-</tr></table></div></address></body>
-</html>