Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/21/head
Michele Calgaro 11 months ago
parent bdb5acdfbf
commit 7c95b68b35
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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). \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} \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: 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; FUNCTIONSETUP;
readConfig(); readConfig();
dbnr=0; dbnr=0;
QTimer::singleShot(0, this, SLOT(syncNextDB())); QTimer::singleShot(0, this, TQ_SLOT(syncNextDB()));
return true; return true;
} }
\end{verbatim} \end{verbatim}
@ -1040,7 +1040,7 @@ void DOCConduit::syncNextDB() {
if (eSyncDirection==eSyncPCToPDA || fHandle->findDatabase(NULL, &dbinfo, dbnr, dbtype(), dbcreator() /*, cardno */ ) < 0) { if (eSyncDirection==eSyncPCToPDA || fHandle->findDatabase(NULL, &dbinfo, dbnr, dbtype(), dbcreator() /*, cardno */ ) < 0) {
// no more databases available, so check for PC->Palm sync // no more databases available, so check for PC->Palm sync
QTimer::singleShot(0, this, SLOT(syncNextDOC())); QTimer::singleShot(0, this, TQ_SLOT(syncNextDOC()));
return; return;
} }
dbnr=dbinfo.index+1; dbnr=dbinfo.index+1;
@ -1048,7 +1048,7 @@ void DOCConduit::syncNextDB() {
// if creator and/or type don't match, go to next db // if creator and/or type don't match, go to next db
if (!isCorrectDBTypeCreator(dbinfo) || fDBNames.contains(dbinfo.name)) { if (!isCorrectDBTypeCreator(dbinfo) || fDBNames.contains(dbinfo.name)) {
QTimer::singleShot(0, this, SLOT(syncNextDB())); QTimer::singleShot(0, this, TQ_SLOT(syncNextDB()));
return; return;
} }
@ -1061,7 +1061,7 @@ void DOCConduit::syncNextDB() {
fSyncInfoList.append(syncInfo); fSyncInfoList.append(syncInfo);
fDBNames.append(dbinfo.name); fDBNames.append(dbinfo.name);
QTimer::singleShot(0, this, SLOT(syncNextDB())); QTimer::singleShot(0, this, TQ_SLOT(syncNextDB()));
return; return;
} }
\end{verbatim} \end{verbatim}
@ -1077,7 +1077,7 @@ void DOCConduit::syncNextDOC() {
if (eSyncDirection==eSyncPDAToPC ) { if (eSyncDirection==eSyncPDAToPC ) {
// We don't sync from PC to PDB, so start the conflict resolution and then the actual sync process // We don't sync from PC to PDB, so start the conflict resolution and then the actual sync process
docnames.clear(); docnames.clear();
QTimer::singleShot(0, this, SLOT(checkPDBFiles())); QTimer::singleShot(0, this, TQ_SLOT(checkPDBFiles()));
return; return;
} }
@ -1089,7 +1089,7 @@ void DOCConduit::syncNextDOC() {
if (dociterator==docnames.end()) { if (dociterator==docnames.end()) {
// no more databases available, so start the conflict resolution and then the actual sync proces // no more databases available, so start the conflict resolution and then the actual sync proces
docnames.clear(); docnames.clear();
QTimer::singleShot(0, this, SLOT(checkPDBFiles())); QTimer::singleShot(0, this, TQ_SLOT(checkPDBFiles()));
return; return;
} }
@ -1116,7 +1116,7 @@ void DOCConduit::syncNextDOC() {
fDBNames.append(dbinfo.name); fDBNames.append(dbinfo.name);
} }
QTimer::singleShot(0, this, SLOT(syncNextDOC())); QTimer::singleShot(0, this, TQ_SLOT(syncNextDOC()));
return; return;
} }
@ -1129,7 +1129,7 @@ void DOCConduit::checkPDBFiles() {
if (fLocalSync || !fKeepPDBLocally || eSyncDirection==eSyncPCToPDA ) if (fLocalSync || !fKeepPDBLocally || eSyncDirection==eSyncPCToPDA )
{ {
// no more databases available, so check for PC->Palm sync // no more databases available, so check for PC->Palm sync
QTimer::singleShot(0, this, SLOT(resolve())); QTimer::singleShot(0, this, TQ_SLOT(resolve()));
return; return;
} }
@ -1142,7 +1142,7 @@ void DOCConduit::checkPDBFiles() {
if (dociterator==docnames.end()) { if (dociterator==docnames.end()) {
// no more databases available, so start the conflict resolution and then the actual sync proces // no more databases available, so start the conflict resolution and then the actual sync proces
docnames.clear(); docnames.clear();
QTimer::singleShot(0, this, SLOT(resolve())); QTimer::singleShot(0, this, TQ_SLOT(resolve()));
return; return;
} }
@ -1174,7 +1174,7 @@ void DOCConduit::checkPDBFiles() {
} }
} }
QTimer::singleShot(0, this, SLOT(checkPDBFiles())); QTimer::singleShot(0, this, TQ_SLOT(checkPDBFiles()));
} }
\end{verbatim} \end{verbatim}
} }
@ -1221,7 +1221,7 @@ void DOCConduit::resolve() {
if (!dlg || !dlg->exec() ) { if (!dlg || !dlg->exec() ) {
KPILOT_DELETE(dlg) KPILOT_DELETE(dlg)
emit logMessage(i18n("Sync aborted by user.")); emit logMessage(i18n("Sync aborted by user."));
QTimer::singleShot(0, this, SLOT(cleanup())); QTimer::singleShot(0, this, TQ_SLOT(cleanup()));
return; 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 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(); fDBNames.clear();
fSyncInfoListIterator=fSyncInfoList.begin(); fSyncInfoListIterator=fSyncInfoList.begin();
QTimer::singleShot(0,this, SLOT(syncDatabases())); QTimer::singleShot(0,this, TQ_SLOT(syncDatabases()));
return; return;
} }
\end{verbatim} \end{verbatim}
@ -1245,7 +1245,7 @@ Finally, the actual sync of the databases is done again with \code{QTimer::singl
void DOCConduit::syncDatabases() { void DOCConduit::syncDatabases() {
FUNCTIONSETUP; FUNCTIONSETUP;
if (fSyncInfoListIterator==fSyncInfoList.end()) { if (fSyncInfoListIterator==fSyncInfoList.end()) {
QTimer::singleShot(0, this, SLOT(cleanup())); QTimer::singleShot(0, this, TQ_SLOT(cleanup()));
return; return;
} }
@ -1272,7 +1272,7 @@ void DOCConduit::syncDatabases() {
} }
if (sinfo.direction != eSyncDelete) fDBNames.append(sinfo.handheldDB); if (sinfo.direction != eSyncDelete) fDBNames.append(sinfo.handheldDB);
QTimer::singleShot(0,this, SLOT(syncDatabases())); QTimer::singleShot(0,this, TQ_SLOT(syncDatabases()));
return; return;
} }
\end{verbatim} \end{verbatim}
@ -1331,8 +1331,8 @@ bool DOCConduit::doSync(docSyncInfo &sinfo) {
if (database && database->isOpen()) { if (database && database->isOpen()) {
DOCConverter docconverter; DOCConverter docconverter;
connect(&docconverter, SIGNAL(logError(const TQString &)), SIGNAL(logError(const TQString &))); connect(&docconverter, TQ_SIGNAL(logError(const TQString &)), TQ_SIGNAL(logError(const TQString &)));
connect(&docconverter, SIGNAL(logMessage(const TQString &)), SIGNAL(logMessage(const TQString &))); connect(&docconverter, TQ_SIGNAL(logMessage(const TQString &)), TQ_SIGNAL(logMessage(const TQString &)));
docconverter.setDOCpath(fDOCDir, sinfo.docfilename); docconverter.setDOCpath(fDOCDir, sinfo.docfilename);
docconverter.setPDB(database); 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)); emit logError(i18n("Unable to install the locally created PalmDOC %1 to the handheld.").arg(sinfo.dbinfo.name));
if (!res) if (!res)
emit logError(i18n("Conversion of PalmDOC \"%1\" failed.").arg(sinfo.dbinfo.name)); emit logError(i18n("Conversion of PalmDOC \"%1\" failed.").arg(sinfo.dbinfo.name));
// disconnect(&docconverter, SIGNAL(logError(const TQString &)), SIGNAL(logError(const TQString &))); // disconnect(&docconverter, TQ_SIGNAL(logError(const TQString &)), TQ_SIGNAL(logError(const TQString &)));
// disconnect(&docconverter, SIGNAL(logMessage(const TQString &)), SIGNAL(logMessage(const TQString &))); // disconnect(&docconverter, TQ_SIGNAL(logMessage(const TQString &)), TQ_SIGNAL(logMessage(const TQString &)));
// KPILOT_DELETE(database); // KPILOT_DELETE(database);
} }
else else

@ -530,7 +530,7 @@ void AbbrowserConduit::showAddresses(
if ( syncMode().isTest() ) if ( syncMode().isTest() )
{ {
TQTimer::singleShot(0, this, TQT_SLOT(slotTestRecord())); TQTimer::singleShot(0, this, TQ_SLOT(slotTestRecord()));
return true; return true;
} }
@ -580,7 +580,7 @@ void AbbrowserConduit::showAddresses(
for this, and no longer purge the whole addressbook before the sync to for this, and no longer purge the whole addressbook before the sync to
prevent data loss in case of connection loss. */ prevent data loss in case of connection loss. */
TQTimer::singleShot(0, this, TQT_SLOT(slotPalmRecToPC())); TQTimer::singleShot(0, this, TQ_SLOT(slotPalmRecToPC()));
return true; return true;
} }
@ -596,7 +596,7 @@ void AbbrowserConduit::slotPalmRecToPC()
{ {
DEBUGKPILOT << fname << ": Done; change to PCtoHH phase." << endl; DEBUGKPILOT << fname << ": Done; change to PCtoHH phase." << endl;
abiter = aBook->begin(); abiter = aBook->begin();
TQTimer::singleShot(0, this, TQT_SLOT(slotPCRecToPalm())); TQTimer::singleShot(0, this, TQ_SLOT(slotPCRecToPalm()));
return; return;
} }
@ -614,7 +614,7 @@ void AbbrowserConduit::slotPalmRecToPC()
if(!palmRec) if(!palmRec)
{ {
abiter = aBook->begin(); abiter = aBook->begin();
TQTimer::singleShot(0, this, TQT_SLOT(slotPCRecToPalm())); TQTimer::singleShot(0, this, TQ_SLOT(slotPCRecToPalm()));
return; return;
} }
@ -622,7 +622,7 @@ void AbbrowserConduit::slotPalmRecToPC()
if(syncedIds.contains(palmRec->id())) if(syncedIds.contains(palmRec->id()))
{ {
KPILOT_DELETE(palmRec); KPILOT_DELETE(palmRec);
TQTimer::singleShot(0, this, TQT_SLOT(slotPalmRecToPC())); TQTimer::singleShot(0, this, TQ_SLOT(slotPalmRecToPC()));
return; return;
} }
@ -650,7 +650,7 @@ void AbbrowserConduit::slotPalmRecToPC()
KPILOT_DELETE(palmRec); KPILOT_DELETE(palmRec);
KPILOT_DELETE(backupRec); KPILOT_DELETE(backupRec);
TQTimer::singleShot(0, this, TQT_SLOT(slotPalmRecToPC())); TQTimer::singleShot(0, this, TQ_SLOT(slotPalmRecToPC()));
} }
@ -664,7 +664,7 @@ void AbbrowserConduit::slotPCRecToPalm()
{ {
DEBUGKPILOT << fname << ": Done; change to delete records." << endl; DEBUGKPILOT << fname << ": Done; change to delete records." << endl;
pilotindex = 0; pilotindex = 0;
TQTimer::singleShot(0, this, TQT_SLOT(slotDeletedRecord())); TQTimer::singleShot(0, this, TQ_SLOT(slotDeletedRecord()));
return; return;
} }
@ -678,7 +678,7 @@ void AbbrowserConduit::slotPCRecToPalm()
{ {
DEBUGKPILOT << fname << ": address with id " << ad.uid() << DEBUGKPILOT << fname << ": address with id " << ad.uid() <<
" marked archived, so don't sync." << endl; " marked archived, so don't sync." << endl;
TQTimer::singleShot(0, this, TQT_SLOT(slotPCRecToPalm())); TQTimer::singleShot(0, this, TQ_SLOT(slotPCRecToPalm()));
return; return;
} }
@ -691,7 +691,7 @@ void AbbrowserConduit::slotPCRecToPalm()
DEBUGKPILOT << fname << ": This is a new record." << endl; DEBUGKPILOT << fname << ": This is a new record." << endl;
// it's a new item(no record ID and not inserted by the Palm -> PC sync), so add it // it's a new item(no record ID and not inserted by the Palm -> PC sync), so add it
syncAddressee(ad, 0L, 0L); syncAddressee(ad, 0L, 0L);
TQTimer::singleShot(0, this, TQT_SLOT(slotPCRecToPalm())); TQTimer::singleShot(0, this, TQ_SLOT(slotPCRecToPalm()));
return; return;
} }
@ -699,7 +699,7 @@ void AbbrowserConduit::slotPCRecToPalm()
if (syncedIds.contains(rid)) if (syncedIds.contains(rid))
{ {
DEBUGKPILOT << ": address with id " << rid << " already synced." << endl; DEBUGKPILOT << ": address with id " << rid << " already synced." << endl;
TQTimer::singleShot(0, this, TQT_SLOT(slotPCRecToPalm())); TQTimer::singleShot(0, this, TQ_SLOT(slotPCRecToPalm()));
return; return;
} }
@ -742,7 +742,7 @@ void AbbrowserConduit::slotPCRecToPalm()
syncedIds.append(rid); syncedIds.append(rid);
// done with the sync process, go on with the next one: // done with the sync process, go on with the next one:
TQTimer::singleShot(0, this, TQT_SLOT(slotPCRecToPalm())); TQTimer::singleShot(0, this, TQ_SLOT(slotPCRecToPalm()));
} }
@ -755,7 +755,7 @@ void AbbrowserConduit::slotDeletedRecord()
if(!backupRec || isFirstSync() ) if(!backupRec || isFirstSync() )
{ {
KPILOT_DELETE(backupRec); KPILOT_DELETE(backupRec);
TQTimer::singleShot(0, this, TQT_SLOT(slotDeleteUnsyncedPCRecords())); TQTimer::singleShot(0, this, TQ_SLOT(slotDeleteUnsyncedPCRecords()));
return; return;
} }
@ -796,7 +796,7 @@ void AbbrowserConduit::slotDeletedRecord()
KPILOT_DELETE(palmRec); KPILOT_DELETE(palmRec);
KPILOT_DELETE(backupAddr); KPILOT_DELETE(backupAddr);
KPILOT_DELETE(backupRec); KPILOT_DELETE(backupRec);
TQTimer::singleShot(0, this, TQT_SLOT(slotDeletedRecord())); TQTimer::singleShot(0, this, TQ_SLOT(slotDeletedRecord()));
} }
@ -829,7 +829,7 @@ void AbbrowserConduit::slotDeleteUnsyncedPCRecords()
} }
} }
} }
TQTimer::singleShot(0, this, TQT_SLOT(slotDeleteUnsyncedHHRecords())); TQTimer::singleShot(0, this, TQ_SLOT(slotDeleteUnsyncedHHRecords()));
} }
@ -852,7 +852,7 @@ void AbbrowserConduit::slotDeleteUnsyncedHHRecords()
} }
} }
} }
TQTimer::singleShot(0, this, TQT_SLOT(slotCleanup())); TQTimer::singleShot(0, this, TQ_SLOT(slotCleanup()));
} }
@ -1893,5 +1893,5 @@ void AbbrowserConduit::slotTestRecord()
// Schedule more work. // Schedule more work.
++pilotindex; ++pilotindex;
TQTimer::singleShot(0, this, TQT_SLOT(slotTestRecord())); TQTimer::singleShot(0, this, TQ_SLOT(slotTestRecord()));
} }

@ -73,20 +73,20 @@ AbbrowserWidgetSetup::AbbrowserWidgetSetup(TQWidget *w, const char *n) :
ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget,fAbout); ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget,fAbout);
fWidget=fConfigWidget; fWidget=fConfigWidget;
fConfigWidget->fAbookFile->setMode(KFile::File); fConfigWidget->fAbookFile->setMode(KFile::File);
#define CM(a,b) connect(fConfigWidget->a,b,this,TQT_SLOT(modified())); #define CM(a,b) connect(fConfigWidget->a,b,this,TQ_SLOT(modified()));
CM(fSyncDestination,TQT_SIGNAL(clicked(int))); CM(fSyncDestination,TQ_SIGNAL(clicked(int)));
CM(fAbookFile,TQT_SIGNAL(textChanged(const TQString &))); CM(fAbookFile,TQ_SIGNAL(textChanged(const TQString &)));
CM(fArchive,TQT_SIGNAL(toggled(bool))); CM(fArchive,TQ_SIGNAL(toggled(bool)));
CM(fConflictResolution,TQT_SIGNAL(activated(int))); CM(fConflictResolution,TQ_SIGNAL(activated(int)));
CM(fOtherPhone,TQT_SIGNAL(activated(int))); CM(fOtherPhone,TQ_SIGNAL(activated(int)));
CM(fAddress,TQT_SIGNAL(activated(int))); CM(fAddress,TQ_SIGNAL(activated(int)));
CM(fFax,TQT_SIGNAL(activated(int))); CM(fFax,TQ_SIGNAL(activated(int)));
CM(fCustom0,TQT_SIGNAL(activated(int))); CM(fCustom0,TQ_SIGNAL(activated(int)));
CM(fCustom1,TQT_SIGNAL(activated(int))); CM(fCustom1,TQ_SIGNAL(activated(int)));
CM(fCustom2,TQT_SIGNAL(activated(int))); CM(fCustom2,TQ_SIGNAL(activated(int)));
CM(fCustom3,TQT_SIGNAL(activated(int))); CM(fCustom3,TQ_SIGNAL(activated(int)));
CM(fCustomDate, TQT_SIGNAL(activated(int))); CM(fCustomDate, TQ_SIGNAL(activated(int)));
CM(fCustomDate, TQT_SIGNAL(textChanged(const TQString&))); CM(fCustomDate, TQ_SIGNAL(textChanged(const TQString&)));
#undef CM #undef CM
} }

