summaryrefslogtreecommitdiffstats
path: root/Documentation/ConduitProgrammingTutorial/index.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/ConduitProgrammingTutorial/index.tex')
-rw-r--r--Documentation/ConduitProgrammingTutorial/index.tex38
1 files changed, 19 insertions, 19 deletions
diff --git a/Documentation/ConduitProgrammingTutorial/index.tex b/Documentation/ConduitProgrammingTutorial/index.tex
index c50d6e4..d334c15 100644
--- a/Documentation/ConduitProgrammingTutorial/index.tex
+++ b/Documentation/ConduitProgrammingTutorial/index.tex
@@ -1012,7 +1012,7 @@ The conduit has to find out
\item if a local copy is kept, if the local copy of a database has been changed or added (again using the modified flat of the records inside the database).
\end{itemize}
-To assure a responsive user interface, we will once again use \texttt{QTimer::singleShot(this, 0, SLOT(whatever()));} for each of these steps.
+To assure a responsive user interface, we will once again use \texttt{QTimer::singleShot(this, 0, TQ_SLOT(whatever()));} for each of these steps.
The \code{DOCConduit::exec()} function is just the entry point and calls syncNextDB, which will go through all PalmDOC databases on the handheld and determine if any of them has been changed:
@@ -1022,7 +1022,7 @@ The \code{DOCConduit::exec()} function is just the entry point and calls syncNex
FUNCTIONSETUP;
readConfig();
dbnr=0;
- QTimer::singleShot(0, this, SLOT(syncNextDB()));
+ QTimer::singleShot(0, this, TQ_SLOT(syncNextDB()));
return true;
}
\end{verbatim}
@@ -1040,7 +1040,7 @@ void DOCConduit::syncNextDB() {
if (eSyncDirection==eSyncPCToPDA || fHandle->findDatabase(NULL, &dbinfo, dbnr, dbtype(), dbcreator() /*, cardno */ ) < 0) {
// no more databases available, so check for PC->Palm sync
- QTimer::singleShot(0, this, SLOT(syncNextDOC()));
+ QTimer::singleShot(0, this, TQ_SLOT(syncNextDOC()));
return;
}
dbnr=dbinfo.index+1;
@@ -1048,7 +1048,7 @@ void DOCConduit::syncNextDB() {
// if creator and/or type don't match, go to next db
if (!isCorrectDBTypeCreator(dbinfo) || fDBNames.contains(dbinfo.name)) {
- QTimer::singleShot(0, this, SLOT(syncNextDB()));
+ QTimer::singleShot(0, this, TQ_SLOT(syncNextDB()));
return;
}
@@ -1061,7 +1061,7 @@ void DOCConduit::syncNextDB() {
fSyncInfoList.append(syncInfo);
fDBNames.append(dbinfo.name);
- QTimer::singleShot(0, this, SLOT(syncNextDB()));
+ QTimer::singleShot(0, this, TQ_SLOT(syncNextDB()));
return;
}
\end{verbatim}
@@ -1077,7 +1077,7 @@ void DOCConduit::syncNextDOC() {
if (eSyncDirection==eSyncPDAToPC ) {
// We don't sync from PC to PDB, so start the conflict resolution and then the actual sync process
docnames.clear();
- QTimer::singleShot(0, this, SLOT(checkPDBFiles()));
+ QTimer::singleShot(0, this, TQ_SLOT(checkPDBFiles()));
return;
}
@@ -1089,7 +1089,7 @@ void DOCConduit::syncNextDOC() {
if (dociterator==docnames.end()) {
// no more databases available, so start the conflict resolution and then the actual sync proces
docnames.clear();
- QTimer::singleShot(0, this, SLOT(checkPDBFiles()));
+ QTimer::singleShot(0, this, TQ_SLOT(checkPDBFiles()));
return;
}
@@ -1116,7 +1116,7 @@ void DOCConduit::syncNextDOC() {
fDBNames.append(dbinfo.name);
}
- QTimer::singleShot(0, this, SLOT(syncNextDOC()));
+ QTimer::singleShot(0, this, TQ_SLOT(syncNextDOC()));
return;
}
@@ -1129,7 +1129,7 @@ void DOCConduit::checkPDBFiles() {
if (fLocalSync || !fKeepPDBLocally || eSyncDirection==eSyncPCToPDA )
{
// no more databases available, so check for PC->Palm sync
- QTimer::singleShot(0, this, SLOT(resolve()));
+ QTimer::singleShot(0, this, TQ_SLOT(resolve()));
return;
}
@@ -1142,7 +1142,7 @@ void DOCConduit::checkPDBFiles() {
if (dociterator==docnames.end()) {
// no more databases available, so start the conflict resolution and then the actual sync proces
docnames.clear();
- QTimer::singleShot(0, this, SLOT(resolve()));
+ QTimer::singleShot(0, this, TQ_SLOT(resolve()));
return;
}
@@ -1174,7 +1174,7 @@ void DOCConduit::checkPDBFiles() {
}
}
- QTimer::singleShot(0, this, SLOT(checkPDBFiles()));
+ QTimer::singleShot(0, this, TQ_SLOT(checkPDBFiles()));
}
\end{verbatim}
}
@@ -1221,7 +1221,7 @@ void DOCConduit::resolve() {
if (!dlg || !dlg->exec() ) {
KPILOT_DELETE(dlg)
emit logMessage(i18n("Sync aborted by user."));
- QTimer::singleShot(0, this, SLOT(cleanup()));
+ QTimer::singleShot(0, this, TQ_SLOT(cleanup()));
return;
}
}
@@ -1231,7 +1231,7 @@ void DOCConduit::resolve() {
// fDBNames will be filled with the names of the databases that are actually synced (not deleted), so I can write the list to the config file
fDBNames.clear();
fSyncInfoListIterator=fSyncInfoList.begin();
- QTimer::singleShot(0,this, SLOT(syncDatabases()));
+ QTimer::singleShot(0,this, TQ_SLOT(syncDatabases()));
return;
}
\end{verbatim}
@@ -1245,7 +1245,7 @@ Finally, the actual sync of the databases is done again with \code{QTimer::singl
void DOCConduit::syncDatabases() {
FUNCTIONSETUP;
if (fSyncInfoListIterator==fSyncInfoList.end()) {
- QTimer::singleShot(0, this, SLOT(cleanup()));
+ QTimer::singleShot(0, this, TQ_SLOT(cleanup()));
return;
}
@@ -1272,7 +1272,7 @@ void DOCConduit::syncDatabases() {
}
if (sinfo.direction != eSyncDelete) fDBNames.append(sinfo.handheldDB);
- QTimer::singleShot(0,this, SLOT(syncDatabases()));
+ QTimer::singleShot(0,this, TQ_SLOT(syncDatabases()));
return;
}
\end{verbatim}
@@ -1331,8 +1331,8 @@ bool DOCConduit::doSync(docSyncInfo &sinfo) {
if (database && database->isOpen()) {
DOCConverter docconverter;
- connect(&docconverter, SIGNAL(logError(const TQString &)), SIGNAL(logError(const TQString &)));
- connect(&docconverter, SIGNAL(logMessage(const TQString &)), SIGNAL(logMessage(const TQString &)));
+ connect(&docconverter, TQ_SIGNAL(logError(const TQString &)), TQ_SIGNAL(logError(const TQString &)));
+ connect(&docconverter, TQ_SIGNAL(logMessage(const TQString &)), TQ_SIGNAL(logMessage(const TQString &)));
docconverter.setDOCpath(fDOCDir, sinfo.docfilename);
docconverter.setPDB(database);
@@ -1370,8 +1370,8 @@ bool DOCConduit::doSync(docSyncInfo &sinfo) {
emit logError(i18n("Unable to install the locally created PalmDOC %1 to the handheld.").arg(sinfo.dbinfo.name));
if (!res)
emit logError(i18n("Conversion of PalmDOC \"%1\" failed.").arg(sinfo.dbinfo.name));
-// disconnect(&docconverter, SIGNAL(logError(const TQString &)), SIGNAL(logError(const TQString &)));
-// disconnect(&docconverter, SIGNAL(logMessage(const TQString &)), SIGNAL(logMessage(const TQString &)));
+// disconnect(&docconverter, TQ_SIGNAL(logError(const TQString &)), TQ_SIGNAL(logError(const TQString &)));
+// disconnect(&docconverter, TQ_SIGNAL(logMessage(const TQString &)), TQ_SIGNAL(logMessage(const TQString &)));
// KPILOT_DELETE(database);
}
else