@ -193,16 +193,16 @@ ResolutionDlg::ResolutionDlg( TQWidget* parent, KPilotLink*fH,
if (tickleTimer) if (tickleTimer)
{ {
connect( tickleTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(_tickle())); connect( tickleTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(_tickle()));
// tickle the palm every 10 seconds to prevent a timeout until the // tickle the palm every 10 seconds to prevent a timeout until the
// sync is really finished. // sync is really finished.
tickleTimer->start( 10000 ); tickleTimer->start( 10000 );
} }
connect(fWidget->fKeepBoth, TQT_SIGNAL(clicked()), TQT_SLOT(slotKeepBoth())); connect(fWidget->fKeepBoth, TQ_SIGNAL(clicked()), TQ_SLOT(slotKeepBoth()));
connect(fWidget->fBackupValues, TQT_SIGNAL(clicked()), TQT_SLOT(slotUseBackup())); connect(fWidget->fBackupValues, TQ_SIGNAL(clicked()), TQ_SLOT(slotUseBackup()));
connect(fWidget->fPalmValues, TQT_SIGNAL(clicked()), TQT_SLOT(slotUsePalm())); connect(fWidget->fPalmValues, TQ_SIGNAL(clicked()), TQ_SLOT(slotUsePalm()));
connect(fWidget->fPCValues, TQT_SIGNAL(clicked()), TQT_SLOT(slotUsePC())); connect(fWidget->fPCValues, TQ_SIGNAL(clicked()), TQ_SLOT(slotUsePC()));
} }
void ResolutionDlg::adjustButtons(ResolutionTable*tab) void ResolutionDlg::adjustButtons(ResolutionTable*tab)

@ -271,7 +271,7 @@ TQString DOCConduit::constructTXTFileName(TQString name) {
emit logMessage(i18n("Searching for texts and databases to synchronize")); emit logMessage(i18n("Searching for texts and databases to synchronize"));
TQTimer::singleShot(0, this, TQT_SLOT(syncNextDB())); TQTimer::singleShot(0, this, TQ_SLOT(syncNextDB()));
return true; return true;
} }
@ -336,8 +336,8 @@ bool DOCConduit::doSync(docSyncInfo &sinfo)
if (database && database->isOpen()) { if (database && database->isOpen()) {
DOCConverter docconverter; DOCConverter docconverter;
connect(&docconverter, TQT_SIGNAL(logError(const TQString &)), TQT_SIGNAL(logError(const TQString &))); connect(&docconverter, TQ_SIGNAL(logError(const TQString &)), TQ_SIGNAL(logError(const TQString &)));
connect(&docconverter, TQT_SIGNAL(logMessage(const TQString &)), TQT_SIGNAL(logMessage(const TQString &))); connect(&docconverter, TQ_SIGNAL(logMessage(const TQString &)), TQ_SIGNAL(logMessage(const TQString &)));
docconverter.setTXTpath( DOCConduitSettings::tXTDirectory(), sinfo.txtfilename ); docconverter.setTXTpath( DOCConduitSettings::tXTDirectory(), sinfo.txtfilename );
docconverter.setPDB(database); docconverter.setPDB(database);
@ -382,8 +382,8 @@ bool DOCConduit::doSync(docSyncInfo &sinfo)
if (!res) if (!res)
emit logError(i18n("Conversion of PalmDOC \"%1\" failed.") emit logError(i18n("Conversion of PalmDOC \"%1\" failed.")
.arg(TQString::fromLatin1(sinfo.dbinfo.name))); .arg(TQString::fromLatin1(sinfo.dbinfo.name)));
// disconnect(&docconverter, TQT_SIGNAL(logError(const TQString &)), TQT_SIGNAL(logError(const TQString &))); // disconnect(&docconverter, TQ_SIGNAL(logError(const TQString &)), TQ_SIGNAL(logError(const TQString &)));
// disconnect(&docconverter, TQT_SIGNAL(logMessage(const TQString &)), TQT_SIGNAL(logMessage(const TQString &))); // disconnect(&docconverter, TQ_SIGNAL(logMessage(const TQString &)), TQ_SIGNAL(logMessage(const TQString &)));
// KPILOT_DELETE(database); // KPILOT_DELETE(database);
} }
else else
@ -404,7 +404,7 @@ void DOCConduit::syncNextDB() {
if (eSyncDirection==eSyncPCToPDA || fHandle->findDatabase(NULL, &dbinfo, dbnr, dbtype(), dbcreator() /*, cardno */ ) < 0) if (eSyncDirection==eSyncPCToPDA || fHandle->findDatabase(NULL, &dbinfo, dbnr, dbtype(), dbcreator() /*, cardno */ ) < 0)
{ {
// no more databases available, so check for PC->Palm sync // no more databases available, so check for PC->Palm sync
TQTimer::singleShot(0, this, TQT_SLOT(syncNextTXT())); TQTimer::singleShot(0, this, TQ_SLOT(syncNextTXT()));
return; return;
} }
dbnr=dbinfo.index+1; dbnr=dbinfo.index+1;
@ -416,7 +416,7 @@ void DOCConduit::syncNextDB() {
if (!isCorrectDBTypeCreator(dbinfo) || if (!isCorrectDBTypeCreator(dbinfo) ||
fDBNames.contains(TQString::fromLatin1(dbinfo.name))) fDBNames.contains(TQString::fromLatin1(dbinfo.name)))
{ {
TQTimer::singleShot(0, this, TQT_SLOT(syncNextDB())); TQTimer::singleShot(0, this, TQ_SLOT(syncNextDB()));
return; return;
} }
@ -430,7 +430,7 @@ void DOCConduit::syncNextDB() {
fSyncInfoList.append(syncInfo); fSyncInfoList.append(syncInfo);
fDBNames.append(TQString::fromLatin1(dbinfo.name)); fDBNames.append(TQString::fromLatin1(dbinfo.name));
TQTimer::singleShot(0, this, TQT_SLOT(syncNextDB())); TQTimer::singleShot(0, this, TQ_SLOT(syncNextDB()));
return; return;
} }
@ -444,7 +444,7 @@ void DOCConduit::syncNextTXT()
{ {
// We don't sync from PC to PDB, so start the conflict resolution and then the actual sync process // We don't sync from PC to PDB, so start the conflict resolution and then the actual sync process
docnames.clear(); docnames.clear();
TQTimer::singleShot(0, this, TQT_SLOT(checkPDBFiles())); TQTimer::singleShot(0, this, TQ_SLOT(checkPDBFiles()));
return; return;
} }
@ -456,7 +456,7 @@ void DOCConduit::syncNextTXT()
if (dociterator==docnames.end()) { if (dociterator==docnames.end()) {
// no more databases available, so start the conflict resolution and then the actual sync proces // no more databases available, so start the conflict resolution and then the actual sync proces
docnames.clear(); docnames.clear();
TQTimer::singleShot(0, this, TQT_SLOT(checkPDBFiles())); TQTimer::singleShot(0, this, TQ_SLOT(checkPDBFiles()));
return; return;
} }
@ -488,7 +488,7 @@ void DOCConduit::syncNextTXT()
#endif #endif
} }
TQTimer::singleShot(0, this, TQT_SLOT(syncNextTXT())); TQTimer::singleShot(0, this, TQ_SLOT(syncNextTXT()));
return; return;
} }
@ -502,7 +502,7 @@ void DOCConduit::checkPDBFiles() {
if ( DOCConduitSettings::localSync() || !DOCConduitSettings::keepPDBsLocally() || eSyncDirection==eSyncPCToPDA ) if ( DOCConduitSettings::localSync() || !DOCConduitSettings::keepPDBsLocally() || eSyncDirection==eSyncPCToPDA )
{ {
// no more databases available, so check for PC->Palm sync // no more databases available, so check for PC->Palm sync
TQTimer::singleShot(0, this, TQT_SLOT(checkDeletedDocs())); TQTimer::singleShot(0, this, TQ_SLOT(checkDeletedDocs()));
return; return;
} }
@ -515,7 +515,7 @@ void DOCConduit::checkPDBFiles() {
if (dociterator==docnames.end()) { if (dociterator==docnames.end()) {
// no more databases available, so start the conflict resolution and then the actual sync proces // no more databases available, so start the conflict resolution and then the actual sync proces
docnames.clear(); docnames.clear();
TQTimer::singleShot(0, this, TQT_SLOT(checkDeletedDocs())); TQTimer::singleShot(0, this, TQ_SLOT(checkDeletedDocs()));
return; return;
} }
@ -549,7 +549,7 @@ void DOCConduit::checkPDBFiles() {
} }
} }
TQTimer::singleShot(0, this, TQT_SLOT(checkPDBFiles())); TQTimer::singleShot(0, this, TQ_SLOT(checkPDBFiles()));
} }
@ -574,7 +574,7 @@ void DOCConduit::checkDeletedDocs()
fSyncInfoList.append(syncInfo); fSyncInfoList.append(syncInfo);
} }
} }
TQTimer::singleShot(0, this, TQT_SLOT(resolve())); TQTimer::singleShot(0, this, TQ_SLOT(resolve()));
return; return;
} }
@ -628,7 +628,7 @@ void DOCConduit::resolve() {
if (!dlg || !dlg->exec() ) { if (!dlg || !dlg->exec() ) {
KPILOT_DELETE(dlg) KPILOT_DELETE(dlg)
emit logMessage(i18n("Sync aborted by user.")); emit logMessage(i18n("Sync aborted by user."));
TQTimer::singleShot(0, this, TQT_SLOT(cleanup())); TQTimer::singleShot(0, this, TQ_SLOT(cleanup()));
return; return;
} }
} }
@ -638,7 +638,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 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(); fDBNames.clear();
fSyncInfoListIterator=fSyncInfoList.begin(); fSyncInfoListIterator=fSyncInfoList.begin();
TQTimer::singleShot(0,this, TQT_SLOT(syncDatabases())); TQTimer::singleShot(0,this, TQ_SLOT(syncDatabases()));
return; return;
} }
@ -648,7 +648,7 @@ void DOCConduit::syncDatabases() {
FUNCTIONSETUP; FUNCTIONSETUP;
if (fSyncInfoListIterator==fSyncInfoList.end()) { if (fSyncInfoListIterator==fSyncInfoList.end()) {
// We're done, so clean up // We're done, so clean up
TQTimer::singleShot(0, this, TQT_SLOT(cleanup())); TQTimer::singleShot(0, this, TQ_SLOT(cleanup()));
return; return;
} }
@ -679,7 +679,7 @@ void DOCConduit::syncDatabases() {
} }
if (sinfo.direction != eSyncDelete) fDBNames.append(sinfo.handheldDB); if (sinfo.direction != eSyncDelete) fDBNames.append(sinfo.handheldDB);
TQTimer::singleShot(0,this, TQT_SLOT(syncDatabases())); TQTimer::singleShot(0,this, TQ_SLOT(syncDatabases()));
return; return;
} }

@ -75,7 +75,7 @@ ResolutionDialog::ResolutionDialog( TQWidget* parent, const TQString& caption, s
// Invisible button group for the information buttons to use the same slot for all of them (see Dallheimer's book, page 309f) // Invisible button group for the information buttons to use the same slot for all of them (see Dallheimer's book, page 309f)
TQButtonGroup *bgroup = new TQButtonGroup( this ); TQButtonGroup *bgroup = new TQButtonGroup( this );
bgroup->hide(); bgroup->hide();
TQObject::connect(bgroup, TQT_SIGNAL(clicked(int)), this, TQT_SLOT(slotInfo(int))); TQObject::connect(bgroup, TQ_SIGNAL(clicked(int)), this, TQ_SLOT(slotInfo(int)));
if (syncInfo) { if (syncInfo) {
DEBUGKPILOT<<"Adding resolution options for the databases "<<endl; DEBUGKPILOT<<"Adding resolution options for the databases "<<endl;
@ -127,7 +127,7 @@ ResolutionDialog::ResolutionDialog( TQWidget* parent, const TQString& caption, s
if (fHandle) tickleTimer=new TQTimer(this, "TickleTimer"); if (fHandle) tickleTimer=new TQTimer(this, "TickleTimer");
if (tickleTimer) { if (tickleTimer) {
connect( tickleTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(_tickle()) ); connect( tickleTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(_tickle()) );
tickleTimer->start( 10000 ); // tickle the palm every 10 seconds to prevent a timeout until the sync is really finished. tickleTimer->start( 10000 ); // tickle the palm every 10 seconds to prevent a timeout until the sync is really finished.
} }

@ -63,7 +63,7 @@ DOCWidgetConfig::DOCWidgetConfig(TQWidget * w, const char *n):
fConduitName=i18n("Palm DOC"); fConduitName=i18n("Palm DOC");
#define CMOD(a,b) connect(fConfigWidget->a,TQT_SIGNAL(b),this,TQT_SLOT(modified())) #define CMOD(a,b) connect(fConfigWidget->a,TQ_SIGNAL(b),this,TQ_SLOT(modified()))
CMOD(fTXTDir,textChanged(const TQString &)); CMOD(fTXTDir,textChanged(const TQString &));
CMOD(fPDBDir,textChanged(const TQString &)); CMOD(fPDBDir,textChanged(const TQString &));
CMOD(fkeepPDBLocally,clicked()); CMOD(fkeepPDBLocally,clicked());

@ -70,10 +70,10 @@ ConverterDlg::ConverterDlg( TQWidget *parent, const TQString& caption)
readSettings(); readSettings();
connect(dlg->fDirectories, TQT_SIGNAL(toggled(bool)), connect(dlg->fDirectories, TQ_SIGNAL(toggled(bool)),
this, TQT_SLOT(slotDirectories(bool))); this, TQ_SLOT(slotDirectories(bool)));
connect(dlg->fTextToPDB, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotToPDB())); connect(dlg->fTextToPDB, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotToPDB()));
connect(dlg->fPDBToText, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotToText())); connect(dlg->fPDBToText, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotToText()));
resize(minimumSize()); resize(minimumSize());
} }

@ -239,7 +239,7 @@ KNotesAction::KNotesAction(KPilotLink *o,
// this is not needed. As it is done in the initstate in process(); // this is not needed. As it is done in the initstate in process();
// resetIndexes(); // resetIndexes();
connect(fP->fTimer,TQT_SIGNAL(timeout()),TQT_SLOT(process())); connect(fP->fTimer,TQ_SIGNAL(timeout()),TQ_SLOT(process()));
fP->fTimer->start(0,false); fP->fTimer->start(0,false);
return true; return true;

@ -50,12 +50,12 @@ KNotesConfigBase::KNotesConfigBase(TQWidget *w, const char *n) :
fConfigWidget = new KNotesWidget(w); fConfigWidget = new KNotesWidget(w);
ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget,KNotesConduitFactory::about()); ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget,KNotesConduitFactory::about());
fWidget = fConfigWidget; fWidget = fConfigWidget;
TQObject::connect(fConfigWidget->fDeleteNoteForMemo,TQT_SIGNAL(clicked()), TQObject::connect(fConfigWidget->fDeleteNoteForMemo,TQ_SIGNAL(clicked()),
this,TQT_SLOT(modified())); this,TQ_SLOT(modified()));
TQObject::connect(fConfigWidget->fSuppressConfirm,TQT_SIGNAL(clicked()), TQObject::connect(fConfigWidget->fSuppressConfirm,TQ_SIGNAL(clicked()),
this,TQT_SLOT(modified())); this,TQ_SLOT(modified()));
TQObject::connect(fConfigWidget->fDeleteNoteForMemo,TQT_SIGNAL(toggled(bool)), TQObject::connect(fConfigWidget->fDeleteNoteForMemo,TQ_SIGNAL(toggled(bool)),
fConfigWidget->fSuppressConfirm,TQT_SLOT(setEnabled(bool))); fConfigWidget->fSuppressConfirm,TQ_SLOT(setEnabled(bool)));
fConduitName=i18n("KNotes"); fConduitName=i18n("KNotes");
} }

@ -65,21 +65,21 @@ MALWidgetSetup::MALWidgetSetup(TQWidget *w, const char *n) :
fConfigWidget->tabWidget->adjustSize(); fConfigWidget->tabWidget->adjustSize();
fConfigWidget->resize(fConfigWidget->tabWidget->size()); fConfigWidget->resize(fConfigWidget->tabWidget->size());
#define CM(a,b) connect(fConfigWidget->a,b,this,TQT_SLOT(modified())); #define CM(a,b) connect(fConfigWidget->a,b,this,TQ_SLOT(modified()));
CM( syncTime, TQT_SIGNAL(clicked(int)) ); CM( syncTime, TQ_SIGNAL(clicked(int)) );
CM( proxyType, TQT_SIGNAL(clicked(int)) ); CM( proxyType, TQ_SIGNAL(clicked(int)) );
CM( proxyServerName, TQT_SIGNAL(textChanged(const TQString &)) ); CM( proxyServerName, TQ_SIGNAL(textChanged(const TQString &)) );
CM( proxyCustomPortCheck, TQT_SIGNAL(clicked()) ); CM( proxyCustomPortCheck, TQ_SIGNAL(clicked()) );
CM( proxyCustomPort, TQT_SIGNAL(valueChanged(int)) ); CM( proxyCustomPort, TQ_SIGNAL(valueChanged(int)) );
CM( proxyUserName, TQT_SIGNAL(textChanged(const TQString &)) ); CM( proxyUserName, TQ_SIGNAL(textChanged(const TQString &)) );
CM( proxyPassword, TQT_SIGNAL(textChanged(const TQString &)) ); CM( proxyPassword, TQ_SIGNAL(textChanged(const TQString &)) );
CM( malServerName, TQT_SIGNAL(textChanged(const TQString &)) ); CM( malServerName, TQ_SIGNAL(textChanged(const TQString &)) );
CM( malCustomPortCheck, TQT_SIGNAL(clicked()) ); CM( malCustomPortCheck, TQ_SIGNAL(clicked()) );
CM( malCustomPort, TQT_SIGNAL(valueChanged(int)) ); CM( malCustomPort, TQ_SIGNAL(valueChanged(int)) );
CM( malUserName, TQT_SIGNAL(textChanged(const TQString &)) ); CM( malUserName, TQ_SIGNAL(textChanged(const TQString &)) );
CM( malPassword, TQT_SIGNAL(textChanged(const TQString &)) ); CM( malPassword, TQ_SIGNAL(textChanged(const TQString &)) );
#undef CM #undef CM
} }

@ -72,10 +72,10 @@ MemofileConduitConfig::MemofileConduitConfig(TQWidget *p, const char *n) :
ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget,about); ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget,about);
fWidget=fConfigWidget; fWidget=fConfigWidget;
TQObject::connect(fConfigWidget->fDirectory,TQT_SIGNAL(textChanged(const TQString&)), TQObject::connect(fConfigWidget->fDirectory,TQ_SIGNAL(textChanged(const TQString&)),
this,TQT_SLOT(modified())); this,TQ_SLOT(modified()));
TQObject::connect(fConfigWidget->fSyncPrivate,TQT_SIGNAL(toggled(bool)), TQObject::connect(fConfigWidget->fSyncPrivate,TQ_SIGNAL(toggled(bool)),
this,TQT_SLOT(modified())); this,TQ_SLOT(modified()));
} }

@ -89,8 +89,8 @@ NotepadConduitConfig::NotepadConduitConfig(TQWidget *p, const char *n) :
fConduitName = i18n("Notepad"); fConduitName = i18n("Notepad");
ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget, createAbout()); ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget, createAbout());
fWidget=fConfigWidget; fWidget=fConfigWidget;
TQObject::connect(fConfigWidget->fOutputDirectory, TQT_SIGNAL(textChanged(const TQString&)), TQObject::connect(fConfigWidget->fOutputDirectory, TQ_SIGNAL(textChanged(const TQString&)),
this, TQT_SLOT(modified())); this, TQ_SLOT(modified()));
fConfigWidget->fOutputDirectory->setMode(KFile::Directory | fConfigWidget->fOutputDirectory->setMode(KFile::Directory |
KFile::LocalOnly); KFile::LocalOnly);
} }

@ -74,8 +74,8 @@ NullConduitConfig::NullConduitConfig(TQWidget *p, const char *n) :
ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget,fAbout); ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget,fAbout);
fWidget=fConfigWidget; fWidget=fConfigWidget;
TQObject::connect(fConfigWidget->fLogMessage,TQT_SIGNAL(textChanged(const TQString&)), TQObject::connect(fConfigWidget->fLogMessage,TQ_SIGNAL(textChanged(const TQString&)),
this,TQT_SLOT(modified())); this,TQ_SLOT(modified()));
} }
/* virtual */ void NullConduitConfig::commit() /* virtual */ void NullConduitConfig::commit()

@ -86,14 +86,14 @@ PopMailWidgetConfig::PopMailWidgetConfig(TQWidget *p,const char *n) :
ConduitConfigBase::addAboutPage(fConfigWidget->fTabWidget,fAbout); ConduitConfigBase::addAboutPage(fConfigWidget->fTabWidget,fAbout);
fWidget=fConfigWidget; fWidget=fConfigWidget;
#define CM(a,b) connect(fConfigWidget->a,b,this,TQT_SLOT(modified())); #define CM(a,b) connect(fConfigWidget->a,b,this,TQ_SLOT(modified()));
CM(fSendMode,TQT_SIGNAL(activated(int))); CM(fSendMode,TQ_SIGNAL(activated(int)));
CM(fEmailFrom,TQT_SIGNAL(textChanged(const TQString &))); CM(fEmailFrom,TQ_SIGNAL(textChanged(const TQString &)));
CM(fSignature,TQT_SIGNAL(textChanged(const TQString &))); CM(fSignature,TQ_SIGNAL(textChanged(const TQString &)));
#undef CM #undef CM
connect(fConfigWidget->fSendMode,TQT_SIGNAL(activated(int)), connect(fConfigWidget->fSendMode,TQ_SIGNAL(activated(int)),
this,TQT_SLOT(toggleSendMode(int))); this,TQ_SLOT(toggleSendMode(int)));
} }

@ -75,12 +75,12 @@ ConduitConfig::ConduitConfig(TQWidget *p, const char *n) :
ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget,fAbout); ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget,fAbout);
fWidget=fConfigWidget; fWidget=fConfigWidget;
TQObject::connect(fConfigWidget->fLogMessage,TQT_SIGNAL(textChanged(const TQString&)), TQObject::connect(fConfigWidget->fLogMessage,TQ_SIGNAL(textChanged(const TQString&)),
this,TQT_SLOT(modified())); this,TQ_SLOT(modified()));
TQObject::connect(fConfigWidget->fDatabases,TQT_SIGNAL(textChanged(const TQString&)), TQObject::connect(fConfigWidget->fDatabases,TQ_SIGNAL(textChanged(const TQString&)),
this,TQT_SLOT(modified())); this,TQ_SLOT(modified()));
TQObject::connect(fConfigWidget->fFailImmediately,TQT_SIGNAL(toggled(bool)), TQObject::connect(fConfigWidget->fFailImmediately,TQ_SIGNAL(toggled(bool)),
this,TQT_SLOT(modified())); this,TQ_SLOT(modified()));
} }
/* virtual */ void ConduitConfig::commit() /* virtual */ void ConduitConfig::commit()

@ -196,7 +196,7 @@ void SysInfoConduit::readConfig()
readConfig(); readConfig();
TQTimer::singleShot(0, this, TQT_SLOT(hardwareInfo())); TQTimer::singleShot(0, this, TQ_SLOT(hardwareInfo()));
return true; return true;
} }
@ -235,7 +235,7 @@ void SysInfoConduit::hardwareInfo()
KPILOT_DELETE(device); KPILOT_DELETE(device);
keepParts.append(CSL1("hardware")); keepParts.append(CSL1("hardware"));
} else removeParts.append(CSL1("hardware")); } else removeParts.append(CSL1("hardware"));
TQTimer::singleShot(0, this, TQT_SLOT(userInfo())); TQTimer::singleShot(0, this, TQ_SLOT(userInfo()));
} }
void SysInfoConduit::userInfo() void SysInfoConduit::userInfo()
@ -265,7 +265,7 @@ void SysInfoConduit::userInfo()
{ {
removeParts.append(CSL1("user")); removeParts.append(CSL1("user"));
} }
TQTimer::singleShot(0, this, TQT_SLOT(memoryInfo())); TQTimer::singleShot(0, this, TQ_SLOT(memoryInfo()));
} }
void SysInfoConduit::memoryInfo() void SysInfoConduit::memoryInfo()
@ -286,7 +286,7 @@ void SysInfoConduit::memoryInfo()
} }
keepParts.append(CSL1("memory")); keepParts.append(CSL1("memory"));
} else removeParts.append(CSL1("memory")); } else removeParts.append(CSL1("memory"));
TQTimer::singleShot(0, this, TQT_SLOT(storageInfo())); TQTimer::singleShot(0, this, TQ_SLOT(storageInfo()));
} }
void SysInfoConduit::storageInfo() void SysInfoConduit::storageInfo()
@ -309,7 +309,7 @@ void SysInfoConduit::storageInfo()
} }
keepParts.append(CSL1("storage")); keepParts.append(CSL1("storage"));
} else removeParts.append(CSL1("storage")); } else removeParts.append(CSL1("storage"));
TQTimer::singleShot(0, this, TQT_SLOT(dbListInfo())); TQTimer::singleShot(0, this, TQ_SLOT(dbListInfo()));
} }
void SysInfoConduit::dbListInfo() void SysInfoConduit::dbListInfo()
@ -322,7 +322,7 @@ void SysInfoConduit::dbListInfo()
dblist=deviceLink()->getDBList(); dblist=deviceLink()->getDBList();
keepParts.append(CSL1("dblist")); keepParts.append(CSL1("dblist"));
} else removeParts.append(CSL1("dblist")); } else removeParts.append(CSL1("dblist"));
TQTimer::singleShot(0, this, TQT_SLOT(recNumberInfo())); TQTimer::singleShot(0, this, TQ_SLOT(recNumberInfo()));
} }
void SysInfoConduit::recNumberInfo() void SysInfoConduit::recNumberInfo()
@ -363,7 +363,7 @@ void SysInfoConduit::recNumberInfo()
} }
keepParts.append(CSL1("records")); keepParts.append(CSL1("records"));
} else removeParts.append(CSL1("records")); } else removeParts.append(CSL1("records"));
TQTimer::singleShot(0, this, TQT_SLOT(syncInfo())); TQTimer::singleShot(0, this, TQ_SLOT(syncInfo()));
} }
void SysInfoConduit::syncInfo() void SysInfoConduit::syncInfo()
@ -386,7 +386,7 @@ void SysInfoConduit::syncInfo()
fValues[CSL1("lastsyncpc")] = TQString::number(user.getLastSyncPC()); fValues[CSL1("lastsyncpc")] = TQString::number(user.getLastSyncPC());
keepParts.append(CSL1("sync")); keepParts.append(CSL1("sync"));
} else removeParts.append(CSL1("sync")); } else removeParts.append(CSL1("sync"));
TQTimer::singleShot(0, this, TQT_SLOT(pcVersionInfo())); TQTimer::singleShot(0, this, TQ_SLOT(pcVersionInfo()));
} }
void SysInfoConduit::pcVersionInfo() void SysInfoConduit::pcVersionInfo()
@ -430,7 +430,7 @@ void SysInfoConduit::pcVersionInfo()
#endif #endif
keepParts.append(CSL1("pcversion")); keepParts.append(CSL1("pcversion"));
} else removeParts.append(CSL1("pcversion")); } else removeParts.append(CSL1("pcversion"));
TQTimer::singleShot(0, this, TQT_SLOT(palmVersionInfo())); TQTimer::singleShot(0, this, TQ_SLOT(palmVersionInfo()));
} }
void SysInfoConduit::palmVersionInfo() void SysInfoConduit::palmVersionInfo()
@ -450,7 +450,7 @@ void SysInfoConduit::palmVersionInfo()
keepParts.append(CSL1("palmversion")); keepParts.append(CSL1("palmversion"));
} else removeParts.append(CSL1("palmversion")); } else removeParts.append(CSL1("palmversion"));
TQTimer::singleShot(0, this, TQT_SLOT(debugInfo())); TQTimer::singleShot(0, this, TQ_SLOT(debugInfo()));
} }
void SysInfoConduit::debugInfo() void SysInfoConduit::debugInfo()
@ -463,7 +463,7 @@ void SysInfoConduit::debugInfo()
fValues[CSL1("debug")] = i18n("No debug data"); fValues[CSL1("debug")] = i18n("No debug data");
keepParts.append(CSL1("debug")); keepParts.append(CSL1("debug"));
} else removeParts.append(CSL1("debug")); } else removeParts.append(CSL1("debug"));
TQTimer::singleShot(0, this, TQT_SLOT(writeFile())); TQTimer::singleShot(0, this, TQ_SLOT(writeFile()));
} }
void SysInfoConduit::writeFile() void SysInfoConduit::writeFile()
@ -589,7 +589,7 @@ void SysInfoConduit::writeFile()
if (!outfile.open(IO_WriteOnly)) { if (!outfile.open(IO_WriteOnly)) {
WARNINGKPILOT<< "Unable to open " << fOutputFile << endl; WARNINGKPILOT<< "Unable to open " << fOutputFile << endl;
emit logError(i18n("Unable to open %1").arg(fOutputFile)); emit logError(i18n("Unable to open %1").arg(fOutputFile));
TQTimer::singleShot(0, this, TQT_SLOT(cleanup())); TQTimer::singleShot(0, this, TQ_SLOT(cleanup()));
return; return;
} }
} }
@ -600,7 +600,7 @@ void SysInfoConduit::writeFile()
outfile.close(); outfile.close();
emit logMessage(i18n("Handheld system information written to the file %1").arg(fOutputFile)); emit logMessage(i18n("Handheld system information written to the file %1").arg(fOutputFile));
TQTimer::singleShot(0, this, TQT_SLOT(cleanup())); TQTimer::singleShot(0, this, TQ_SLOT(cleanup()));
} }
void SysInfoConduit::cleanup() void SysInfoConduit::cleanup()

@ -103,12 +103,12 @@ SysInfoWidgetConfig::SysInfoWidgetConfig(TQWidget *w, const char *n) :
ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget,fAbout); ConduitConfigBase::addAboutPage(fConfigWidget->tabWidget,fAbout);
fWidget=fConfigWidget; fWidget=fConfigWidget;
TQObject::connect(fConfigWidget->fOutputFile,TQT_SIGNAL(textChanged(const TQString&)), TQObject::connect(fConfigWidget->fOutputFile,TQ_SIGNAL(textChanged(const TQString&)),
this,TQT_SLOT(modified())); this,TQ_SLOT(modified()));
TQObject::connect(fConfigWidget->fTemplateFile,TQT_SIGNAL(textChanged(const TQString&)), TQObject::connect(fConfigWidget->fTemplateFile,TQ_SIGNAL(textChanged(const TQString&)),
this,TQT_SLOT(modified())); this,TQ_SLOT(modified()));
TQObject::connect(fConfigWidget->fOutputType,TQT_SIGNAL(clicked(int)), TQObject::connect(fConfigWidget->fOutputType,TQ_SIGNAL(clicked(int)),
this,TQT_SLOT(modified())); this,TQ_SLOT(modified()));
fConduitName=i18n("System Information"); fConduitName=i18n("System Information");
} }

@ -186,13 +186,13 @@ void VCalConduitBase::slotPalmRecToPC()
if ( syncMode()==SyncMode::eCopyHHToPC ) if ( syncMode()==SyncMode::eCopyHHToPC )
{ {
emit logMessage(i18n("Cleaning up ...")); emit logMessage(i18n("Cleaning up ..."));
TQTimer::singleShot(0, this, TQT_SLOT(cleanup())); TQTimer::singleShot(0, this, TQ_SLOT(cleanup()));
return; return;
} }
else else
{ {
emit logMessage(i18n("Copying records to Pilot ...")); emit logMessage(i18n("Copying records to Pilot ..."));
TQTimer::singleShot(0 ,this,TQT_SLOT(slotPCRecToPalm())); TQTimer::singleShot(0 ,this,TQ_SLOT(slotPCRecToPalm()));
return; return;
} }
} }
@ -244,6 +244,6 @@ void VCalConduitBase::slotPalmRecToPC()
KPILOT_DELETE(r); KPILOT_DELETE(r);
KPILOT_DELETE(s); KPILOT_DELETE(s);
TQTimer::singleShot(0,this,TQT_SLOT(slotPalmRecToPC())); TQTimer::singleShot(0,this,TQ_SLOT(slotPalmRecToPC()));
} }
*/ */

@ -176,7 +176,7 @@ VCalConduitBase::~VCalConduitBase()
if (!syncMode().isTest() && !openCalendar() ) goto error; if (!syncMode().isTest() && !openCalendar() ) goto error;
// Start processing the sync // Start processing the sync
TQTimer::singleShot(0, this, TQT_SLOT(slotProcess())); TQTimer::singleShot(0, this, TQ_SLOT(slotProcess()));
return true; return true;
error: error:
@ -200,13 +200,13 @@ void VCalConduitBase::slotProcess() {
if( hasNextRecord ) if( hasNextRecord )
{ {
fState->handleRecord( this ); fState->handleRecord( this );
TQTimer::singleShot( 0, this, TQT_SLOT( slotProcess() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( slotProcess() ) );
} }
// Else finish the current state if there is one // Else finish the current state if there is one
else if( fState ) else if( fState )
{ {
fState->finishSync( this ); fState->finishSync( this );
TQTimer::singleShot( 0, this, TQT_SLOT( slotProcess() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( slotProcess() ) );
} }
// No state so sync is finished // No state so sync is finished
else else

@ -49,11 +49,11 @@ VCalWidgetSetupBase::VCalWidgetSetupBase(TQWidget *w, const char *n) :
fConfigWidget->fCalendarFile->setMode(KFile::File); fConfigWidget->fCalendarFile->setMode(KFile::File);
fConfigWidget->fCalendarFile->setFilter(CSL1("*.vcs *.ics|ICalendars\n*.*|All Files (*.*)")); fConfigWidget->fCalendarFile->setFilter(CSL1("*.vcs *.ics|ICalendars\n*.*|All Files (*.*)"));
#define CM(a,b) connect(fConfigWidget->a,b,this,TQT_SLOT(modified())); #define CM(a,b) connect(fConfigWidget->a,b,this,TQ_SLOT(modified()));
CM(fSyncDestination,TQT_SIGNAL(clicked(int))); CM(fSyncDestination,TQ_SIGNAL(clicked(int)));
CM(fCalendarFile,TQT_SIGNAL(textChanged(const TQString &))); CM(fCalendarFile,TQ_SIGNAL(textChanged(const TQString &)));
CM(fArchive,TQT_SIGNAL(toggled(bool))); CM(fArchive,TQ_SIGNAL(toggled(bool)));
CM(fConflictResolution,TQT_SIGNAL(activated(int))); CM(fConflictResolution,TQ_SIGNAL(activated(int)));
#undef CM #undef CM
} }

@ -68,8 +68,8 @@ AddressEditor::AddressEditor(PilotAddress * p,
initLayout(); initLayout();
fillFields(); fillFields();
connect(parent, TQT_SIGNAL(recordChanged(PilotAddress *)), connect(parent, TQ_SIGNAL(recordChanged(PilotAddress *)),
this, TQT_SLOT(updateRecord(PilotAddress *))); this, TQ_SLOT(updateRecord(PilotAddress *)));
} }

@ -218,8 +218,8 @@ void AddressWidget::setupWidget()
fCatList = new TQComboBox(this); fCatList = new TQComboBox(this);
grid->addWidget(fCatList, 0, 1); grid->addWidget(fCatList, 0, 1);
connect(fCatList, TQT_SIGNAL(activated(int)), connect(fCatList, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(slotSetCategory(int))); this, TQ_SLOT(slotSetCategory(int)));
TQWhatsThis::add(fCatList, TQWhatsThis::add(fCatList,
i18n("<qt>Select the category of addresses to display here.</qt>")); i18n("<qt>Select the category of addresses to display here.</qt>"));
@ -229,10 +229,10 @@ void AddressWidget::setupWidget()
fListBox = new TQListBox(this); fListBox = new TQListBox(this);
grid->addMultiCellWidget(fListBox, 1, 1, 0, 1); grid->addMultiCellWidget(fListBox, 1, 1, 0, 1);
connect(fListBox, TQT_SIGNAL(highlighted(int)), connect(fListBox, TQ_SIGNAL(highlighted(int)),
this, TQT_SLOT(slotShowAddress(int))); this, TQ_SLOT(slotShowAddress(int)));
connect(fListBox, TQT_SIGNAL(selected(int)), connect(fListBox, TQ_SIGNAL(selected(int)),
this, TQT_SLOT(slotEditRecord())); this, TQ_SLOT(slotEditRecord()));
TQWhatsThis::add(fListBox, TQWhatsThis::add(fListBox,
i18n("<qt>This list displays all the addresses " i18n("<qt>This list displays all the addresses "
"in the selected category. Click on " "in the selected category. Click on "
@ -250,7 +250,7 @@ void AddressWidget::setupWidget()
fEditButton = new TQPushButton(i18n("Edit Record..."), this); fEditButton = new TQPushButton(i18n("Edit Record..."), this);
grid->addWidget(fEditButton, 2, 0); grid->addWidget(fEditButton, 2, 0);
connect(fEditButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditRecord())); connect(fEditButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotEditRecord()));
wt = KPilotSettings::internalEditors() ? wt = KPilotSettings::internalEditors() ?
i18n("<qt>You can edit an address when it is selected.</qt>") : i18n("<qt>You can edit an address when it is selected.</qt>") :
i18n("<qt><i>Editing is disabled by the 'internal editors' setting.</i></qt>"); i18n("<qt><i>Editing is disabled by the 'internal editors' setting.</i></qt>");
@ -258,7 +258,7 @@ void AddressWidget::setupWidget()
button = new TQPushButton(i18n("New Record..."), this); button = new TQPushButton(i18n("New Record..."), this);
grid->addWidget(button, 2, 1); grid->addWidget(button, 2, 1);
connect(button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCreateNewRecord())); connect(button, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotCreateNewRecord()));
wt = KPilotSettings::internalEditors() ? wt = KPilotSettings::internalEditors() ?
i18n("<qt>Add a new address to the address book.</qt>") : i18n("<qt>Add a new address to the address book.</qt>") :
i18n("<qt><i>Adding is disabled by the 'internal editors' setting.</i></qt>") ; i18n("<qt><i>Adding is disabled by the 'internal editors' setting.</i></qt>") ;
@ -268,15 +268,15 @@ void AddressWidget::setupWidget()
fDeleteButton = new TQPushButton(i18n("Delete Record"), this); fDeleteButton = new TQPushButton(i18n("Delete Record"), this);
grid->addWidget(fDeleteButton, 3, 0); grid->addWidget(fDeleteButton, 3, 0);
connect(fDeleteButton, TQT_SIGNAL(clicked()), connect(fDeleteButton, TQ_SIGNAL(clicked()),
this, TQT_SLOT(slotDeleteRecord())); this, TQ_SLOT(slotDeleteRecord()));
wt = KPilotSettings::internalEditors() ? wt = KPilotSettings::internalEditors() ?
i18n("<qt>Delete the selected address from the address book.</qt>") : i18n("<qt>Delete the selected address from the address book.</qt>") :
i18n("<qt><i>Deleting is disabled by the 'internal editors' setting.</i></qt>") ; i18n("<qt><i>Deleting is disabled by the 'internal editors' setting.</i></qt>") ;
button = new TQPushButton(i18n("Export addresses to file","Export..."), this); button = new TQPushButton(i18n("Export addresses to file","Export..."), this);
grid->addWidget(button, 3,1); grid->addWidget(button, 3,1);
connect(button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotExport())); connect(button, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotExport()));
TQWhatsThis::add(button, TQWhatsThis::add(button,
i18n("<qt>Export all addresses in the selected category to CSV format.</qt>") ); i18n("<qt>Export all addresses in the selected category to CSV format.</qt>") );
@ -441,10 +441,10 @@ void AddressWidget::slotEditRecord()
AddressEditor *editor = new AddressEditor(selectedRecord, AddressEditor *editor = new AddressEditor(selectedRecord,
fAddressAppInfo, this); fAddressAppInfo, this);
connect(editor, TQT_SIGNAL(recordChangeComplete(PilotAddress *)), connect(editor, TQ_SIGNAL(recordChangeComplete(PilotAddress *)),
this, TQT_SLOT(slotUpdateRecord(PilotAddress *))); this, TQ_SLOT(slotUpdateRecord(PilotAddress *)));
connect(editor, TQT_SIGNAL(cancelClicked()), connect(editor, TQ_SIGNAL(cancelClicked()),
this, TQT_SLOT(slotEditCancelled())); this, TQ_SLOT(slotEditCancelled()));
editor->show(); editor->show();
fPendingAddresses++; fPendingAddresses++;
@ -491,10 +491,10 @@ void AddressWidget::slotCreateNewRecord()
AddressEditor *editor = new AddressEditor(0L, AddressEditor *editor = new AddressEditor(0L,
fAddressAppInfo, this); fAddressAppInfo, this);
connect(editor, TQT_SIGNAL(recordChangeComplete(PilotAddress *)), connect(editor, TQ_SIGNAL(recordChangeComplete(PilotAddress *)),
this, TQT_SLOT(slotAddRecord(PilotAddress *))); this, TQ_SLOT(slotAddRecord(PilotAddress *)));
connect(editor, TQT_SIGNAL(cancelClicked()), connect(editor, TQ_SIGNAL(cancelClicked()),
this, TQT_SLOT(slotEditCancelled())); this, TQ_SLOT(slotEditCancelled()));
editor->show(); editor->show();
fPendingAddresses++; fPendingAddresses++;

@ -325,19 +325,19 @@ ConduitConfigWidget::ConduitConfigWidget(TQWidget *parent, const char *n,
fStack->setMinimumSize(fStack->sizeHint()+TQSize(10,40)); fStack->setMinimumSize(fStack->sizeHint()+TQSize(10,40));
TQObject::connect(fConduitList, TQObject::connect(fConduitList,
TQT_SIGNAL(selectionChanged(TQListViewItem *)), TQ_SIGNAL(selectionChanged(TQListViewItem *)),
this,TQT_SLOT(selected(TQListViewItem *))); this,TQ_SLOT(selected(TQListViewItem *)));
TQObject::connect(fConduitList, TQObject::connect(fConduitList,
TQT_SIGNAL(clicked(TQListViewItem*)), TQ_SIGNAL(clicked(TQListViewItem*)),
this, TQT_SLOT(conduitsChanged(TQListViewItem*))); this, TQ_SLOT(conduitsChanged(TQListViewItem*)));
// Deprecated? // Deprecated?
TQObject::connect(fConfigureButton, TQObject::connect(fConfigureButton,
TQT_SIGNAL(clicked()), TQ_SIGNAL(clicked()),
this,TQT_SLOT(configure())); this,TQ_SLOT(configure()));
TQObject::connect(fConfigureWizard,TQT_SIGNAL(clicked()), TQObject::connect(fConfigureWizard,TQ_SIGNAL(clicked()),
this,TQT_SLOT(configureWizard())); this,TQ_SLOT(configureWizard()));
fGeneralPage->setSelected(true); fGeneralPage->setSelected(true);
fConduitList->setCurrentItem(fGeneralPage); fConduitList->setCurrentItem(fGeneralPage);
@ -651,7 +651,7 @@ void ConduitConfigWidget::loadAndConfigure(TQListViewItem *p) // ,bool exec)
fCurrentConfig=d; fCurrentConfig=d;
// make sure the changed signal is propagated to the KCM*Dialog // make sure the changed signal is propagated to the KCM*Dialog
// and the apply button is enabled correspondingly. // and the apply button is enabled correspondingly.
connect(d, TQT_SIGNAL(changed(bool)), this, TQT_SIGNAL(changed(bool))); connect(d, TQ_SIGNAL(changed(bool)), this, TQ_SIGNAL(changed(bool)));
} }
} }
@ -694,7 +694,7 @@ void ConduitConfigWidget::selected(TQListViewItem *p)
if (!release()) if (!release())
{ {
fConduitList->blockSignals(true); fConduitList->blockSignals(true);
TQTimer::singleShot(1,this,TQT_SLOT(unselect())); TQTimer::singleShot(1,this,TQ_SLOT(unselect()));
return; return;
} }
} }

@ -77,10 +77,10 @@ DatebookWidget::DatebookWidget(TQWidget *parent, const TQString &dbpath) :
// fEventList->setAlternateBackground( TQColor( 221, 146, 240 ) ); // fEventList->setAlternateBackground( TQColor( 221, 146, 240 ) );
g->addMultiCellWidget(fEventList, 0, 2, 3, 3); g->addMultiCellWidget(fEventList, 0, 2, 3, 3);
connect(fDatePicker, TQT_SIGNAL(dateChanged()), TQT_SLOT(slotDayChanged())); connect(fDatePicker, TQ_SIGNAL(dateChanged()), TQ_SLOT(slotDayChanged()));
connect(fAddButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotAddEvent())); connect(fAddButton, TQ_SIGNAL(clicked()), TQ_SLOT(slotAddEvent()));
connect(fEditButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotEditEvent())); connect(fEditButton, TQ_SIGNAL(clicked()), TQ_SLOT(slotEditEvent()));
connect(fDeleteButton, TQT_SIGNAL(clicked()), TQT_SLOT(slotDeleteEvent())); connect(fDeleteButton, TQ_SIGNAL(clicked()), TQ_SLOT(slotDeleteEvent()));
} }
DatebookWidget::~DatebookWidget() DatebookWidget::~DatebookWidget()

@ -70,12 +70,12 @@ KPilotDBSelectionDialog::KPilotDBSelectionDialog(TQStringList &selectedDBs, TQSt
if (fSelectedDBs.contains(*it)) checkitem->setOn(true); if (fSelectedDBs.contains(*it)) checkitem->setOn(true);
} }
connect(fSelectionWidget->fNameEdit, TQT_SIGNAL(textChanged( const TQString & )), connect(fSelectionWidget->fNameEdit, TQ_SIGNAL(textChanged( const TQString & )),
this, TQT_SLOT(slotTextChanged( const TQString &))); this, TQ_SLOT(slotTextChanged( const TQString &)));
connect(fSelectionWidget->fAddButton, TQT_SIGNAL(clicked()), connect(fSelectionWidget->fAddButton, TQ_SIGNAL(clicked()),
this, TQT_SLOT(addDB())); this, TQ_SLOT(addDB()));
connect(fSelectionWidget->fRemoveButton, TQT_SIGNAL(clicked()), connect(fSelectionWidget->fRemoveButton, TQ_SIGNAL(clicked()),
this, TQT_SLOT(removeDB())); this, TQ_SLOT(removeDB()));
} }
KPilotDBSelectionDialog::~KPilotDBSelectionDialog() KPilotDBSelectionDialog::~KPilotDBSelectionDialog()

@ -119,22 +119,22 @@ void GenericDBWidget::setupWidget()
g->addMultiCellLayout( g1, 0, 1, 1, 1 ); g->addMultiCellLayout( g1, 0, 1, 1, 1 );
resize( TQSize(682, 661).expandedTo(minimumSizeHint()) ); resize( TQSize(682, 661).expandedTo(minimumSizeHint()) );
connect(fDBList, TQT_SIGNAL(highlighted(const TQString &)), connect(fDBList, TQ_SIGNAL(highlighted(const TQString &)),
this, TQT_SLOT(slotSelected(const TQString &))); this, TQ_SLOT(slotSelected(const TQString &)));
connect(fDBType, TQT_SIGNAL(activated(int)), connect(fDBType, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(slotDBType(int))); this, TQ_SLOT(slotDBType(int)));
connect(fDBInfoButton, TQT_SIGNAL(clicked()), connect(fDBInfoButton, TQ_SIGNAL(clicked()),
this, TQT_SLOT(slotShowDBInfo())); this, TQ_SLOT(slotShowDBInfo()));
connect(fAppInfoButton, TQT_SIGNAL(clicked()), connect(fAppInfoButton, TQ_SIGNAL(clicked()),
this, TQT_SLOT(slotShowAppInfo())); this, TQ_SLOT(slotShowAppInfo()));
connect(fAddRecord, TQT_SIGNAL(clicked()), connect(fAddRecord, TQ_SIGNAL(clicked()),
this, TQT_SLOT(slotAddRecord())); this, TQ_SLOT(slotAddRecord()));
connect(fEditRecord, TQT_SIGNAL(clicked()), connect(fEditRecord, TQ_SIGNAL(clicked()),
this, TQT_SLOT(slotEditRecord())); this, TQ_SLOT(slotEditRecord()));
connect(fDeleteRecord, TQT_SIGNAL(clicked()), connect(fDeleteRecord, TQ_SIGNAL(clicked()),
this, TQT_SLOT(slotDeleteRecord())); this, TQ_SLOT(slotDeleteRecord()));
connect(fRecordList, TQT_SIGNAL(executed(TQListViewItem*)), connect(fRecordList, TQ_SIGNAL(executed(TQListViewItem*)),
this, TQT_SLOT(slotEditRecord(TQListViewItem*))); this, TQ_SLOT(slotEditRecord(TQListViewItem*)));
} }

@ -75,20 +75,20 @@ FileInstallWidget::FileInstallWidget(TQWidget * parent,
TQPushButton *abutton; TQPushButton *abutton;
abutton = addButton = new TQPushButton(i18n("Add File..."), this); abutton = addButton = new TQPushButton(i18n("Add File..."), this);
connect(abutton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddFile())); connect(abutton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotAddFile()));
grid->addWidget(abutton, 3, 1); grid->addWidget(abutton, 3, 1);
TQWhatsThis::add(abutton, TQWhatsThis::add(abutton,
i18n("<qt>Choose a file to add to the list of files to install.</qt>")); i18n("<qt>Choose a file to add to the list of files to install.</qt>"));
abutton = clearButton= new TQPushButton(i18n("Clear List"), this); abutton = clearButton= new TQPushButton(i18n("Clear List"), this);
connect(abutton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClearButton())); connect(abutton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotClearButton()));
grid->addWidget(abutton, 4, 1); grid->addWidget(abutton, 4, 1);
TQWhatsThis::add(abutton, TQWhatsThis::add(abutton,
i18n("<qt>Clear the list of files to install. No files will be installed.</qt>")); i18n("<qt>Clear the list of files to install. No files will be installed.</qt>"));
fIconView = new TDEIconView(this); fIconView = new TDEIconView(this);
connect(fIconView, TQT_SIGNAL(dropped(TQDropEvent *, const TQValueList<TQIconDragItem> &)), connect(fIconView, TQ_SIGNAL(dropped(TQDropEvent *, const TQValueList<TQIconDragItem> &)),
this, TQT_SLOT(slotDropEvent(TQDropEvent *, const TQValueList<TQIconDragItem> &))); this, TQ_SLOT(slotDropEvent(TQDropEvent *, const TQValueList<TQIconDragItem> &)));
grid->addMultiCellWidget(fIconView, 1, 4, 2, 3); grid->addMultiCellWidget(fIconView, 1, 4, 2, 3);
TQWhatsThis::add(fIconView, TQWhatsThis::add(fIconView,
i18n i18n
@ -104,8 +104,8 @@ FileInstallWidget::FileInstallWidget(TQWidget * parent,
grid->addRowSpacing(5, SPACING); grid->addRowSpacing(5, SPACING);
fInstaller = new FileInstaller; fInstaller = new FileInstaller;
connect(fInstaller, TQT_SIGNAL(filesChanged()), connect(fInstaller, TQ_SIGNAL(filesChanged()),
this, TQT_SLOT(refreshFileInstallList())); this, TQ_SLOT(refreshFileInstallList()));
} }

@ -369,7 +369,7 @@ static inline bool checkBackupDirectory( const TQString &backupDir )
initNoBackup( fP->fNoBackupDBs, fP->fNoBackupCreators ); initNoBackup( fP->fNoBackupDBs, fP->fNoBackupCreators );
fP->fDBIndex = 0; fP->fDBIndex = 0;
TQTimer::singleShot(0,this,TQT_SLOT(backupOneDB())); TQTimer::singleShot(0,this,TQ_SLOT(backupOneDB()));
return true; return true;
} }
@ -448,7 +448,7 @@ static inline bool checkBackupDirectory( const TQString &backupDir )
.arg(Pilot::fromPilot(info.name)); .arg(Pilot::fromPilot(info.name));
addSyncLogEntry(s); addSyncLogEntry(s);
} }
TQTimer::singleShot(0,this,TQT_SLOT(backupOneDB())); TQTimer::singleShot(0,this,TQ_SLOT(backupOneDB()));
} }
/** /**
@ -538,7 +538,7 @@ bool BackupAction::startBackupThread(DBInfo *info)
KPILOT_DELETE(fBackupThread); KPILOT_DELETE(fBackupThread);
// This was a successful termination. // This was a successful termination.
addSyncLogEntry( i18n("... OK.\n"), false ); addSyncLogEntry( i18n("... OK.\n"), false );
TQTimer::singleShot(0,this,TQT_SLOT(backupOneDB())); TQTimer::singleShot(0,this,TQ_SLOT(backupOneDB()));
return true; return true;
} }
if (e->type() == (TQEvent::Type)Thread::TerminateFailure) if (e->type() == (TQEvent::Type)Thread::TerminateFailure)
@ -546,7 +546,7 @@ bool BackupAction::startBackupThread(DBInfo *info)
KPILOT_DELETE(fBackupThread); KPILOT_DELETE(fBackupThread);
// Unsuccessful termination. // Unsuccessful termination.
addSyncLogEntry( i18n("Backup failed.") ); addSyncLogEntry( i18n("Backup failed.") );
TQTimer::singleShot(0,this,TQT_SLOT(backupOneDB())); TQTimer::singleShot(0,this,TQ_SLOT(backupOneDB()));
return true; return true;
} }
return SyncAction::event(e); return SyncAction::event(e);
@ -615,8 +615,8 @@ FileInstallAction::~FileInstallAction()
} }
fTimer = new TQTimer(this); fTimer = new TQTimer(this);
TQObject::connect(fTimer, TQT_SIGNAL(timeout()), TQObject::connect(fTimer, TQ_SIGNAL(timeout()),
this, TQT_SLOT(installNextFile())); this, TQ_SLOT(installNextFile()));
fTimer->start(0, false); fTimer->start(0, false);
@ -1049,8 +1049,8 @@ void RestoreAction::setDirectory( const TQString &path )
fP->fDBIterator = fP->fDBList.begin(); fP->fDBIterator = fP->fDBList.begin();
fActionStatus = InstallingFiles; fActionStatus = InstallingFiles;
TQObject::connect(&(fP->fTimer), TQT_SIGNAL(timeout()), TQObject::connect(&(fP->fTimer), TQ_SIGNAL(timeout()),
this, TQT_SLOT(installNextFile())); this, TQ_SLOT(installNextFile()));
fP->fTimer.start(0, false); fP->fTimer.start(0, false);
return true; return true;

@ -61,7 +61,7 @@ bool InternalEditorAction::exec()
FUNCTIONSETUP; FUNCTIONSETUP;
emit logMessage(i18n("[Internal Editors]")); emit logMessage(i18n("[Internal Editors]"));
fInternalEditorSyncStatus=eSyncStarted; fInternalEditorSyncStatus=eSyncStarted;
TQTimer::singleShot(0, this, TQT_SLOT(syncDirtyDB())); TQTimer::singleShot(0, this, TQ_SLOT(syncDirtyDB()));
return true; return true;
} }
@ -84,7 +84,7 @@ void InternalEditorAction::syncDirtyDB()
{ {
KPilotSettings::setDirtyDatabases(TQStringList()); KPilotSettings::setDirtyDatabases(TQStringList());
KPilotConfig::sync(); KPilotConfig::sync();
TQTimer::singleShot(0, this, TQT_SLOT(syncFlagsChangedDB())); TQTimer::singleShot(0, this, TQ_SLOT(syncFlagsChangedDB()));
return; return;
} }
#ifdef DEBUG #ifdef DEBUG
@ -146,7 +146,7 @@ nextDB:
localDB->resetSyncFlags(); localDB->resetSyncFlags();
KPILOT_DELETE(localDB); KPILOT_DELETE(localDB);
KPILOT_DELETE(serialDB); KPILOT_DELETE(serialDB);
TQTimer::singleShot(0, this, TQT_SLOT(syncDirtyDB())); TQTimer::singleShot(0, this, TQ_SLOT(syncDirtyDB()));
} }
bool InternalEditorAction::queryUseKPilotChanges(TQString dbName, recordid_t id, PilotRecord*localrec, PilotRecord*serialrec, PilotDatabase*db) bool InternalEditorAction::queryUseKPilotChanges(TQString dbName, recordid_t id, PilotRecord*localrec, PilotRecord*serialrec, PilotDatabase*db)
@ -323,7 +323,7 @@ void InternalEditorAction::syncFlagsChangedDB()
{ {
KPilotSettings::setFlagsChangedDatabases(TQStringList()); KPilotSettings::setFlagsChangedDatabases(TQStringList());
KPilotConfig::sync(); KPilotConfig::sync();
TQTimer::singleShot(0, this, TQT_SLOT(syncAppBlockChangedDB())); TQTimer::singleShot(0, this, TQ_SLOT(syncAppBlockChangedDB()));
return; return;
} }
@ -331,7 +331,7 @@ void InternalEditorAction::syncFlagsChangedDB()
DEBUGKPILOT<<"syncFlagsChangedDB for DB "<<(*dbIter)<<endl; DEBUGKPILOT<<"syncFlagsChangedDB for DB "<<(*dbIter)<<endl;
#endif #endif
emit logError(i18n("Setting the database flags on the handheld is not yet supported.")); emit logError(i18n("Setting the database flags on the handheld is not yet supported."));
TQTimer::singleShot(0, this, TQT_SLOT(syncAppBlockChangedDB())); TQTimer::singleShot(0, this, TQ_SLOT(syncAppBlockChangedDB()));
return; return;
PilotLocalDatabase*localDB=new PilotLocalDatabase(*dbIter); PilotLocalDatabase*localDB=new PilotLocalDatabase(*dbIter);
@ -343,7 +343,7 @@ return;
KPILOT_DELETE(localDB); KPILOT_DELETE(localDB);
KPILOT_DELETE(serialDB); KPILOT_DELETE(serialDB);
TQTimer::singleShot(0, this, TQT_SLOT(syncAppBlockChangedDB())); TQTimer::singleShot(0, this, TQ_SLOT(syncAppBlockChangedDB()));
} }
void InternalEditorAction::syncAppBlockChangedDB() void InternalEditorAction::syncAppBlockChangedDB()
@ -364,7 +364,7 @@ void InternalEditorAction::syncAppBlockChangedDB()
{ {
KPilotSettings::setAppBlockChangedDatabases(TQStringList()); KPilotSettings::setAppBlockChangedDatabases(TQStringList());
KPilotConfig::sync(); KPilotConfig::sync();
TQTimer::singleShot(0, this, TQT_SLOT(cleanup())); TQTimer::singleShot(0, this, TQ_SLOT(cleanup()));
return; return;
} }
#ifdef DEBUG #ifdef DEBUG
@ -381,7 +381,7 @@ void InternalEditorAction::syncAppBlockChangedDB()
KPILOT_DELETE(localDB); KPILOT_DELETE(localDB);
KPILOT_DELETE(serialDB); KPILOT_DELETE(serialDB);
TQTimer::singleShot(0, this, TQT_SLOT(syncAppBlockChangedDB())); TQTimer::singleShot(0, this, TQ_SLOT(syncAppBlockChangedDB()));
} }
void InternalEditorAction::cleanup() void InternalEditorAction::cleanup()

@ -231,8 +231,8 @@ void KPilotInstaller::setupWidget()
fManagingWidget->setMinimumSize(fManagingWidget->sizeHint()); fManagingWidget->setMinimumSize(fManagingWidget->sizeHint());
fManagingWidget->show(); fManagingWidget->show();
setCentralWidget(fManagingWidget); setCentralWidget(fManagingWidget);
connect( fManagingWidget, TQT_SIGNAL( aboutToShowPage ( TQWidget* ) ), connect( fManagingWidget, TQ_SIGNAL( aboutToShowPage ( TQWidget* ) ),
this, TQT_SLOT( slotAboutToShowComponent( TQWidget* ) ) ); this, TQ_SLOT( slotAboutToShowComponent( TQWidget* ) ) );
initIcons(); initIcons();
initMenu(); initMenu();
@ -286,7 +286,7 @@ void KPilotInstaller::initComponents()
#undef ADDICONPAGE #undef ADDICONPAGE
TQTimer::singleShot(500,this,TQT_SLOT(initializeComponents())); TQTimer::singleShot(500,this,TQ_SLOT(initializeComponents()));
} }
@ -518,12 +518,12 @@ void KPilotInstaller::initMenu()
syncPopup->setWhatsThis(i18n("Select the kind of HotSync to perform next. " syncPopup->setWhatsThis(i18n("Select the kind of HotSync to perform next. "
"This applies only to the next HotSync; to change the default, use " "This applies only to the next HotSync; to change the default, use "
"the configuration dialog.")); "the configuration dialog."));
connect(syncPopup, TQT_SIGNAL(activated()), connect(syncPopup, TQ_SIGNAL(activated()),
this, TQT_SLOT(slotHotSyncRequested())); this, TQ_SLOT(slotHotSyncRequested()));
// File actions, keep this list synced with kpilotui.rc and pilotDaemon.cpp // File actions, keep this list synced with kpilotui.rc and pilotDaemon.cpp
a = new TDEAction(i18n("&HotSync"), CSL1("hotsync"), 0, a = new TDEAction(i18n("&HotSync"), CSL1("hotsync"), 0,
this, TQT_SLOT(slotHotSyncRequested()), this, TQ_SLOT(slotHotSyncRequested()),
actionCollection(), "file_hotsync"); actionCollection(), "file_hotsync");
a->setToolTip(i18n("Next HotSync will be normal HotSync.")); a->setToolTip(i18n("Next HotSync will be normal HotSync."));
a->setWhatsThis(i18n("Tell the daemon that the next HotSync " a->setWhatsThis(i18n("Tell the daemon that the next HotSync "
@ -531,7 +531,7 @@ void KPilotInstaller::initMenu()
syncPopup->insert(a); syncPopup->insert(a);
a = new TDEAction(i18n("Full&Sync"), CSL1("fullsync"), 0, a = new TDEAction(i18n("Full&Sync"), CSL1("fullsync"), 0,
this, TQT_SLOT(slotFullSyncRequested()), this, TQ_SLOT(slotFullSyncRequested()),
actionCollection(), "file_fullsync"); actionCollection(), "file_fullsync");
a->setToolTip(i18n("Next HotSync will be a FullSync.")); a->setToolTip(i18n("Next HotSync will be a FullSync."));
a->setWhatsThis(i18n("Tell the daemon that the next HotSync " a->setWhatsThis(i18n("Tell the daemon that the next HotSync "
@ -539,7 +539,7 @@ void KPilotInstaller::initMenu()
syncPopup->insert(a); syncPopup->insert(a);
a = new TDEAction(i18n("&Backup"), CSL1("backup"), 0, a = new TDEAction(i18n("&Backup"), CSL1("backup"), 0,
this, TQT_SLOT(slotBackupRequested()), this, TQ_SLOT(slotBackupRequested()),
actionCollection(), "file_backup"); actionCollection(), "file_backup");
a->setToolTip(i18n("Next HotSync will be backup.")); a->setToolTip(i18n("Next HotSync will be backup."));
a->setWhatsThis(i18n("Tell the daemon that the next HotSync " a->setWhatsThis(i18n("Tell the daemon that the next HotSync "
@ -547,7 +547,7 @@ void KPilotInstaller::initMenu()
syncPopup->insert(a); syncPopup->insert(a);
a = new TDEAction(i18n("&Restore"), CSL1("restore"), 0, a = new TDEAction(i18n("&Restore"), CSL1("restore"), 0,
this, TQT_SLOT(slotRestoreRequested()), this, TQ_SLOT(slotRestoreRequested()),
actionCollection(), "file_restore"); actionCollection(), "file_restore");
a->setToolTip(i18n("Next HotSync will be restore.")); a->setToolTip(i18n("Next HotSync will be restore."));
a->setWhatsThis(i18n("Tell the daemon that the next HotSync " a->setWhatsThis(i18n("Tell the daemon that the next HotSync "
@ -555,7 +555,7 @@ void KPilotInstaller::initMenu()
syncPopup->insert(a); syncPopup->insert(a);
a = new TDEAction(i18n("Copy Handheld to PC"), TQString(), 0, a = new TDEAction(i18n("Copy Handheld to PC"), TQString(), 0,
this, TQT_SLOT(slotHHtoPCRequested()), this, TQ_SLOT(slotHHtoPCRequested()),
actionCollection(), "file_HHtoPC"); actionCollection(), "file_HHtoPC");
a->setToolTip(i18n("Next HotSync will be backup.")); a->setToolTip(i18n("Next HotSync will be backup."));
a->setWhatsThis(i18n("Tell the daemon that the next HotSync " a->setWhatsThis(i18n("Tell the daemon that the next HotSync "
@ -564,7 +564,7 @@ void KPilotInstaller::initMenu()
syncPopup->insert(a); syncPopup->insert(a);
a = new TDEAction(i18n("Copy PC to Handheld"), TQString(), 0, a = new TDEAction(i18n("Copy PC to Handheld"), TQString(), 0,
this, TQT_SLOT(slotPCtoHHRequested()), this, TQ_SLOT(slotPCtoHHRequested()),
actionCollection(), "file_PCtoHH"); actionCollection(), "file_PCtoHH");
a->setToolTip(i18n("Next HotSync will copy PC to Handheld.")); a->setToolTip(i18n("Next HotSync will copy PC to Handheld."));
a->setWhatsThis(i18n("Tell the daemon that the next HotSync " a->setWhatsThis(i18n("Tell the daemon that the next HotSync "
@ -575,7 +575,7 @@ void KPilotInstaller::initMenu()
#if 0 #if 0
a = new TDEAction(i18n("&List Only"),CSL1("listsync"),0, a = new TDEAction(i18n("&List Only"),CSL1("listsync"),0,
this,TQT_SLOT(slotTestSyncRequested()), this,TQ_SLOT(slotTestSyncRequested()),
actionCollection(), "file_list"); actionCollection(), "file_list");
a->setToolTip(i18n("Next HotSync will list databases.")); a->setToolTip(i18n("Next HotSync will list databases."));
a->setWhatsThis(i18n("Tell the daemon that the next HotSync " a->setWhatsThis(i18n("Tell the daemon that the next HotSync "
@ -586,14 +586,14 @@ void KPilotInstaller::initMenu()
a = new TDEAction(i18n("Rese&t Link"),CSL1("reload"), 0, a = new TDEAction(i18n("Rese&t Link"),CSL1("reload"), 0,
this, TQT_SLOT(slotResetLink()), this, TQ_SLOT(slotResetLink()),
actionCollection(),"file_reload"); actionCollection(),"file_reload");
a->setToolTip(i18n("Reset the device connection.")); a->setToolTip(i18n("Reset the device connection."));
a->setWhatsThis(i18n("Try to reset the daemon and its connection " a->setWhatsThis(i18n("Try to reset the daemon and its connection "
"to the Handheld.")); "to the Handheld."));
a = KStdAction::quit(this, TQT_SLOT(quit()), actionCollection()); a = KStdAction::quit(this, TQ_SLOT(quit()), actionCollection());
a->setWhatsThis(i18n("Quit KPilot, (and stop the daemon " a->setWhatsThis(i18n("Quit KPilot, (and stop the daemon "
"if configured that way).")); "if configured that way)."));
@ -603,15 +603,15 @@ void KPilotInstaller::initMenu()
createStandardStatusBarAction(); createStandardStatusBarAction();
setStandardToolBarMenuEnabled(true); setStandardToolBarMenuEnabled(true);
(void) KStdAction::keyBindings(this, TQT_SLOT(optionsConfigureKeys()), (void) KStdAction::keyBindings(this, TQ_SLOT(optionsConfigureKeys()),
actionCollection()); actionCollection());
(void) KStdAction::configureToolbars(this, TQT_SLOT(optionsConfigureToolbars()), (void) KStdAction::configureToolbars(this, TQ_SLOT(optionsConfigureToolbars()),
actionCollection()); actionCollection());
(void) KStdAction::preferences(this, TQT_SLOT(configure()), (void) KStdAction::preferences(this, TQ_SLOT(configure()),
actionCollection()); actionCollection());
a = new TDEAction(i18n("Configuration &Wizard..."), CSL1("wizard"), 0, a = new TDEAction(i18n("Configuration &Wizard..."), CSL1("wizard"), 0,
this, TQT_SLOT(configureWizard()), this, TQ_SLOT(configureWizard()),
actionCollection(), "options_configure_wizard"); actionCollection(), "options_configure_wizard");
a->setWhatsThis(i18n("Configure KPilot using the configuration wizard.")); a->setWhatsThis(i18n("Configure KPilot using the configuration wizard."));
@ -685,13 +685,13 @@ void KPilotInstaller::addComponentPage(PilotComponent * p,
TDEToggleAction *pt = TDEToggleAction *pt =
new TDEToggleAction(name, /* "kpilot" -- component icon, */ 0, new TDEToggleAction(name, /* "kpilot" -- component icon, */ 0,
p, TQT_SLOT(slotShowComponent()), p, TQ_SLOT(slotShowComponent()),
actionCollection(), actionname); actionCollection(), actionname);
pt->setExclusiveGroup(CSL1("view_menu")); pt->setExclusiveGroup(CSL1("view_menu"));
connect(p, TQT_SIGNAL(showComponent(PilotComponent *)), connect(p, TQ_SIGNAL(showComponent(PilotComponent *)),
this, TQT_SLOT(slotSelectComponent(PilotComponent *))); this, TQ_SLOT(slotSelectComponent(PilotComponent *)));
} }
/* slot */ void KPilotInstaller::initializeComponents() /* slot */ void KPilotInstaller::initializeComponents()
@ -719,7 +719,7 @@ void KPilotInstaller::optionsConfigureToolbars()
// This was added in KDE 3.1 // This was added in KDE 3.1
saveMainWindowSettings( TDEGlobal::config(), autoSaveGroup() ); saveMainWindowSettings( TDEGlobal::config(), autoSaveGroup() );
KEditToolbar dlg(actionCollection()); KEditToolbar dlg(actionCollection());
connect(&dlg, TQT_SIGNAL(newToolbarConfig()), this, TQT_SLOT(slotNewToolbarConfig())); connect(&dlg, TQ_SIGNAL(newToolbarConfig()), this, TQ_SLOT(slotNewToolbarConfig()));
dlg.exec(); dlg.exec();
} }
@ -1124,7 +1124,7 @@ int main(int argc, char **argv)
return 1; return 1;
} }
TQTimer::singleShot(0,tp,TQT_SLOT(startDaemonIfNeeded())); TQTimer::singleShot(0,tp,TQ_SLOT(startDaemonIfNeeded()));
TDEGlobal::dirs()->addResourceType("pilotdbs", TDEGlobal::dirs()->addResourceType("pilotdbs",
CSL1("share/apps/kpilot/DBBackup")); CSL1("share/apps/kpilot/DBBackup"));

@ -91,12 +91,12 @@ DeviceConfigPage::DeviceConfigPage(TQWidget * w, const char *n ) : ConfigPage( w
#endif #endif
#define CM(a,b) connect(fConfigWidget->a,b,this,TQT_SLOT(modified())); #define CM(a,b) connect(fConfigWidget->a,b,this,TQ_SLOT(modified()));
CM(fPilotDevice, TQT_SIGNAL(textChanged(const TQString &))); CM(fPilotDevice, TQ_SIGNAL(textChanged(const TQString &)));
CM(fPilotSpeed, TQT_SIGNAL(activated(int))); CM(fPilotSpeed, TQ_SIGNAL(activated(int)));
CM(fPilotEncoding, TQT_SIGNAL(textChanged(const TQString &))); CM(fPilotEncoding, TQ_SIGNAL(textChanged(const TQString &)));
CM(fUserName, TQT_SIGNAL(textChanged(const TQString &))); CM(fUserName, TQ_SIGNAL(textChanged(const TQString &)));
CM(fWorkaround, TQT_SIGNAL(activated(int))); CM(fWorkaround, TQ_SIGNAL(activated(int)));
#undef CM #undef CM
fConduitName = i18n("Device"); fConduitName = i18n("Device");
@ -232,11 +232,11 @@ SyncConfigPage::SyncConfigPage(TQWidget * w, const char *n ) : ConfigPage( w, n
fConfigWidget->resize(fConfigWidget->size()); fConfigWidget->resize(fConfigWidget->size());
fWidget = fConfigWidget; fWidget = fConfigWidget;
#define CM(a,b) connect(fConfigWidget->a,b,this,TQT_SLOT(modified())); #define CM(a,b) connect(fConfigWidget->a,b,this,TQ_SLOT(modified()));
CM(fSpecialSync, TQT_SIGNAL(activated(int))); CM(fSpecialSync, TQ_SIGNAL(activated(int)));
CM(fFullSyncCheck, TQT_SIGNAL(toggled(bool))); CM(fFullSyncCheck, TQ_SIGNAL(toggled(bool)));
CM(fScreenlockSecure, TQT_SIGNAL(toggled(bool))); CM(fScreenlockSecure, TQ_SIGNAL(toggled(bool)));
CM(fConflictResolution, TQT_SIGNAL(activated(int))); CM(fConflictResolution, TQ_SIGNAL(activated(int)));
#undef CM #undef CM
fConduitName = i18n("HotSync"); fConduitName = i18n("HotSync");
@ -314,15 +314,15 @@ BackupConfigPage::BackupConfigPage(TQWidget * w, const char *n ) : ConfigPage( w
fConfigWidget->resize(fConfigWidget->size()); fConfigWidget->resize(fConfigWidget->size());
fWidget = fConfigWidget; fWidget = fConfigWidget;
connect(fConfigWidget->fBackupOnlyChooser, TQT_SIGNAL( clicked() ), connect(fConfigWidget->fBackupOnlyChooser, TQ_SIGNAL( clicked() ),
TQT_SLOT( slotSelectNoBackupDBs() ) ); TQ_SLOT( slotSelectNoBackupDBs() ) );
connect(fConfigWidget->fSkipDBChooser, TQT_SIGNAL(clicked()), connect(fConfigWidget->fSkipDBChooser, TQ_SIGNAL(clicked()),
TQT_SLOT(slotSelectNoRestoreDBs())); TQ_SLOT(slotSelectNoRestoreDBs()));
#define CM(a,b) connect(fConfigWidget->a,b,this,TQT_SLOT(modified())); #define CM(a,b) connect(fConfigWidget->a,b,this,TQ_SLOT(modified()));
CM(fBackupOnly, TQT_SIGNAL(textChanged(const TQString &))); CM(fBackupOnly, TQ_SIGNAL(textChanged(const TQString &)));
CM(fSkipDB, TQT_SIGNAL(textChanged(const TQString &))); CM(fSkipDB, TQ_SIGNAL(textChanged(const TQString &)));
CM(fBackupFrequency, TQT_SIGNAL(activated(int))); CM(fBackupFrequency, TQ_SIGNAL(activated(int)));
#undef CM #undef CM
fConduitName = i18n("Backup"); fConduitName = i18n("Backup");
@ -408,11 +408,11 @@ ViewersConfigPage::ViewersConfigPage(TQWidget * w, const char *n ) : ConfigPage(
fConfigWidget->resize(fConfigWidget->size()); fConfigWidget->resize(fConfigWidget->size());
fWidget = fConfigWidget; fWidget = fConfigWidget;
#define CM(a,b) connect(fConfigWidget->a,b,this,TQT_SLOT(modified())); #define CM(a,b) connect(fConfigWidget->a,b,this,TQ_SLOT(modified()));
CM(fInternalEditors, TQT_SIGNAL(toggled(bool))); CM(fInternalEditors, TQ_SIGNAL(toggled(bool)));
CM(fUseSecret, TQT_SIGNAL(toggled(bool))); CM(fUseSecret, TQ_SIGNAL(toggled(bool)));
CM(fAddressGroup, TQT_SIGNAL(clicked(int))); CM(fAddressGroup, TQ_SIGNAL(clicked(int)));
CM(fUseKeyField, TQT_SIGNAL(toggled(bool))); CM(fUseKeyField, TQ_SIGNAL(toggled(bool)));
#undef CM #undef CM
fConduitName = i18n("Viewers"); fConduitName = i18n("Viewers");
@ -460,11 +460,11 @@ StartExitConfigPage::StartExitConfigPage(TQWidget * w, const char *n ) : ConfigP
fConfigWidget->resize(fConfigWidget->size()); fConfigWidget->resize(fConfigWidget->size());
fWidget = fConfigWidget; fWidget = fConfigWidget;
#define CM(a,b) connect(fConfigWidget->a,b,this,TQT_SLOT(modified())); #define CM(a,b) connect(fConfigWidget->a,b,this,TQ_SLOT(modified()));
CM(fStartDaemonAtLogin, TQT_SIGNAL(toggled(bool))); CM(fStartDaemonAtLogin, TQ_SIGNAL(toggled(bool)));
CM(fKillDaemonOnExit, TQT_SIGNAL(toggled(bool))); CM(fKillDaemonOnExit, TQ_SIGNAL(toggled(bool)));
CM(fDockDaemon, TQT_SIGNAL(toggled(bool))); CM(fDockDaemon, TQ_SIGNAL(toggled(bool)));
CM(fQuitAfterSync, TQT_SIGNAL(toggled(bool))); CM(fQuitAfterSync, TQ_SIGNAL(toggled(bool)));
#undef CM #undef CM
fConduitName = i18n("Startup and Exit"); fConduitName = i18n("Startup and Exit");

@ -67,8 +67,8 @@ ConfigWizard::ConfigWizard(TQWidget *parent, const char *n, int m) :
setHelpEnabled( page2, false ); setHelpEnabled( page2, false );
setHelpEnabled( page3, false ); setHelpEnabled( page3, false );
connect( page2->fProbeButton, TQT_SIGNAL( pressed() ), connect( page2->fProbeButton, TQ_SIGNAL( pressed() ),
this, TQT_SLOT( probeHandheld() ) ); this, TQ_SLOT( probeHandheld() ) );
KPilotSettings::self()->readConfig(); KPilotSettings::self()->readConfig();
page2->fUserName->setText( KPilotSettings::userName() ); page2->fUserName->setText( KPilotSettings::userName() );

@ -154,11 +154,11 @@ ProbeDialog::ProbeDialog(TQWidget *parent, const char *n) :
fTimeoutTimer = new TQTimer( this ); fTimeoutTimer = new TQTimer( this );
fProgressTimer = new TQTimer( this ); fProgressTimer = new TQTimer( this );
fRotateLinksTimer = new TQTimer( this ); fRotateLinksTimer = new TQTimer( this );
connect( fProcessEventsTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(processEvents()) ); connect( fProcessEventsTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(processEvents()) );
connect( fTimeoutTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(timeout()) ); connect( fTimeoutTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(timeout()) );
connect( fProgressTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT( progress()) ); connect( fProgressTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT( progress()) );
connect( fRotateLinksTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT( detect()) ); connect( fRotateLinksTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT( detect()) );
connect( this, TQT_SIGNAL(finished()), this, TQT_SLOT(disconnectDevices()) ); connect( this, TQ_SIGNAL(finished()), this, TQ_SLOT(disconnectDevices()) );
} }
ProbeDialog::~ProbeDialog() ProbeDialog::~ProbeDialog()
@ -182,7 +182,7 @@ int ProbeDialog::exec()
mDetected = false; mDetected = false;
mUserName = TQString(); mUserName = TQString();
mDevice = TQString(); mDevice = TQString();
TQTimer::singleShot( 0, this, TQT_SLOT( startDetection() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( startDetection() ) );
return KDialogBase::exec(); return KDialogBase::exec();
} }
@ -193,7 +193,7 @@ void ProbeDialog::startDetection()
disconnectDevices(); disconnectDevices();
fProgress->setProgress(0); fProgress->setProgress(0);
fStatus->setText( i18n("Starting detection...") ); fStatus->setText( i18n("Starting detection...") );
TQTimer::singleShot(0, this, TQT_SLOT(processEvents()) ); TQTimer::singleShot(0, this, TQ_SLOT(processEvents()) );
processEvents(); processEvents();
PilotDaemonDCOP_stub *daemonStub = new PilotDaemonDCOP_stub("kpilotDaemon", "KPilotDaemonIface"); PilotDaemonDCOP_stub *daemonStub = new PilotDaemonDCOP_stub("kpilotDaemon", "KPilotDaemonIface");
if (daemonStub) { if (daemonStub) {
@ -226,7 +226,7 @@ void ProbeDialog::startDetection()
DEBUGKPILOT<<"new kpilotDeviceLink for "<<(*it)<<endl; DEBUGKPILOT<<"new kpilotDeviceLink for "<<(*it)<<endl;
#endif #endif
mDeviceLinks[i].append( link ); mDeviceLinks[i].append( link );
connect( link, TQT_SIGNAL(deviceReady(KPilotDeviceLink*)), this, TQT_SLOT(connection(KPilotDeviceLink*)) ); connect( link, TQ_SIGNAL(deviceReady(KPilotDeviceLink*)), this, TQ_SLOT(connection(KPilotDeviceLink*)) );
processEvents(); processEvents();
} }
} }
@ -293,7 +293,7 @@ void ProbeDialog::connection( KPilotDeviceLink*lnk)
fResultsGroup->setEnabled( true ); fResultsGroup->setEnabled( true );
enableButtonOK(true); enableButtonOK(true);
TQTimer::singleShot(0, this, TQT_SLOT(retrieveDBList())); TQTimer::singleShot(0, this, TQ_SLOT(retrieveDBList()));
} }
void ProbeDialog::retrieveDBList() void ProbeDialog::retrieveDBList()
@ -329,7 +329,7 @@ void ProbeDialog::retrieveDBList()
// End sync gracefully, but don't change settings on the handheld. // End sync gracefully, but don't change settings on the handheld.
mActiveLink->endSync( KPilotLink::NoUpdate ); mActiveLink->endSync( KPilotLink::NoUpdate );
TQTimer::singleShot(0, this, TQT_SLOT(disconnectDevices())); TQTimer::singleShot(0, this, TQ_SLOT(disconnectDevices()));
} }
void ProbeDialog::disconnectDevices() void ProbeDialog::disconnectDevices()
{ {

@ -135,13 +135,13 @@ LogWidget::LogWidget(TQWidget * parent) :
h); h);
TQWhatsThis::add(b,i18n("<qt>Clears the list of messages from the " TQWhatsThis::add(b,i18n("<qt>Clears the list of messages from the "
"current HotSync.</qt>")); "current HotSync.</qt>"));
connect(b,TQT_SIGNAL(clicked()),this,TQT_SLOT(clearLog())); connect(b,TQ_SIGNAL(clicked()),this,TQ_SLOT(clearLog()));
b = new TQPushButton(i18n("Save Log..."),h); b = new TQPushButton(i18n("Save Log..."),h);
TQWhatsThis::add(b,i18n("<qt>You can save the list of messages received " TQWhatsThis::add(b,i18n("<qt>You can save the list of messages received "
"during this HotSync to a file (for example for use in a " "during this HotSync to a file (for example for use in a "
"bug report) by clicking here.</qt>")); "bug report) by clicking here.</qt>"));
connect(b,TQT_SIGNAL(clicked()),this,TQT_SLOT(saveLog())); connect(b,TQ_SIGNAL(clicked()),this,TQ_SLOT(saveLog()));
fButtonBox = h; fButtonBox = h;
@ -193,7 +193,7 @@ LogWidget::LogWidget(TQWidget * parent) :
fSplash = new TQLabel(this); fSplash = new TQLabel(this);
fSplash->setPixmap(splash); fSplash->setPixmap(splash);
fSplash->setAlignment(AlignCenter); fSplash->setAlignment(AlignCenter);
TQTimer::singleShot(3000,this,TQT_SLOT(hideSplash())); TQTimer::singleShot(3000,this,TQ_SLOT(hideSplash()));
grid->addMultiCellWidget(fSplash,1,3,1,2); grid->addMultiCellWidget(fSplash,1,3,1,2);
grid->addColSpacing(0,10); grid->addColSpacing(0,10);
grid->setColStretch(1,50); grid->setColStretch(1,50);

@ -137,20 +137,20 @@ void connectStack( KPilotLink *l, ActionQueue *a, bool loop = false )
if (l && a) if (l && a)
{ {
TQObject::connect(a, TQT_SIGNAL(syncDone(SyncAction *)), TQObject::connect(a, TQ_SIGNAL(syncDone(SyncAction *)),
l, TQT_SLOT(close())); l, TQ_SLOT(close()));
if (!loop) if (!loop)
{ {
TQObject::connect(a, TQT_SIGNAL(syncDone(SyncAction *)), TQObject::connect(a, TQ_SIGNAL(syncDone(SyncAction *)),
kapp, TQT_SLOT(quit())); kapp, TQ_SLOT(quit()));
} }
else else
{ {
TQObject::connect(a, TQT_SIGNAL(syncDone(SyncAction *)), TQObject::connect(a, TQ_SIGNAL(syncDone(SyncAction *)),
l, TQT_SLOT(reset())); l, TQ_SLOT(reset()));
} }
TQObject::connect(l, TQT_SIGNAL(deviceReady(KPilotLink*)), TQObject::connect(l, TQ_SIGNAL(deviceReady(KPilotLink*)),
a, TQT_SLOT(execConduit())); a, TQ_SLOT(execConduit()));
} }
} }

@ -228,8 +228,8 @@ void MemoWidget::setupWidget()
fCatList = new TQComboBox(this); fCatList = new TQComboBox(this);
grid->addWidget(fCatList, 0, 1); grid->addWidget(fCatList, 0, 1);
connect(fCatList, TQT_SIGNAL(activated(int)), connect(fCatList, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(slotSetCategory(int))); this, TQ_SLOT(slotSetCategory(int)));
TQWhatsThis::add(fCatList, TQWhatsThis::add(fCatList,
i18n("Select the category of addresses\n" i18n("Select the category of addresses\n"
"to display here.")); "to display here."));
@ -241,10 +241,10 @@ void MemoWidget::setupWidget()
fListBox = new TQListBox(this); fListBox = new TQListBox(this);
grid->addMultiCellWidget(fListBox, 1, 1, 0, 1); grid->addMultiCellWidget(fListBox, 1, 1, 0, 1);
connect(fListBox, TQT_SIGNAL(highlighted(int)), connect(fListBox, TQ_SIGNAL(highlighted(int)),
this, TQT_SLOT(slotShowMemo(int))); this, TQ_SLOT(slotShowMemo(int)));
connect(fListBox, TQT_SIGNAL(selectionChanged()), connect(fListBox, TQ_SIGNAL(selectionChanged()),
this,TQT_SLOT(slotUpdateButtons())); this,TQ_SLOT(slotUpdateButtons()));
TQWhatsThis::add(fListBox, TQWhatsThis::add(fListBox,
i18n("This list displays all the memos\n" i18n("This list displays all the memos\n"
"in the selected category. Click on\n" "in the selected category. Click on\n"
@ -263,7 +263,7 @@ void MemoWidget::setupWidget()
button = new TQPushButton(i18n("Import Memo..."), this); button = new TQPushButton(i18n("Import Memo..."), this);
grid->addWidget(button, 2, 0); grid->addWidget(button, 2, 0);
connect(button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotImportMemo())); connect(button, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotImportMemo()));
wt = KPilotSettings::internalEditors() ? wt = KPilotSettings::internalEditors() ?
i18n ("Read a text file and add it to the Pilot's memo database.") : i18n ("Read a text file and add it to the Pilot's memo database.") :
i18n("<qt><i>Import is disabled by the 'internal editors' setting.</i></qt>"); i18n("<qt><i>Import is disabled by the 'internal editors' setting.</i></qt>");
@ -271,15 +271,15 @@ void MemoWidget::setupWidget()
fExportButton = new TQPushButton(i18n("Export Memo..."), this); fExportButton = new TQPushButton(i18n("Export Memo..."), this);
grid->addWidget(fExportButton, 2, 1); grid->addWidget(fExportButton, 2, 1);
connect(fExportButton, TQT_SIGNAL(clicked()), this, connect(fExportButton, TQ_SIGNAL(clicked()), this,
TQT_SLOT(slotExportMemo())); TQ_SLOT(slotExportMemo()));
TQWhatsThis::add(fExportButton, TQWhatsThis::add(fExportButton,
i18n("Write the selected memo to a file.")); i18n("Write the selected memo to a file."));
fDeleteButton = new TQPushButton(i18n("Delete Memo"), this); fDeleteButton = new TQPushButton(i18n("Delete Memo"), this);
grid->addWidget(fDeleteButton, 3, 1); grid->addWidget(fDeleteButton, 3, 1);
connect(fDeleteButton, TQT_SIGNAL(clicked()), this, connect(fDeleteButton, TQ_SIGNAL(clicked()), this,
TQT_SLOT(slotDeleteMemo())); TQ_SLOT(slotDeleteMemo()));
wt = KPilotSettings::internalEditors() ? wt = KPilotSettings::internalEditors() ?
i18n("Delete the selected memo.") : i18n("Delete the selected memo.") :
i18n("<qt><i>Deleting is disabled by the 'internal editors' setting.</i></qt>") ; i18n("<qt><i>Deleting is disabled by the 'internal editors' setting.</i></qt>") ;
@ -287,7 +287,7 @@ void MemoWidget::setupWidget()
button = new TQPushButton(i18n("Add Memo"), this); button = new TQPushButton(i18n("Add Memo"), this);
grid->addWidget(button, 3, 0); grid->addWidget(button, 3, 0);
connect(button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddMemo())); connect(button, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotAddMemo()));
TQWhatsThis::add(button,i18n("Add a new memo to the database.")); TQWhatsThis::add(button,i18n("Add a new memo to the database."));
} }

@ -150,14 +150,14 @@ void PilotDaemonTray::setupWidget()
icons[NotListening] = loadIcon( CSL1("nosync") ); icons[NotListening] = loadIcon( CSL1("nosync") );
slotShowNotListening(); slotShowNotListening();
TQTimer::singleShot(2000,this,TQT_SLOT(slotShowNormal())); TQTimer::singleShot(2000,this,TQ_SLOT(slotShowNormal()));
TDEPopupMenu *menu = contextMenu(); TDEPopupMenu *menu = contextMenu();
menuKPilotItem = menu->insertItem(i18n("Start &KPilot"), daemon, menuKPilotItem = menu->insertItem(i18n("Start &KPilot"), daemon,
TQT_SLOT(slotRunKPilot())); TQ_SLOT(slotRunKPilot()));
menuConfigureConduitsItem = menu->insertItem(i18n("&Configure KPilot..."), menuConfigureConduitsItem = menu->insertItem(i18n("&Configure KPilot..."),
daemon, TQT_SLOT(slotRunConfig())); daemon, TQ_SLOT(slotRunConfig()));
menu->insertSeparator(); menu->insertSeparator();
fSyncTypeMenu = new TDEPopupMenu(menu,"sync_type_menu"); fSyncTypeMenu = new TDEPopupMenu(menu,"sync_type_menu");
@ -181,7 +181,7 @@ void PilotDaemonTray::setupWidget()
fSyncTypeMenu->setCheckable(true); fSyncTypeMenu->setCheckable(true);
fSyncTypeMenu->setItemChecked(0,true); fSyncTypeMenu->setItemChecked(0,true);
#undef MI #undef MI
connect(fSyncTypeMenu,TQT_SIGNAL(activated(int)),daemon,TQT_SLOT(requestSync(int))); connect(fSyncTypeMenu,TQ_SIGNAL(activated(int)),daemon,TQ_SLOT(requestSync(int)));
menu->insertItem(i18n("Next &Sync"),fSyncTypeMenu); menu->insertItem(i18n("Next &Sync"),fSyncTypeMenu);
KHelpMenu *help = new KHelpMenu(menu,aboutData); KHelpMenu *help = new KHelpMenu(menu,aboutData);
@ -261,8 +261,8 @@ void PilotDaemonTray::startHotSync()
} }
if (fBlinkTimer) if (fBlinkTimer)
{ {
connect(fBlinkTimer,TQT_SIGNAL(timeout()), connect(fBlinkTimer,TQ_SIGNAL(timeout()),
this,TQT_SLOT(slotBusyTimer())); this,TQ_SLOT(slotBusyTimer()));
fBlinkTimer->start(750,false); fBlinkTimer->start(750,false);
} }
} }
@ -305,8 +305,8 @@ PilotDaemon::PilotDaemon() :
fInstaller = new FileInstaller; fInstaller = new FileInstaller;
fLogFile = new LogFile; fLogFile = new LogFile;
connect(fInstaller, TQT_SIGNAL(filesChanged()), connect(fInstaller, TQ_SIGNAL(filesChanged()),
this, TQT_SLOT(slotFilesChanged())); this, TQ_SLOT(slotFilesChanged()));
fNextSyncType.setMode( KPilotSettings::syncType() ); fNextSyncType.setMode( KPilotSettings::syncType() );
@ -594,16 +594,16 @@ bool PilotDaemon::setupPilotLink()
return false; return false;
} }
TQObject::connect(fPilotLink, TQT_SIGNAL(deviceReady(KPilotLink*)), TQObject::connect(fPilotLink, TQ_SIGNAL(deviceReady(KPilotLink*)),
this, TQT_SLOT(startHotSync(KPilotLink*))); this, TQ_SLOT(startHotSync(KPilotLink*)));
// connect the signals emitted by the pilotDeviceLink // connect the signals emitted by the pilotDeviceLink
TQObject::connect(fPilotLink, TQT_SIGNAL(logError(const TQString &)), TQObject::connect(fPilotLink, TQ_SIGNAL(logError(const TQString &)),
this, TQT_SLOT(logError(const TQString &))); this, TQ_SLOT(logError(const TQString &)));
TQObject::connect(fPilotLink, TQT_SIGNAL(logMessage(const TQString &)), TQObject::connect(fPilotLink, TQ_SIGNAL(logMessage(const TQString &)),
this, TQT_SLOT(logMessage(const TQString &))); this, TQ_SLOT(logMessage(const TQString &)));
TQObject::connect(fPilotLink, TQObject::connect(fPilotLink,
TQT_SIGNAL(logProgress(const TQString &,int)), TQ_SIGNAL(logProgress(const TQString &,int)),
this, TQT_SLOT(logProgress(const TQString &,int))); this, TQ_SLOT(logProgress(const TQString &,int)));
return true; return true;
@ -1107,18 +1107,18 @@ bool PilotDaemon::shouldBackup()
launch: launch:
fSyncStack->queueCleanup(); fSyncStack->queueCleanup();
TQObject::connect(fSyncStack, TQT_SIGNAL(logError(const TQString &)), TQObject::connect(fSyncStack, TQ_SIGNAL(logError(const TQString &)),
this, TQT_SLOT(logError(const TQString &))); this, TQ_SLOT(logError(const TQString &)));
TQObject::connect(fSyncStack, TQT_SIGNAL(logMessage(const TQString &)), TQObject::connect(fSyncStack, TQ_SIGNAL(logMessage(const TQString &)),
this, TQT_SLOT(logMessage(const TQString &))); this, TQ_SLOT(logMessage(const TQString &)));
TQObject::connect(fSyncStack, TQObject::connect(fSyncStack,
TQT_SIGNAL(logProgress(const TQString &,int)), TQ_SIGNAL(logProgress(const TQString &,int)),
this, TQT_SLOT(logProgress(const TQString &,int))); this, TQ_SLOT(logProgress(const TQString &,int)));
TQObject::connect(fSyncStack, TQT_SIGNAL(syncDone(SyncAction *)), TQObject::connect(fSyncStack, TQ_SIGNAL(syncDone(SyncAction *)),
this, TQT_SLOT(endHotSync())); this, TQ_SLOT(endHotSync()));
TQTimer::singleShot(0,fSyncStack,TQT_SLOT(execConduit())); TQTimer::singleShot(0,fSyncStack,TQ_SLOT(execConduit()));
updateTrayStatus(); updateTrayStatus();
} }
@ -1183,7 +1183,7 @@ launch:
} }
else else
{ {
TQTimer::singleShot(10000,fPilotLink,TQT_SLOT(reset())); TQTimer::singleShot(10000,fPilotLink,TQ_SLOT(reset()));
} }
fPostSyncAction = None; fPostSyncAction = None;

@ -56,8 +56,8 @@ TodoEditor::TodoEditor(PilotTodoEntry * p, struct ToDoAppInfo *appInfo,
setMainWidget(fWidget); setMainWidget(fWidget);
fillFields(); fillFields();
connect(parent, TQT_SIGNAL(recordChanged(PilotTodoEntry *)), connect(parent, TQ_SIGNAL(recordChanged(PilotTodoEntry *)),
this, TQT_SLOT(updateRecord(PilotTodoEntry *))); this, TQ_SLOT(updateRecord(PilotTodoEntry *)));
} }

@ -212,8 +212,8 @@ void TodoWidget::setupWidget()
fCatList = new TQComboBox(this); fCatList = new TQComboBox(this);
grid->addWidget(fCatList, 0, 1); grid->addWidget(fCatList, 0, 1);
connect(fCatList, TQT_SIGNAL(activated(int)), connect(fCatList, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(slotSetCategory(int))); this, TQ_SLOT(slotSetCategory(int)));
TQWhatsThis::add(fCatList, TQWhatsThis::add(fCatList,
i18n("<qt>Select the category of to-dos to display here.</qt>")); i18n("<qt>Select the category of to-dos to display here.</qt>"));
@ -229,16 +229,16 @@ void TodoWidget::setupWidget()
fListBox->setItemsMovable( FALSE ); fListBox->setItemsMovable( FALSE );
fListBox->setItemsRenameable (TRUE); fListBox->setItemsRenameable (TRUE);
grid->addMultiCellWidget(fListBox, 1, 1, 0, 1); grid->addMultiCellWidget(fListBox, 1, 1, 0, 1);
connect(fListBox, TQT_SIGNAL(selectionChanged(TQListViewItem*)), connect(fListBox, TQ_SIGNAL(selectionChanged(TQListViewItem*)),
this, TQT_SLOT(slotShowTodo(TQListViewItem*))); this, TQ_SLOT(slotShowTodo(TQListViewItem*)));
connect(fListBox, TQT_SIGNAL(doubleClicked(TQListViewItem*)), connect(fListBox, TQ_SIGNAL(doubleClicked(TQListViewItem*)),
this, TQT_SLOT(slotEditRecord(TQListViewItem*))); this, TQ_SLOT(slotEditRecord(TQListViewItem*)));
connect(fListBox, TQT_SIGNAL(returnPressed(TQListViewItem*)), connect(fListBox, TQ_SIGNAL(returnPressed(TQListViewItem*)),
this, TQT_SLOT(slotEditRecord(TQListViewItem*))); this, TQ_SLOT(slotEditRecord(TQListViewItem*)));
connect(fListBox, TQT_SIGNAL(itemChecked(TQCheckListItem*, bool)), connect(fListBox, TQ_SIGNAL(itemChecked(TQCheckListItem*, bool)),
this, TQT_SLOT(slotItemChecked(TQCheckListItem*, bool))); this, TQ_SLOT(slotItemChecked(TQCheckListItem*, bool)));
connect(fListBox, TQT_SIGNAL(itemRenamed(TQListViewItem*, const TQString &, int)), connect(fListBox, TQ_SIGNAL(itemRenamed(TQListViewItem*, const TQString &, int)),
this, TQT_SLOT(slotItemRenamed(TQListViewItem*, const TQString &, int))); this, TQ_SLOT(slotItemRenamed(TQListViewItem*, const TQString &, int)));
TQWhatsThis::add(fListBox, TQWhatsThis::add(fListBox,
i18n("<qt>This list displays all the to-dos " i18n("<qt>This list displays all the to-dos "
"in the selected category. Click on " "in the selected category. Click on "
@ -256,7 +256,7 @@ void TodoWidget::setupWidget()
fEditButton = new TQPushButton(i18n("Edit Record..."), this); fEditButton = new TQPushButton(i18n("Edit Record..."), this);
grid->addWidget(fEditButton, 2, 0); grid->addWidget(fEditButton, 2, 0);
connect(fEditButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEditRecord())); connect(fEditButton, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotEditRecord()));
wt = KPilotSettings::internalEditors() ? wt = KPilotSettings::internalEditors() ?
i18n("<qt>You can edit a to-do when it is selected.</qt>") : i18n("<qt>You can edit a to-do when it is selected.</qt>") :
@ -265,7 +265,7 @@ void TodoWidget::setupWidget()
button = new TQPushButton(i18n("New Record..."), this); button = new TQPushButton(i18n("New Record..."), this);
grid->addWidget(button, 2, 1); grid->addWidget(button, 2, 1);
connect(button, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCreateNewRecord())); connect(button, TQ_SIGNAL(clicked()), this, TQ_SLOT(slotCreateNewRecord()));
wt = KPilotSettings::internalEditors() ? wt = KPilotSettings::internalEditors() ?
i18n("<qt>Add a new to-do to the to-do list.</qt>") : i18n("<qt>Add a new to-do to the to-do list.</qt>") :
i18n("<qt><i>Adding new to-dos is disabled by the 'internal editors' setting.</i></qt>"); i18n("<qt><i>Adding new to-dos is disabled by the 'internal editors' setting.</i></qt>");
@ -274,8 +274,8 @@ void TodoWidget::setupWidget()
fDeleteButton = new TQPushButton(i18n("Delete Record"), this); fDeleteButton = new TQPushButton(i18n("Delete Record"), this);
grid->addWidget(fDeleteButton, 3, 0); grid->addWidget(fDeleteButton, 3, 0);
connect(fDeleteButton, TQT_SIGNAL(clicked()), connect(fDeleteButton, TQ_SIGNAL(clicked()),
this, TQT_SLOT(slotDeleteRecord())); this, TQ_SLOT(slotDeleteRecord()));
wt = KPilotSettings::internalEditors() ? wt = KPilotSettings::internalEditors() ?
i18n("<qt>Delete the selected to-do from the to-do list.</qt>") : i18n("<qt>Delete the selected to-do from the to-do list.</qt>") :
i18n("<qt><i>Deleting is disabled by the 'internal editors' setting.</i></qt>") ; i18n("<qt><i>Deleting is disabled by the 'internal editors' setting.</i></qt>") ;
@ -369,10 +369,10 @@ void TodoWidget::slotEditRecord(TQListViewItem*item)
TodoEditor *editor = new TodoEditor(selectedRecord, TodoEditor *editor = new TodoEditor(selectedRecord,
fTodoAppInfo->info(), this); fTodoAppInfo->info(), this);
connect(editor, TQT_SIGNAL(recordChangeComplete(PilotTodoEntry *)), connect(editor, TQ_SIGNAL(recordChangeComplete(PilotTodoEntry *)),
this, TQT_SLOT(slotUpdateRecord(PilotTodoEntry *))); this, TQ_SLOT(slotUpdateRecord(PilotTodoEntry *)));
connect(editor, TQT_SIGNAL(cancelClicked()), connect(editor, TQ_SIGNAL(cancelClicked()),
this, TQT_SLOT(slotEditCancelled())); this, TQ_SLOT(slotEditCancelled()));
editor->show(); editor->show();
fPendingTodos++; fPendingTodos++;
@ -419,10 +419,10 @@ void TodoWidget::slotCreateNewRecord()
TodoEditor *editor = new TodoEditor(0L, TodoEditor *editor = new TodoEditor(0L,
fTodoAppInfo->info(), this); fTodoAppInfo->info(), this);
connect(editor, TQT_SIGNAL(recordChangeComplete(PilotTodoEntry *)), connect(editor, TQ_SIGNAL(recordChangeComplete(PilotTodoEntry *)),
this, TQT_SLOT(slotAddRecord(PilotTodoEntry *))); this, TQ_SLOT(slotAddRecord(PilotTodoEntry *)));
connect(editor, TQT_SIGNAL(cancelClicked()), connect(editor, TQ_SIGNAL(cancelClicked()),
this, TQT_SLOT(slotEditCancelled())); this, TQ_SLOT(slotEditCancelled()));
editor->show(); editor->show();
fPendingTodos++; fPendingTodos++;

@ -156,17 +156,17 @@ void ActionQueue::actionCompleted(SyncAction *b)
<< endl; << endl;
#endif #endif
TQObject::connect(a, TQT_SIGNAL(logMessage(const TQString &)), TQObject::connect(a, TQ_SIGNAL(logMessage(const TQString &)),
this, TQT_SIGNAL(logMessage(const TQString &))); this, TQ_SIGNAL(logMessage(const TQString &)));
TQObject::connect(a, TQT_SIGNAL(logError(const TQString &)), TQObject::connect(a, TQ_SIGNAL(logError(const TQString &)),
this, TQT_SIGNAL(logMessage(const TQString &))); this, TQ_SIGNAL(logMessage(const TQString &)));
TQObject::connect(a, TQT_SIGNAL(logProgress(const TQString &, int)), TQObject::connect(a, TQ_SIGNAL(logProgress(const TQString &, int)),
this, TQT_SIGNAL(logProgress(const TQString &, int))); this, TQ_SIGNAL(logProgress(const TQString &, int)));
TQObject::connect(a, TQT_SIGNAL(syncDone(SyncAction *)), TQObject::connect(a, TQ_SIGNAL(syncDone(SyncAction *)),
this, TQT_SLOT(actionCompleted(SyncAction *))); this, TQ_SLOT(actionCompleted(SyncAction *)));
// Run the action picked from the queue when we get back // Run the action picked from the queue when we get back
// to the event loop. // to the event loop.
TQTimer::singleShot(0,a,TQT_SLOT(execConduit())); TQTimer::singleShot(0,a,TQ_SLOT(execConduit()));
} }

@ -76,7 +76,7 @@ static inline void startOpenTimer(DeviceCommThread *dev, TQTimer *&t)
if ( !t) if ( !t)
{ {
t = new TQTimer(dev); t = new TQTimer(dev);
TQObject::connect(t, TQT_SIGNAL(timeout()), dev, TQT_SLOT(openDevice())); TQObject::connect(t, TQ_SIGNAL(timeout()), dev, TQ_SLOT(openDevice()));
} }
// just a single-shot timer. we'll know when to start it again... // just a single-shot timer. we'll know when to start it again...
t->start(1000, true); t->start(1000, true);
@ -306,8 +306,8 @@ bool DeviceCommThread::open(const TQString &device)
fSocketNotifier = new TQSocketNotifier(fTempSocket, fSocketNotifier = new TQSocketNotifier(fTempSocket,
TQSocketNotifier::Read, this); TQSocketNotifier::Read, this);
TQObject::connect(fSocketNotifier, TQT_SIGNAL(activated(int)), TQObject::connect(fSocketNotifier, TQ_SIGNAL(activated(int)),
this, TQT_SLOT(acceptDevice())); this, TQ_SLOT(acceptDevice()));
fSocketNotifierActive=true; fSocketNotifierActive=true;
/** /**
@ -323,7 +323,7 @@ bool DeviceCommThread::open(const TQString &device)
} }
fWorkaroundUSBTimer = new TQTimer(this); fWorkaroundUSBTimer = new TQTimer(this);
connect(fWorkaroundUSBTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(workaroundUSB())); connect(fWorkaroundUSBTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(workaroundUSB()));
fWorkaroundUSBTimer->start(timeout, true); fWorkaroundUSBTimer->start(timeout, true);
return true; return true;

@ -157,7 +157,7 @@ KPilotLocalLink::~KPilotLocalLink()
if (fReady) if (fReady)
{ {
findAvailableDatabases(*d, fPath); findAvailableDatabases(*d, fPath);
TQTimer::singleShot(500,this,TQT_SLOT(ready())); TQTimer::singleShot(500,this,TQ_SLOT(ready()));
} }
else else
{ {

@ -607,17 +607,17 @@ ConduitProxy::ConduitProxy(KPilotLink *p,
addSyncLogEntry(i18n("[Conduit %1]").arg(fDesktopName)); addSyncLogEntry(i18n("[Conduit %1]").arg(fDesktopName));
// Handle the syncDone signal properly & unload the conduit. // Handle the syncDone signal properly & unload the conduit.
TQObject::connect(fConduit,TQT_SIGNAL(syncDone(SyncAction *)), TQObject::connect(fConduit,TQ_SIGNAL(syncDone(SyncAction *)),
this,TQT_SLOT(execDone(SyncAction *))); this,TQ_SLOT(execDone(SyncAction *)));
// Proxy all the log and error messages. // Proxy all the log and error messages.
TQObject::connect(fConduit,TQT_SIGNAL(logMessage(const TQString &)), TQObject::connect(fConduit,TQ_SIGNAL(logMessage(const TQString &)),
this,TQT_SIGNAL(logMessage(const TQString &))); this,TQ_SIGNAL(logMessage(const TQString &)));
TQObject::connect(fConduit,TQT_SIGNAL(logError(const TQString &)), TQObject::connect(fConduit,TQ_SIGNAL(logError(const TQString &)),
this,TQT_SIGNAL(logError(const TQString &))); this,TQ_SIGNAL(logError(const TQString &)));
TQObject::connect(fConduit,TQT_SIGNAL(logProgress(const TQString &,int)), TQObject::connect(fConduit,TQ_SIGNAL(logProgress(const TQString &,int)),
this,TQT_SIGNAL(logProgress(const TQString &,int))); this,TQ_SIGNAL(logProgress(const TQString &,int)));
TQTimer::singleShot(0,fConduit,TQT_SLOT(execConduit())); TQTimer::singleShot(0,fConduit,TQ_SLOT(execConduit()));
return true; return true;
} }

@ -76,7 +76,7 @@ long version_record_conduit = Pilot::PLUGIN_API;
fIDListIterator = fIDList.begin(); fIDListIterator = fIDList.begin();
fTimer = new TQTimer(this); fTimer = new TQTimer(this);
connect(fTimer,TQT_SIGNAL(timeout()),this,TQT_SLOT(process())); connect(fTimer,TQ_SIGNAL(timeout()),this,TQ_SLOT(process()));
fTimer->start(0,false); // Fire as often as possible to prompt processing fTimer->start(0,false); // Fire as often as possible to prompt processing
return true; return true;
} }
@ -327,7 +327,7 @@ RecordConduit::~RecordConduit()
for this, and no longer purge the whole addressbook before the sync to for this, and no longer purge the whole addressbook before the sync to
prevent data loss in case of connection loss. */ prevent data loss in case of connection loss. */
TQTimer::singleShot(0, this, TQT_SLOT(slotPalmRecToPC())); TQTimer::singleShot(0, this, TQ_SLOT(slotPalmRecToPC()));
return true; return true;
} }
@ -342,7 +342,7 @@ void RecordConduit::slotPalmRecToPC()
if ( getSyncDirection() == SyncAction::eCopyPCToHH ) if ( getSyncDirection() == SyncAction::eCopyPCToHH )
{ {
mPCIter = mPCData->begin(); mPCIter = mPCData->begin();
TQTimer::singleShot(0, this, TQT_SLOT(slotPCRecToPalm())); TQTimer::singleShot(0, this, TQ_SLOT(slotPCRecToPalm()));
return; return;
} }
@ -354,7 +354,7 @@ void RecordConduit::slotPalmRecToPC()
if ( !palmRec ) if ( !palmRec )
{ {
mPCIter = mPCData->begin(); mPCIter = mPCData->begin();
TQTimer::singleShot( 0, this, TQT_SLOT( slotPCRecToPalm() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( slotPCRecToPalm() ) );
return; return;
} }
@ -362,7 +362,7 @@ void RecordConduit::slotPalmRecToPC()
if ( mSyncedIds.contains( palmRec->id() ) ) if ( mSyncedIds.contains( palmRec->id() ) )
{ {
KPILOT_DELETE( palmRec ); KPILOT_DELETE( palmRec );
TQTimer::singleShot( 0, this, TQT_SLOT( slotPalmRecToPC() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( slotPalmRecToPC() ) );
return; return;
} }
@ -389,7 +389,7 @@ void RecordConduit::slotPalmRecToPC()
KPILOT_DELETE( palmRec ); KPILOT_DELETE( palmRec );
KPILOT_DELETE( backupRec ); KPILOT_DELETE( backupRec );
TQTimer::singleShot(0, this, TQT_SLOT(slotPalmRecToPC())); TQTimer::singleShot(0, this, TQ_SLOT(slotPalmRecToPC()));
} }
@ -402,7 +402,7 @@ void RecordConduit::slotPCRecToPalm()
mPCData->atEnd( mPCIter ) ) mPCData->atEnd( mPCIter ) )
{ {
mPalmIndex = 0; mPalmIndex = 0;
TQTimer::singleShot( 0, this, TQT_SLOT( slotDeletedRecord() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( slotDeletedRecord() ) );
return; return;
} }
@ -418,7 +418,7 @@ void RecordConduit::slotPCRecToPalm()
" marked archived, so don't sync." << endl; " marked archived, so don't sync." << endl;
#endif #endif
KPILOT_DELETE( pcEntry ); KPILOT_DELETE( pcEntry );
TQTimer::singleShot( 0, this, TQT_SLOT( slotPCRecToPalm() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( slotPCRecToPalm() ) );
return; return;
} }
@ -428,7 +428,7 @@ void RecordConduit::slotPCRecToPalm()
// it's a new item(no record ID and not inserted by the Palm -> PC sync), so add it // it's a new item(no record ID and not inserted by the Palm -> PC sync), so add it
syncEntry( pcEntry, 0L, 0L ); syncEntry( pcEntry, 0L, 0L );
KPILOT_DELETE( pcEntry ); KPILOT_DELETE( pcEntry );
TQTimer::singleShot( 0, this, TQT_SLOT( slotPCRecToPalm() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( slotPCRecToPalm() ) );
return; return;
} }
@ -439,7 +439,7 @@ void RecordConduit::slotPCRecToPalm()
DEBUGKPILOT << ": address with id " << recID << " already synced." << endl; DEBUGKPILOT << ": address with id " << recID << " already synced." << endl;
#endif #endif
KPILOT_DELETE( pcEntry ); KPILOT_DELETE( pcEntry );
TQTimer::singleShot( 0, this, TQT_SLOT( slotPCRecToPalm() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( slotPCRecToPalm() ) );
return; return;
} }
@ -470,7 +470,7 @@ void RecordConduit::slotPCRecToPalm()
mSyncedIds.append( recID ); mSyncedIds.append( recID );
// done with the sync process, go on with the next one: // done with the sync process, go on with the next one:
TQTimer::singleShot( 0, this, TQT_SLOT( slotPCRecToPalm() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( slotPCRecToPalm() ) );
} }
@ -483,7 +483,7 @@ void RecordConduit::slotDeletedRecord()
if( !backupRec || isFirstSync() ) if( !backupRec || isFirstSync() )
{ {
KPILOT_DELETE(backupRec); KPILOT_DELETE(backupRec);
TQTimer::singleShot( 0, this, TQT_SLOT( slotDeleteUnsyncedPCRecords() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( slotDeleteUnsyncedPCRecords() ) );
return; return;
} }
@ -491,7 +491,7 @@ void RecordConduit::slotDeletedRecord()
if ( mSyncedIds.contains( backupRec->id() ) ) if ( mSyncedIds.contains( backupRec->id() ) )
{ {
KPILOT_DELETE( backupRec ); KPILOT_DELETE( backupRec );
TQTimer::singleShot( 0, this, TQT_SLOT( slotDeletedRecord() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( slotDeletedRecord() ) );
return; return;
} }
@ -513,7 +513,7 @@ void RecordConduit::slotDeletedRecord()
KPILOT_DELETE( backupEntry ); KPILOT_DELETE( backupEntry );
KPILOT_DELETE( palmRec ); KPILOT_DELETE( palmRec );
KPILOT_DELETE( backupRec ); KPILOT_DELETE( backupRec );
TQTimer::singleShot( 0, this, TQT_SLOT( slotDeletedRecord() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( slotDeletedRecord() ) );
} }
@ -546,7 +546,7 @@ void RecordConduit::slotDeleteUnsyncedPCRecords()
} }
} }
} }
TQTimer::singleShot(0, this, TQT_SLOT(slotDeleteUnsyncedHHRecords())); TQTimer::singleShot(0, this, TQ_SLOT(slotDeleteUnsyncedHHRecords()));
} }
@ -570,7 +570,7 @@ void RecordConduit::slotDeleteUnsyncedHHRecords()
} }
} }
} }
TQTimer::singleShot( 0, this, TQT_SLOT( slotCleanup() ) ); TQTimer::singleShot( 0, this, TQ_SLOT( slotCleanup() ) );
} }

@ -113,7 +113,7 @@ SyncAction::~SyncAction()
bool SyncAction::delayDone() bool SyncAction::delayDone()
{ {
TQTimer::singleShot(0,this,TQT_SLOT(delayedDoneSlot())); TQTimer::singleShot(0,this,TQ_SLOT(delayedDoneSlot()));
return true; return true;
} }
@ -272,7 +272,7 @@ void SyncAction::startTickle(unsigned timeout)
} }
else else
{ {
connect(deviceLink(),TQT_SIGNAL(timeout()),this,TQT_SIGNAL(timeout())); connect(deviceLink(),TQ_SIGNAL(timeout()),this,TQ_SIGNAL(timeout()));
deviceLink()->startTickle(timeout); deviceLink()->startTickle(timeout);
} }
} }
@ -286,7 +286,7 @@ void SyncAction::stopTickle()
} }
else else
{ {
disconnect(deviceLink(),TQT_SIGNAL(timeout()),this,TQT_SIGNAL(timeout())); disconnect(deviceLink(),TQ_SIGNAL(timeout()),this,TQ_SIGNAL(timeout()));
deviceLink()->stopTickle(); deviceLink()->stopTickle();
} }
} }
@ -322,8 +322,8 @@ int SyncAction::questionYesNo(const TQString & text,
if ( (timeout > 0) && ( deviceLink() ) ) if ( (timeout > 0) && ( deviceLink() ) )
{ {
TQObject::connect(deviceLink(), TQT_SIGNAL(timeout()), TQObject::connect(deviceLink(), TQ_SIGNAL(timeout()),
dialog, TQT_SLOT(slotCancel())); dialog, TQ_SLOT(slotCancel()));
startTickle(timeout); startTickle(timeout);
} }
@ -435,8 +435,8 @@ int SyncAction::questionYesNoCancel(const TQString & text,
if ( (timeout > 0) && (deviceLink()) ) if ( (timeout > 0) && (deviceLink()) )
{ {
TQObject::connect(deviceLink(), TQT_SIGNAL(timeout()), TQObject::connect(deviceLink(), TQ_SIGNAL(timeout()),
dialog, TQT_SLOT(slotCancel())); dialog, TQ_SLOT(slotCancel()));
startTickle(timeout); startTickle(timeout);
} }

Loading…
Cancel
Save