Compare commits

...

21 Commits

Author SHA1 Message Date
Michele Calgaro 41c5e5800d
Replace KDE_DEPRECATED with TDE_DEPRECATED
1 month ago
Michele Calgaro f28feea087
Replace KDE_[NO_]EXPORT with TDE_[NO_]EXPORT
1 month ago
TDE Gitea 40ffb58a49 Merge translation files from master branch.
1 month ago
TDE Gitea 3395355e57 Merge translation files from master branch.
2 months ago
TDE Gitea eca240cac7 Merge translation files from master branch.
2 months ago
TDE Gitea cadc8b76b0 Merge translation files from master branch.
2 months ago
TDE Gitea e0652ba28b Merge translation files from master branch.
2 months ago
Michele Calgaro e9d5333939
Use centralized cmake version
3 months ago
Michele Calgaro 031143c754
Replace Qt with TQt
3 months ago
TDE Gitea 84beaa20de Merge translation files from master branch.
5 months ago
Michele Calgaro f9289944a1
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
5 months ago
Michele Calgaro 3b5ccc656f
Remove various '#define' strings - part 6
6 months ago
Michele Calgaro abcd9a4560
Replaced various '#define' with actual strings - part 5
6 months ago
TDE Gitea 1d47a02e82 Merge translation files from master branch.
7 months ago
Michele Calgaro 04d2f2a575
Replace 'Event' #define strings
7 months ago
Slávek Banko 2f80418ddf
Raise the minimum required version of CMake to 3.5.
7 months ago
Michele Calgaro 255ec90652
Replace Qt with TQt
7 months ago
Michele Calgaro 1a31fdd3d3
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
9 months ago
Michele Calgaro 0a566136eb
Drop TQT_BASE_OBJECT* defines
10 months ago
Michele Calgaro 980849e7c8
Replace Q_OBJECT with TQ_OBJECT
11 months ago
Michele Calgaro 83e4ace78c
Replace _OBJECT_NAME_STRING defines with actual strings. This relates to the merging of tqtinterface with tqt3.
11 months ago

@ -9,7 +9,11 @@
# #
################################################# #################################################
cmake_minimum_required( VERSION 3.1 )
##### set project version ########################
include( TDEVersion )
cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
##### include our cmake modules ################# ##### include our cmake modules #################

@ -9,7 +9,12 @@
# #
################################################# #################################################
cmake_minimum_required( VERSION 3.1 )
##### set project version ########################
include( TDEVersion )
cmake_minimum_required( VERSION ${TDE_CMAKE_MINIMUM_VERSION} )
tde_set_project_version( )
#### general package setup ###################### #### general package setup ######################
@ -33,11 +38,6 @@ enable_testing( )
include( TDEMacros ) include( TDEMacros )
##### set version number ########################
tde_set_project_version( )
##### setup install paths ####################### ##### setup install paths #######################
include( TDESetupPaths ) include( TDESetupPaths )

@ -371,8 +371,8 @@ To provide a consistent experience to KPilot users, there already
exists a class \class{ConduitConfig} which is a subclass of \class{KDialog}. exists a class \class{ConduitConfig} which is a subclass of \class{KDialog}.
This dialog does most of the basic work for you. This dialog does most of the basic work for you.
\subsection{The dialog template, using QT Designer} \subsection{The dialog template, using TQt Designer}
Of course, first we need to have a dialog template in the form of a QT Of course, first we need to have a dialog template in the form of a TQt
Designer file (which has an extension .ui). Start up \file{designer} and Designer file (which has an extension .ui). Start up \file{designer} and
create a new widget (no dialogbox, i.e. no OK or cancel buttons, these will be added automatically). The dialogbox should contain a QTabWidget, even if you only need one tab. A second tab "About" will be added more or less automatically by the conduit listing the copyright and the authors of your conduit. A typical example of the coknduit setup widget dialog is shown in the following screenshot: create a new widget (no dialogbox, i.e. no OK or cancel buttons, these will be added automatically). The dialogbox should contain a QTabWidget, even if you only need one tab. A second tab "About" will be added more or less automatically by the conduit listing the copyright and the authors of your conduit. A typical example of the coknduit setup widget dialog is shown in the following screenshot:
\includegraphics[width=14cm]{pictures/ProxyTab} \includegraphics[width=14cm]{pictures/ProxyTab}
@ -401,9 +401,9 @@ class MALWidget;
class MALWidgetSetup : public ConduitConfig class MALWidgetSetup : public ConduitConfig
{ {
Q_OBJECT TQ_OBJECT
public: public:
MALWidgetSetup(QWidget *,const char *,const QStringList &); MALWidgetSetup(TQWidget *,const char *,const QStringList &);
virtual ~MALWidgetSetup() {}; virtual ~MALWidgetSetup() {};
virtual void readSettings(); virtual void readSettings();
protected: protected:
@ -417,7 +417,7 @@ private:
This class implements the dialog box itself, and our dialog template This class implements the dialog box itself, and our dialog template
will be inserted into this dialog by the constructor: will be inserted into this dialog by the constructor:
{\footnotesize\begin{verbatim} {\footnotesize\begin{verbatim}
MALWidgetSetup::MALWidgetSetup(QWidget *w, const char *n, MALWidgetSetup::MALWidgetSetup(TQWidget *w, const char *n,
const QStringList & a) : const QStringList & a) :
ConduitConfig(w,n,a) ConduitConfig(w,n,a)
{ {
@ -437,7 +437,7 @@ The first two lines create an instance of our dialog template and add it
as the tab widget to the dialog. Since we will have to set and read the as the tab widget to the dialog. Since we will have to set and read the
values of the controls in that tab widget, we need to store a pointer to values of the controls in that tab widget, we need to store a pointer to
the instance in the variable \code{fConfigWidget} which is of the same type the instance in the variable \code{fConfigWidget} which is of the same type
(\code{MALWidget}) we assigned to our dialog template in QT Designer. The (\code{MALWidget}) we assigned to our dialog template in TQt Designer. The
third line of code adds the about page (which is created by the factory, third line of code adds the about page (which is created by the factory,
see last section) to the tab widget, while the last two line just adjust see last section) to the tab widget, while the last two line just adjust
the size of the dialog box and are not always needed. the size of the dialog box and are not always needed.
@ -453,7 +453,7 @@ char*} variable of the conduit factory class), and then we can use the methods
\item \code{fConfig->readEntry("entryname", \em{defaultstring})} \item \code{fConfig->readEntry("entryname", \em{defaultstring})}
\item \code{fConfig->readBoolEntry("entryname", \em{defaultBoolValue})} \item \code{fConfig->readBoolEntry("entryname", \em{defaultBoolValue})}
\end{itemize} \end{itemize}
to retrieve the settings from the configuration file. We then use the methods of the QT and KDE widgets to assign the text or value to the controls: to retrieve the settings from the configuration file. We then use the methods of the TQt and TDE widgets to assign the text or value to the controls:
{\footnotesize\begin{verbatim} {\footnotesize\begin{verbatim}
/* virtual */ void MALWidgetSetup::readSettings() /* virtual */ void MALWidgetSetup::readSettings()
@ -584,7 +584,7 @@ All conduits are subclasses of \class{SyncAction}, which provides the following
environment will deal with \code{syncDone()}. environment will deal with \code{syncDone()}.
\item \item
\code{void addSyncLogEntry(const QString \&e,bool suppress=false)} ... Write a log entry to the pilot. Causes signal \code{logEntry(const char *)} to be emitted. \code{void addSyncLogEntry(const TQString \&e,bool suppress=false)} ... Write a log entry to the pilot. Causes signal \code{logEntry(const char *)} to be emitted.
\item \item
\code{int pilotSocket()}\qquad ... returns the pilot socket (needed if you use your own functions to talk to the handheld. This is not recommended, but necessary in some cases) \code{int pilotSocket()}\qquad ... returns the pilot socket (needed if you use your own functions to talk to the handheld. This is not recommended, but necessary in some cases)
\item \item
@ -596,9 +596,9 @@ In addition to these functions the class also has some signals you can emit to d
\begin{itemize} \begin{itemize}
\item \code{void syncDone(SyncAction *)} ... tell KPilot that the conduit has finished. Every conduit that returns true in its \code{exec()} method needs to emit this signal, otherwise KPilot will wait forever for the conduit to return. \item \code{void syncDone(SyncAction *)} ... tell KPilot that the conduit has finished. Every conduit that returns true in its \code{exec()} method needs to emit this signal, otherwise KPilot will wait forever for the conduit to return.
\item \code{void logMessage(const QString \&)} ... Adds a message to KPilot's log, but not to the handheld's log. \item \code{void logMessage(const TQString \&)} ... Adds a message to KPilot's log, but not to the handheld's log.
\item \code{void logError(const QString \&)} ... Adds an error message to KPilot's log \item \code{void logError(const TQString \&)} ... Adds an error message to KPilot's log
\item \code{void logProgress(const QString \&,int)} ... Adds a log message and sets the progress bar to the given percentage. \item \code{void logProgress(const TQString \&,int)} ... Adds a log message and sets the progress bar to the given percentage.
\end{itemize} \end{itemize}
@ -611,9 +611,9 @@ In addition to \class{SyncAction}'s methods it adds the following methods:
the handheld in regular intervals the handheld in regular intervals
\item \code{void stopTickle()} ... stop the timer \item \code{void stopTickle()} ... stop the timer
\item\code{int questionYesNo(const QString \&question , \item\code{int questionYesNo(const TQString \&question ,
const QString \&caption = QString::null, const TQString \&caption = TQString::null,
const QString \&key = QString::null, const TQString \&key = TQString::null,
unsigned timeout = 20000)} ... Ask a yes-no question of the user. unsigned timeout = 20000)} ... Ask a yes-no question of the user.
This has a timeout so that you don't wait forever for inattentive users. This has a timeout so that you don't wait forever for inattentive users.
It's much like \code{KMessageBox::questionYesNo()}, but with this extra It's much like \code{KMessageBox::questionYesNo()}, but with this extra
@ -658,13 +658,13 @@ of this class that you might need in your conduit:
to the \code{DBInfo} variable, which can then be used in other functions. to the \code{DBInfo} variable, which can then be used in other functions.
\item \item
\code{bool retrieveDatabase(const QString \&path, struct DBInfo *db)} \code{bool retrieveDatabase(const TQString \&path, struct DBInfo *db)}
\qquad ... Retrieve the database indicated by \code{DBInfo *db} into \qquad ... Retrieve the database indicated by \code{DBInfo *db} into
the local file path. the local file path.
\item \item
\code{bool installFile(const QString \&, bool deleteFile=true)}\qquad ... Installs the .prc \code{bool installFile(const TQString \&, bool deleteFile=true)}\qquad ... Installs the .prc
or .pdb database from the PC to the handheld. Returns true on success. or .pdb database from the PC to the handheld. Returns true on success.
If deleteFile is set true or left out, the local file is deleted after successful installation. If deleteFile is set true or left out, the local file is deleted after successful installation.
\item \item
@ -744,7 +744,7 @@ database to not dirty.
from Palm Pilot database from Palm Pilot database
\item\code{bool isOpen()} ... Returns false if the database could not be \item\code{bool isOpen()} ... Returns false if the database could not be
opened, e.g. no connection to the handheld or file could not be created. opened, e.g. no connection to the handheld or file could not be created.
\item\code{virtual QString dbPathName()} ... Returns some sensible human-readable \item\code{virtual TQString dbPathName()} ... Returns some sensible human-readable
identifier for the database. Serial databases get Pilot:, local databases identifier for the database. Serial databases get Pilot:, local databases
return the full path. return the full path.
\item\code{virtual int readAppBlock(unsigned char* buffer, int maxLen)} ... \item\code{virtual int readAppBlock(unsigned char* buffer, int maxLen)} ...
@ -757,8 +757,8 @@ Writes the application block info.
The constructors of \class{PilotLocalDatabase} and \class{PilotSerialDatabase} are: The constructors of \class{PilotLocalDatabase} and \class{PilotSerialDatabase} are:
\begin{itemize} \begin{itemize}
\item\code{PilotSerialDatabase(int linksocket, const char* dbName)} ... linksocket \item\code{PilotSerialDatabase(int linksocket, const char* dbName)} ... linksocket
\item\code{PilotLocalDatabase( const QString\& path, const QString\& name)} \item\code{PilotLocalDatabase( const TQString\& path, const TQString\& name)}
\item\code{PilotLocalDatabase(const QString \&name)} ... open database by name only \item\code{PilotLocalDatabase(const TQString \&name)} ... open database by name only
(no explicit path). The path \file{\$TDEHOME/share/apps/kpilot/DBBackup/PalmUserName/} (no explicit path). The path \file{\$TDEHOME/share/apps/kpilot/DBBackup/PalmUserName/}
is set by KPilot automatically. is set by KPilot automatically.
\end{itemize} \end{itemize}
@ -945,7 +945,7 @@ Another issue is how to propagate log messages from the external library to KPil
emit logMessage(i18n("My own log message")); emit logMessage(i18n("My own log message"));
\end{verbatim} \end{verbatim}
The problem with these slots is that they are Qt-specific, while most libraries are written in C, and expect a hook function that will be called whenever a message needs to be written out. Unfortunately you cannot pass a member of your SyncAction-derived class, either, so the way out is to store a pointer to the current conduit instance (only one will be active at any time, anyway) in a static variable, and call the member method from this pointer: The problem with these slots is that they are TQt-specific, while most libraries are written in C, and expect a hook function that will be called whenever a message needs to be written out. Unfortunately you cannot pass a member of your SyncAction-derived class, either, so the way out is to store a pointer to the current conduit instance (only one will be active at any time, anyway) in a static variable, and call the member method from this pointer:
{\footnotesize {\footnotesize
\begin{verbatim} \begin{verbatim}
@ -976,7 +976,7 @@ int malconduit_logf(const char *format, ...) {
return rval; return rval;
} }
void MALConduit::printLogMessage(QString msg) { void MALConduit::printLogMessage(TQString msg) {
FUNCTIONSETUP; FUNCTIONSETUP;
emit logMessage(msg); emit logMessage(msg);
} }
@ -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,12 +1048,12 @@ 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;
} }
QString docfilename=constructDOCFileName(dbinfo.name); TQString docfilename=constructDOCFileName(dbinfo.name);
QString pdbfilename=constructPDBFileName(dbinfo.name); TQString pdbfilename=constructPDBFileName(dbinfo.name);
docSyncInfo syncInfo(dbinfo.name, docfilename, pdbfilename, eSyncNone); docSyncInfo syncInfo(dbinfo.name, docfilename, pdbfilename, eSyncNone);
syncInfo.dbinfo=dbinfo; syncInfo.dbinfo=dbinfo;
@ -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,16 +1089,16 @@ 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;
} }
QString fn=(*dociterator); TQString fn=(*dociterator);
QDir dr(fDOCDir); QDir dr(fDOCDir);
QFileInfo fl(dr, fn ); QFileInfo fl(dr, fn );
QString docfilename=fl.absFilePath(); TQString docfilename=fl.absFilePath();
QString pdbfilename; TQString pdbfilename;
dociterator++; dociterator++;
DBInfo dbinfo; DBInfo dbinfo;
@ -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,20 +1142,20 @@ 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;
} }
QString fn=(*dociterator); TQString fn=(*dociterator);
QDir dr(fPDBDir); QDir dr(fPDBDir);
QFileInfo fl(dr, fn ); QFileInfo fl(dr, fn );
QString pdbfilename=fl.absFilePath(); TQString pdbfilename=fl.absFilePath();
dociterator++; dociterator++;
// Get the doc title and check if it has already been synced (in the synced docs list of in fDBNames to be synced) // Get the doc title and check if it has already been synced (in the synced docs list of in fDBNames to be synced)
// If the doc title doesn't appear in either list, install it to the Handheld, and add it to the list of dbs to be synced. // If the doc title doesn't appear in either list, install it to the Handheld, and add it to the list of dbs to be synced.
QString dbname=fl.baseName(TRUE).left(30); TQString dbname=fl.baseName(TRUE).left(30);
if (!fDBNames.contains(dbname) && !fDBListSynced.contains(dbname)) { if (!fDBNames.contains(dbname) && !fDBListSynced.contains(dbname)) {
if (fHandle->installFiles(pdbfilename )) { if (fHandle->installFiles(pdbfilename )) {
DBInfo dbinfo; DBInfo dbinfo;
@ -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}
@ -1290,7 +1290,7 @@ bool DOCConduit::doSync(docSyncInfo &sinfo) {
if (!QFile::remove(sinfo.docfilename)) { if (!QFile::remove(sinfo.docfilename)) {
kdWarning()<<i18n("Unable to delete the text file \"%1\" on the PC").arg(sinfo.docfilename)<<endl; kdWarning()<<i18n("Unable to delete the text file \"%1\" on the PC").arg(sinfo.docfilename)<<endl;
} }
QString bmkfilename = sinfo.docfilename; TQString bmkfilename = sinfo.docfilename;
if (bmkfilename.endsWith(".txt")){ if (bmkfilename.endsWith(".txt")){
bmkfilename.remove(bmkfilename.length()-4, 4); bmkfilename.remove(bmkfilename.length()-4, 4);
} }
@ -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 QString &)), SIGNAL(logError(const QString &))); connect(&docconverter, TQ_SIGNAL(logError(const TQString &)), TQ_SIGNAL(logError(const TQString &)));
connect(&docconverter, SIGNAL(logMessage(const QString &)), SIGNAL(logMessage(const QString &))); 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);
@ -1357,7 +1357,7 @@ bool DOCConduit::doSync(docSyncInfo &sinfo) {
QFile docfile(docconverter.docFilename()); QFile docfile(docconverter.docFilename());
if (docfile.open(IO_ReadOnly)) { if (docfile.open(IO_ReadOnly)) {
docmd5.update(docfile); docmd5.update(docfile);
QString thisDigest(docmd5.hexDigest().data()); TQString thisDigest(docmd5.hexDigest().data());
fConfig->writeEntry(docconverter.docFilename(), thisDigest); fConfig->writeEntry(docconverter.docFilename(), thisDigest);
fConfig->sync(); fConfig->sync();
DEBUGCONDUIT<<"MD5 Checksum of the text "<<sinfo.docfilename<<" is "<<thisDigest<<endl; DEBUGCONDUIT<<"MD5 Checksum of the text "<<sinfo.docfilename<<" is "<<thisDigest<<endl;
@ -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 QString &)), SIGNAL(logError(const QString &))); // disconnect(&docconverter, TQ_SIGNAL(logError(const TQString &)), TQ_SIGNAL(logError(const TQString &)));
// disconnect(&docconverter, SIGNAL(logMessage(const QString &)), SIGNAL(logMessage(const QString &))); // disconnect(&docconverter, TQ_SIGNAL(logMessage(const TQString &)), TQ_SIGNAL(logMessage(const TQString &)));
// KPILOT_DELETE(database); // KPILOT_DELETE(database);
} }
else else
@ -1632,7 +1632,7 @@ This is also varpoware
> 5) How about responsiveness of the front end? I realized there are no > 5) How about responsiveness of the front end? I realized there are no
> QTimer::singleShot to let qt process the queue between syncing two records. > TQTimer::singleShot to let tqt process the queue between syncing two records.
> Or did I miss something? > Or did I miss something?
currenlty this is true. While we aim for ASYNC the syncing is currently currenlty this is true. While we aim for ASYNC the syncing is currently

@ -14,7 +14,7 @@ class TDEAboutData;
class MALConduitFactory : public KLibFactory class MALConduitFactory : public KLibFactory
{ {
Q_OBJECT TQ_OBJECT
public: public:
MALConduitFactory(TQObject * = 0L,const char * = 0L); MALConduitFactory(TQObject * = 0L,const char * = 0L);

@ -58,7 +58,7 @@ Header Files
============ ============
One thing we *do* need to agree on is how to protect One thing we *do* need to agree on is how to protect
.h files from double-inclusion. In Qt and KDE there's: .h files from double-inclusion. In TQt and TDE there's:
#ifndef QTCLASS_H #ifndef QTCLASS_H
#ifndef _KDECLASS_H #ifndef _KDECLASS_H

@ -48,8 +48,7 @@ Current features include:
INSTALLATION INSTALLATION
============ ============
KPilot 4.0.0 _REQUIRES_ KDE 2 (http://www.kde.org/) and KPilot 4.0.0 _REQUIRES_ TDE and the TQt library
v2.2.0 or better of the QT widget set (http://www.troll.no/).
KPilot also _REQUIRES_ pilot-link, which is not distributed with KPilot also _REQUIRES_ pilot-link, which is not distributed with
all the linux distro's out there. You may have to go looking. all the linux distro's out there. You may have to go looking.
@ -60,11 +59,6 @@ all the linux distro's out there. You may have to go looking.
make install make install
from the kpilot-4.0.0 directory should configure and install KPilot. from the kpilot-4.0.0 directory should configure and install KPilot.
If you are using KPanel (the panel that comes with KDE) restarting it
should insert an icon into the Utilities submenu. If you are not using
KPanel, the executable is named kpilot and will be installed in either
/opt/kde/bin/ or /usr/local/kde/bin (whichever is appropriate for your
system).
In some cases KPilot will not compile due to configuration In some cases KPilot will not compile due to configuration
differences; in this case a less simple differences; in this case a less simple
@ -79,14 +73,12 @@ should do the trick. If this fails as well, you can subscribe to the
KPilot mailing list and state the nature of the failure there. KPilot mailing list and state the nature of the failure there.
*NOTE* that KPilot makes assumptions about where pilot-link and *NOTE* that KPilot makes assumptions about where pilot-link and
the Qt libraries are; in particular it is important to set TQTDIR correctly the TQt libraries are; in particular it is important to set TQTDIR correctly
(to the Qt 1.44 directories) when compiling KPilot. On many systems the when compiling KPilot. On many systems the command to do this will be
command to do this will be
export TQTDIR=/usr/lib/qt-2* export TQTDIR=/usr/lib/tqt
but your mileage may vary. RedHat 6.2 systems ship with Qt 1.45 and Qt 2.1, but your mileage may vary.
in which case it is doubly important to set TQTDIR properly.
USING THE SOFTWARE USING THE SOFTWARE
================== ==================

@ -14,7 +14,7 @@ with the handheld.
The lib/ directory holds the base library for KPilot. The lib/ directory holds the base library for KPilot.
This boils down to a bunch of wrappers for pilot-link This boils down to a bunch of wrappers for pilot-link
classes (not using p-l's C++ code because that isn't classes (not using p-l's C++ code because that isn't
Qt-ish) and a few classes that do interesting things: TQt-ish) and a few classes that do interesting things:
KPilotDeviceLink for managing the device connection, KPilotDeviceLink for managing the device connection,
and SyncAction for doing stuff during a sync. and SyncAction for doing stuff during a sync.

@ -141,7 +141,7 @@ FINISHED TODO jobs
RESOLUTION: Implemented the InternalEditorAction that syncs these modifications RESOLUTION: Implemented the InternalEditorAction that syncs these modifications
+(19a)Implement the internal editor sync +(19a)Implement the internal editor sync
+(19a)When syncing, also backup the databases (if option is set) +(19a)When syncing, also backup the databases (if option is set)
+(19b)Add all codecs that are supported by Qt, automatically fill the +(19b)Add all codecs that are supported by TQt, automatically fill the
combobox in the config dialog. Change the combobox to an editable combobox in the config dialog. Change the combobox to an editable
Combobox so that the user can also give other encodings (if he Combobox so that the user can also give other encodings (if he
installed the corresponding plugins). installed the corresponding plugins).

@ -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()));
} }

@ -53,7 +53,7 @@ typedef TQValueList<recordid_t> RecordIDList;
class AbbrowserConduit : public ConduitAction class AbbrowserConduit : public ConduitAction
{ {
Q_OBJECT TQ_OBJECT
public: public:
AbbrowserConduit(KPilotLink *o,const char *n = 0L, AbbrowserConduit(KPilotLink *o,const char *n = 0L,

@ -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)

@ -39,7 +39,7 @@ class ResolutionTable;
class ResolutionDlg : public KDialogBase class ResolutionDlg : public KDialogBase
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -104,7 +104,7 @@ class docRegExpBookmark:public docMatchBookmark {
*************************************************************************************************************/ *************************************************************************************************************/
class DOCConverter:public TQObject { class DOCConverter:public TQObject {
Q_OBJECT TQ_OBJECT
private: private:
PilotDatabase * docdb; PilotDatabase * docdb;

@ -24,7 +24,7 @@ RegExps, while the PalmDoc conduit uses the QRegExp, which have
some slight differences (especially concerning the ^ and $ some slight differences (especially concerning the ^ and $
patterns as well as backreferences). So if you used MakeDocJ, patterns as well as backreferences). So if you used MakeDocJ,
the .bmk file syntax will be quite familiar, but you will still the .bmk file syntax will be quite familiar, but you will still
have to adapt your bookmark files for Qt regular expressions have to adapt your bookmark files for TQt regular expressions
instead of Java regular expressions instead of Java regular expressions

@ -163,7 +163,7 @@ bool DOCConduit::pcTextChanged(TQString txtfn)
KMD5 docmd5; KMD5 docmd5;
TQFile txtfile(txtfn); TQFile txtfile(txtfn);
if (txtfile.open(IO_ReadOnly)){ if (txtfile.open(IO_ReadOnly)){
docmd5.update(*TQT_TQIODEVICE(&txtfile)); docmd5.update(txtfile);
TQString thisDigest(docmd5.hexDigest() /* .data() */); TQString thisDigest(docmd5.hexDigest() /* .data() */);
#ifdef DEBUG #ifdef DEBUG
DEBUGKPILOT<<"New digest is "<<thisDigest<<endl; DEBUGKPILOT<<"New digest is "<<thisDigest<<endl;
@ -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);
@ -362,7 +362,7 @@ bool DOCConduit::doSync(docSyncInfo &sinfo)
KMD5 docmd5; KMD5 docmd5;
TQFile txtfile(docconverter.txtFilename()); TQFile txtfile(docconverter.txtFilename());
if (txtfile.open(IO_ReadOnly)) { if (txtfile.open(IO_ReadOnly)) {
docmd5.update(*TQT_TQIODEVICE(&txtfile)); docmd5.update(txtfile);
TQString thisDigest(docmd5.hexDigest() /* .data() */); TQString thisDigest(docmd5.hexDigest() /* .data() */);
DOCConduitSettings::self()->config()->writeEntry(docconverter.txtFilename(), thisDigest); DOCConduitSettings::self()->config()->writeEntry(docconverter.txtFilename(), thisDigest);
DOCConduitSettings::self()->config()->sync(); DOCConduitSettings::self()->config()->sync();
@ -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;
} }

@ -55,7 +55,7 @@ enum eTexStatus {
TQString dirToString(eSyncDirectionEnum dir); TQString dirToString(eSyncDirectionEnum dir);
class DOCConduit:public ConduitAction { class DOCConduit:public ConduitAction {
Q_OBJECT TQ_OBJECT
public: public:
eSyncDirectionEnum eSyncDirection; eSyncDirectionEnum eSyncDirection;

@ -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.
} }

@ -53,7 +53,7 @@ struct conflictEntry {
class ResolutionDialog : public KDialogBase class ResolutionDialog : public KDialogBase
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -37,7 +37,7 @@ class TDEAboutData;
class DOCConduitFactory:public KLibFactory class DOCConduitFactory:public KLibFactory
{ {
Q_OBJECT TQ_OBJECT
public: public:
@ -57,7 +57,7 @@ public:
protected: protected:
virtual TQObject * createObject(TQObject * parent = 0, virtual TQObject * createObject(TQObject * parent = 0,
const char *name = 0, const char *name = 0,
const char *classname = TQOBJECT_OBJECT_NAME_STRING, const char *classname = "TQObject",
const TQStringList & args = TQStringList()); const TQStringList & args = TQStringList());
private: private:

@ -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());
} }

@ -34,7 +34,7 @@ class DOCConverter;
class ConverterDlg : public KDialogBase class ConverterDlg : public KDialogBase
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -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;

@ -36,7 +36,7 @@ class PilotMemo;
class KNotesAction : public ConduitAction class KNotesAction : public ConduitAction
{ {
Q_OBJECT TQ_OBJECT
public: public:
KNotesAction( KNotesAction(

@ -36,7 +36,7 @@ class TDEAboutData;
class KNotesConduitFactory : public KLibFactory class KNotesConduitFactory : public KLibFactory
{ {
Q_OBJECT TQ_OBJECT
public: public:
@ -53,7 +53,7 @@ public:
protected: protected:
virtual TQObject* createObject( TQObject* parent = 0, virtual TQObject* createObject( TQObject* parent = 0,
const char* name = 0, const char* name = 0,
const char* classname = TQOBJECT_OBJECT_NAME_STRING, const char* classname = "TQObject",
const TQStringList &args = TQStringList() ); const TQStringList &args = TQStringList() );
private: private:
TDEInstance *fInstance; TDEInstance *fInstance;

@ -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");
} }

@ -37,7 +37,7 @@
class MALConduit : public ConduitAction class MALConduit : public ConduitAction
{ {
Q_OBJECT TQ_OBJECT
public: public:
MALConduit( MALConduit(

@ -39,7 +39,7 @@ class TDEAboutData;
class MALConduitFactory : public KLibFactory class MALConduitFactory : public KLibFactory
{ {
Q_OBJECT TQ_OBJECT
public: public:
@ -51,7 +51,7 @@ public:
protected: protected:
virtual TQObject* createObject( TQObject* parent = 0, virtual TQObject* createObject( TQObject* parent = 0,
const char* name = 0, const char* name = 0,
const char* classname = TQOBJECT_OBJECT_NAME_STRING, const char* classname = "TQObject",
const TQStringList &args = TQStringList() ); const TQStringList &args = TQStringList() );
private: private:
TDEInstance *fInstance; TDEInstance *fInstance;

@ -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
} }

@ -39,7 +39,7 @@ class MALWidget;
class MALWidgetSetup : public ConduitConfigBase class MALWidgetSetup : public ConduitConfigBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
MALWidgetSetup(TQWidget *,const char *); MALWidgetSetup(TQWidget *,const char *);

@ -36,7 +36,7 @@ class PilotMemo;
class MemofileConduit : public ConduitAction class MemofileConduit : public ConduitAction
{ {
Q_OBJECT TQ_OBJECT
public: public:
MemofileConduit(KPilotLink *, MemofileConduit(KPilotLink *,

@ -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()));
} }

@ -34,7 +34,7 @@
<UML:Operation visibility="protected" xmi.id="28" type="void" name="process" /> <UML:Operation visibility="protected" xmi.id="28" type="void" name="process" />
<UML:Operation visibility="private" xmi.id="43" type="bool" name="readConfig" /> <UML:Operation visibility="private" xmi.id="43" type="bool" name="readConfig" />
<UML:Operation visibility="private" xmi.id="44" type="void" name="getAppInfo" /> <UML:Operation visibility="private" xmi.id="44" type="void" name="getAppInfo" />
<UML:Operation visibility="private" xmi.id="45" type=TQSTRING_OBJECT_NAME_STRING name="getCategoryName" > <UML:Operation visibility="private" xmi.id="45" type="TQString" name="getCategoryName" >
<UML:Parameter visibility="public" xmi.id="46" value="" type="int" name="category" /> <UML:Parameter visibility="public" xmi.id="46" value="" type="int" name="category" />
</UML:Operation> </UML:Operation>
<UML:Operation visibility="private" xmi.id="47" type="bool" name="initializeFromPilot" /> <UML:Operation visibility="private" xmi.id="47" type="bool" name="initializeFromPilot" />
@ -43,7 +43,7 @@
<UML:Operation visibility="private" xmi.id="50" type="bool" name="initializeFromFilesystem" /> <UML:Operation visibility="private" xmi.id="50" type="bool" name="initializeFromFilesystem" />
<UML:Operation visibility="private" xmi.id="51" type="bool" name="initializeMemofileList" /> <UML:Operation visibility="private" xmi.id="51" type="bool" name="initializeMemofileList" />
<UML:Operation visibility="private" xmi.id="52" type="bool" name="checkDirectory" > <UML:Operation visibility="private" xmi.id="52" type="bool" name="checkDirectory" >
<UML:Parameter visibility="public" xmi.id="53" value="" type=TQSTRING_OBJECT_NAME_STRING name="dir" /> <UML:Parameter visibility="public" xmi.id="53" value="" type="TQString" name="dir" />
</UML:Operation> </UML:Operation>
<UML:Operation visibility="private" xmi.id="54" type="bool" name="ensureFilesystemReady" /> <UML:Operation visibility="private" xmi.id="54" type="bool" name="ensureFilesystemReady" />
<UML:Operation visibility="private" xmi.id="55" type="bool" name="copyHHToPC" /> <UML:Operation visibility="private" xmi.id="55" type="bool" name="copyHHToPC" />
@ -51,11 +51,11 @@
<UML:Operation visibility="private" xmi.id="57" type="bool" name="saveMemoInfoToFilesystem" /> <UML:Operation visibility="private" xmi.id="57" type="bool" name="saveMemoInfoToFilesystem" />
<UML:Operation visibility="private" xmi.id="58" type="bool" name="saveMemosToFilesystem" /> <UML:Operation visibility="private" xmi.id="58" type="bool" name="saveMemosToFilesystem" />
<UML:Operation visibility="private" xmi.id="59" type="bool" name="saveAsText" > <UML:Operation visibility="private" xmi.id="59" type="bool" name="saveAsText" >
<UML:Parameter visibility="public" xmi.id="60" value="" type="const QString&amp;" name="fileName" /> <UML:Parameter visibility="public" xmi.id="60" value="" type="const TQString&amp;" name="fileName" />
<UML:Parameter visibility="public" xmi.id="61" value="" type="Memofile*" name="theMemo" /> <UML:Parameter visibility="public" xmi.id="61" value="" type="Memofile*" name="theMemo" />
</UML:Operation> </UML:Operation>
<UML:Attribute visibility="private" xmi.id="29" value="" type=TQSTRING_OBJECT_NAME_STRING name="_DEFAULT_MEMODIR" /> <UML:Attribute visibility="private" xmi.id="29" value="" type="TQString" name="_DEFAULT_MEMODIR" />
<UML:Attribute visibility="private" xmi.id="30" value="" type=TQSTRING_OBJECT_NAME_STRING name="_memo_directory" /> <UML:Attribute visibility="private" xmi.id="30" value="" type="TQString" name="_memo_directory" />
<UML:Attribute visibility="private" xmi.id="31" value="" type="bool" name="_sync_private" /> <UML:Attribute visibility="private" xmi.id="31" value="" type="bool" name="_sync_private" />
<UML:Attribute visibility="private" xmi.id="32" value="" type="QPtrList&lt; PilotMemo >" name="fMemoList" /> <UML:Attribute visibility="private" xmi.id="32" value="" type="QPtrList&lt; PilotMemo >" name="fMemoList" />
<UML:Attribute visibility="private" xmi.id="33" value="" type="struct MemoAppInfo" name="fMemoAppInfo" /> <UML:Attribute visibility="private" xmi.id="33" value="" type="struct MemoAppInfo" name="fMemoAppInfo" />
@ -79,7 +79,7 @@
<UML:Class visibility="public" xmi.id="63" name="Memofiles" > <UML:Class visibility="public" xmi.id="63" name="Memofiles" >
<UML:Operation visibility="public" xmi.id="80" type="Memofiles" name="Memofiles" > <UML:Operation visibility="public" xmi.id="80" type="Memofiles" name="Memofiles" >
<UML:Parameter visibility="public" xmi.id="81" value="" type="QMap" name="categories" /> <UML:Parameter visibility="public" xmi.id="81" value="" type="QMap" name="categories" />
<UML:Parameter visibility="public" xmi.id="82" value="" type=TQSTRING_OBJECT_NAME_STRING name="baseDirectory" /> <UML:Parameter visibility="public" xmi.id="82" value="" type="TQString" name="baseDirectory" />
</UML:Operation> </UML:Operation>
<UML:Operation visibility="public" xmi.id="87" type="void" name="load" > <UML:Operation visibility="public" xmi.id="87" type="void" name="load" >
<UML:Parameter visibility="public" xmi.id="88" value="" type="bool" name="loadAll" /> <UML:Parameter visibility="public" xmi.id="88" value="" type="bool" name="loadAll" />
@ -93,38 +93,38 @@
<UML:Operation visibility="private" xmi.id="97" type="void" name="ensureDirectoryReady" /> <UML:Operation visibility="private" xmi.id="97" type="void" name="ensureDirectoryReady" />
<UML:Operation visibility="public" xmi.id="98" type="void" name="loadIds" /> <UML:Operation visibility="public" xmi.id="98" type="void" name="loadIds" />
<UML:Operation visibility="public" xmi.id="99" type="Memofile" name="find" > <UML:Operation visibility="public" xmi.id="99" type="Memofile" name="find" >
<UML:Parameter visibility="public" xmi.id="100" value="" type=TQSTRING_OBJECT_NAME_STRING name="category" /> <UML:Parameter visibility="public" xmi.id="100" value="" type="TQString" name="category" />
<UML:Parameter visibility="public" xmi.id="101" value="" type=TQSTRING_OBJECT_NAME_STRING name="filename" /> <UML:Parameter visibility="public" xmi.id="101" value="" type="TQString" name="filename" />
</UML:Operation> </UML:Operation>
<UML:Operation visibility="public" xmi.id="102" type="void" name="addModified" > <UML:Operation visibility="public" xmi.id="102" type="void" name="addModified" >
<UML:Parameter visibility="public" xmi.id="103" value="" type="PilotMemo *" name="memo" /> <UML:Parameter visibility="public" xmi.id="103" value="" type="PilotMemo *" name="memo" />
</UML:Operation> </UML:Operation>
<UML:Operation visibility="public" xmi.id="104" type="QPtrList&lt;Memofile>" name="getModified" /> <UML:Operation visibility="public" xmi.id="104" type="QPtrList&lt;Memofile>" name="getModified" />
<UML:Attribute visibility="private" xmi.id="83" value="" type="QMap" name="_categories" /> <UML:Attribute visibility="private" xmi.id="83" value="" type="QMap" name="_categories" />
<UML:Attribute visibility="private" xmi.id="85" value="" type=TQSTRING_OBJECT_NAME_STRING name="_baseDirectory" /> <UML:Attribute visibility="private" xmi.id="85" value="" type="TQString" name="_baseDirectory" />
<UML:Attribute visibility="private" xmi.id="93" value="" type="QPtrList&lt;Memofile>" name="_memofiles" /> <UML:Attribute visibility="private" xmi.id="93" value="" type="QPtrList&lt;Memofile>" name="_memofiles" />
</UML:Class> </UML:Class>
<UML:Class visibility="public" xmi.id="64" name="Memofile" > <UML:Class visibility="public" xmi.id="64" name="Memofile" >
<UML:Operation visibility="public" xmi.id="65" type="" name="Memofile" > <UML:Operation visibility="public" xmi.id="65" type="" name="Memofile" >
<UML:Parameter visibility="public" xmi.id="66" value="" type="PilotMemo*" name="memo" /> <UML:Parameter visibility="public" xmi.id="66" value="" type="PilotMemo*" name="memo" />
<UML:Parameter visibility="public" xmi.id="67" value="" type=TQSTRING_OBJECT_NAME_STRING name="categoryName" /> <UML:Parameter visibility="public" xmi.id="67" value="" type="TQString" name="categoryName" />
</UML:Operation> </UML:Operation>
<UML:Operation visibility="public" xmi.id="68" type="" name="Memofile" > <UML:Operation visibility="public" xmi.id="68" type="" name="Memofile" >
<UML:Parameter visibility="public" xmi.id="69" value="" type="recordid_t" name="id" /> <UML:Parameter visibility="public" xmi.id="69" value="" type="recordid_t" name="id" />
<UML:Parameter visibility="public" xmi.id="70" value="" type="int" name="category" /> <UML:Parameter visibility="public" xmi.id="70" value="" type="int" name="category" />
<UML:Parameter visibility="public" xmi.id="71" value="" type=TQSTRING_OBJECT_NAME_STRING name="categoryName" /> <UML:Parameter visibility="public" xmi.id="71" value="" type="TQString" name="categoryName" />
<UML:Parameter visibility="public" xmi.id="72" value="" type="uint" name="lastModifiedTime" /> <UML:Parameter visibility="public" xmi.id="72" value="" type="uint" name="lastModifiedTime" />
<UML:Parameter visibility="public" xmi.id="73" value="" type=TQSTRING_OBJECT_NAME_STRING name="filename" /> <UML:Parameter visibility="public" xmi.id="73" value="" type="TQString" name="filename" />
<UML:Parameter visibility="public" xmi.id="74" value="" type=TQSTRING_OBJECT_NAME_STRING name="text" /> <UML:Parameter visibility="public" xmi.id="74" value="" type="TQString" name="text" />
</UML:Operation> </UML:Operation>
<UML:Operation visibility="public" xmi.id="75" type="uint" name="lastModified" /> <UML:Operation visibility="public" xmi.id="75" type="uint" name="lastModified" />
<UML:Operation visibility="public" xmi.id="76" type=TQSTRING_OBJECT_NAME_STRING name="filename" /> <UML:Operation visibility="public" xmi.id="76" type="TQString" name="filename" />
<UML:Attribute visibility="private" xmi.id="77" value="" type="uint" name="_lastModified" /> <UML:Attribute visibility="private" xmi.id="77" value="" type="uint" name="_lastModified" />
<UML:Attribute visibility="private" xmi.id="78" value="" type=TQSTRING_OBJECT_NAME_STRING name="_categoryName" /> <UML:Attribute visibility="private" xmi.id="78" value="" type="TQString" name="_categoryName" />
<UML:Attribute visibility="private" xmi.id="79" value="" type=TQSTRING_OBJECT_NAME_STRING name="_filename" /> <UML:Attribute visibility="private" xmi.id="79" value="" type="TQString" name="_filename" />
</UML:Class> </UML:Class>
<UML:DataType stereotype="3" visibility="public" xmi.id="84" name="QMap" /> <UML:DataType stereotype="3" visibility="public" xmi.id="84" name="QMap" />
<UML:DataType stereotype="3" visibility="public" xmi.id="86" name=TQSTRING_OBJECT_NAME_STRING /> <UML:DataType stereotype="3" visibility="public" xmi.id="86" name="TQString" />
<UML:DataType stereotype="3" visibility="public" xmi.id="94" name="QPtrList&lt;Memofile>" /> <UML:DataType stereotype="3" visibility="public" xmi.id="94" name="QPtrList&lt;Memofile>" />
<UML:Association visibility="public" xmi.id="36" > <UML:Association visibility="public" xmi.id="36" >
<UML:Association.connection> <UML:Association.connection>

@ -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)));
} }

@ -39,7 +39,7 @@ class PopMailWidget; // From setup-dialog.ui
class PopMailWidgetConfig : public ConduitConfigBase class PopMailWidgetConfig : public ConduitConfigBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
PopMailWidgetConfig(TQWidget *, const char *); PopMailWidgetConfig(TQWidget *, const char *);

@ -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()

@ -147,8 +147,8 @@
<tbody> <tbody>
<tr><td><b>Operating System:</b></td><td>#os#</td></tr> <tr><td><b>Operating System:</b></td><td>#os#</td></tr>
<tr><td><b>Hostname:</b></td><td>#hostname#</td></tr> <tr><td><b>Hostname:</b></td><td>#hostname#</td></tr>
<tr><td><b>TQt Version:</b></td><td>#qt#</td></tr> <tr><td><b>TQt Version:</b></td><td>#tqt#</td></tr>
<tr><td><b>KDE Libraries Version:</b></td><td>#kde#</td></tr> <tr><td><b>TDE Libraries Version:</b></td><td>#tde#</td></tr>
<tr><td><b>KPilot Version:</b></td><td>#kpilot#</td></tr> <tr><td><b>KPilot Version:</b></td><td>#kpilot#</td></tr>
<tr><td><b>Pilot-Link Version:</b></td><td>#pilotlink#</td></tr> <tr><td><b>Pilot-Link Version:</b></td><td>#pilotlink#</td></tr>
</tbody> </tbody>

@ -55,8 +55,8 @@ KPilot System Information Page
-) Version Information (Desktop) -) Version Information (Desktop)
Operating System: #os# Operating System: #os#
Hostname: #hostname# Hostname: #hostname#
Qt Version: #qt# TQt Version: #tqt#
KDE Version: #kde# TDE Version: #tde#
KPilot Version: #kpilot# KPilot Version: #kpilot#
Pilot-Link Version: #pilotlink# Pilot-Link Version: #pilotlink#
#endifpcversion#--> #endifpcversion#-->

@ -107,8 +107,8 @@ const TQString SysInfoConduit::defaultpage = CSL1("KPilot System Information Pag
"-) Version Information (Desktop)\n" "-) Version Information (Desktop)\n"
" Operating System: #os#\n" " Operating System: #os#\n"
" Hostname: #hostname#\n" " Hostname: #hostname#\n"
" TQt Version: #qt#\n" " TQt Version: #tqt#\n"
" KDE Version: #kde#\n" " TDE Version: #tde#\n"
" KPilot Version: #kpilot#\n" " KPilot Version: #kpilot#\n"
" Pilot-Link Version: #pilotlink#\n" " Pilot-Link Version: #pilotlink#\n"
"#endifpcversion#-->\n" "#endifpcversion#-->\n"
@ -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()
@ -379,14 +379,14 @@ void SysInfoConduit::syncInfo()
time_t lastsync = user.getLastSyncDate(); time_t lastsync = user.getLastSyncDate();
TQDateTime qlastsync; TQDateTime qlastsync;
qlastsync.setTime_t(lastsync); qlastsync.setTime_t(lastsync);
fValues[CSL1("lastsync")] = qlastsync.toString(Qt::LocalDate); fValues[CSL1("lastsync")] = qlastsync.toString(TQt::LocalDate);
lastsync = user.getLastSuccessfulSyncDate(); lastsync = user.getLastSuccessfulSyncDate();
qlastsync.setTime_t(lastsync); qlastsync.setTime_t(lastsync);
fValues[CSL1("lastsuccsync")] = qlastsync.toString(Qt::LocalDate); fValues[CSL1("lastsuccsync")] = qlastsync.toString(TQt::LocalDate);
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()
@ -395,14 +395,14 @@ void SysInfoConduit::pcVersionInfo()
if (fKDEVersion) { if (fKDEVersion) {
/* Retrieve values for /* Retrieve values for
* - #os# * - #os#
* - #qt# * - #tqt#
* - #kde# * - #tde#
* - #kpilot# * - #kpilot#
* - #pilotlink# * - #pilotlink#
*/ */
fValues[CSL1("kpilot")] = TQString::fromLatin1(KPILOT_VERSION); fValues[CSL1("kpilot")] = TQString::fromLatin1(KPILOT_VERSION);
fValues[CSL1("kde")] = i18n("unknown"); fValues[CSL1("tde")] = i18n("unknown");
fValues[CSL1("qt")] = i18n("unknown"); fValues[CSL1("tqt")] = i18n("unknown");
fValues[CSL1("os")] = i18n("unknown"); fValues[CSL1("os")] = i18n("unknown");
fValues[CSL1("hostname")] = i18n("unknown"); fValues[CSL1("hostname")] = i18n("unknown");
struct utsname name; struct utsname name;
@ -414,10 +414,10 @@ void SysInfoConduit::pcVersionInfo()
fValues[CSL1("hostname")] = CSL1("%2").arg(TQString::fromLatin1(name.nodename)); fValues[CSL1("hostname")] = CSL1("%2").arg(TQString::fromLatin1(name.nodename));
} }
#ifdef TDE_VERSION_STRING #ifdef TDE_VERSION_STRING
fValues[CSL1("kde")] = TQString::fromLatin1(TDE_VERSION_STRING); fValues[CSL1("tde")] = TQString::fromLatin1(TDE_VERSION_STRING);
#endif #endif
#ifdef TQT_VERSION_STR #ifdef TQT_VERSION_STR
fValues[CSL1("qt")] = TQString::fromLatin1(TQT_VERSION_STR); fValues[CSL1("tqt")] = TQString::fromLatin1(TQT_VERSION_STR);
#endif #endif
fValues[CSL1("pilotlink")] = CSL1("%1.%2.%3%4") fValues[CSL1("pilotlink")] = CSL1("%1.%2.%3%4")
.arg(PILOT_LINK_VERSION) .arg(PILOT_LINK_VERSION)
@ -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,14 +463,14 @@ 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()
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
fValues[CSL1("date")] = TQDateTime::currentDateTime().toString(Qt::LocalDate); fValues[CSL1("date")] = TQDateTime::currentDateTime().toString(TQt::LocalDate);
TQString output; TQString output;
// Open the template file // Open the template file
@ -563,11 +563,11 @@ void SysInfoConduit::writeFile()
newpatt.replace(CSL1("%6"), TQString::number(dbi.version)); newpatt.replace(CSL1("%6"), TQString::number(dbi.version));
TQDateTime tm; TQDateTime tm;
tm.setTime_t(dbi.createDate); tm.setTime_t(dbi.createDate);
newpatt.replace(CSL1("%7"), tm.toString(Qt::LocalDate)); newpatt.replace(CSL1("%7"), tm.toString(TQt::LocalDate));
tm.setTime_t(dbi.modifyDate); tm.setTime_t(dbi.modifyDate);
newpatt.replace(CSL1("%8"), tm.toString(Qt::LocalDate)); newpatt.replace(CSL1("%8"), tm.toString(TQt::LocalDate));
tm.setTime_t(dbi.backupDate); tm.setTime_t(dbi.backupDate);
newpatt.replace(CSL1("%9"), tm.toString(Qt::LocalDate)); newpatt.replace(CSL1("%9"), tm.toString(TQt::LocalDate));
dbstring.append(newpatt); dbstring.append(newpatt);
} }
@ -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()

@ -32,7 +32,7 @@
class SysInfoConduit : public ConduitAction class SysInfoConduit : public ConduitAction
{ {
Q_OBJECT TQ_OBJECT
public: public:
SysInfoConduit( SysInfoConduit(

@ -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");
} }

@ -36,7 +36,7 @@ class TDEAboutData;
class TimeWidgetConfig : public ConduitConfigBase class TimeWidgetConfig : public ConduitConfigBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
TimeWidgetConfig(TQWidget *parent, const char *); TimeWidgetConfig(TQWidget *parent, const char *);

@ -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()));
} }
*/ */

@ -63,7 +63,7 @@ public:
class TodoConduit : public VCalConduitBase class TodoConduit : public VCalConduitBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
TodoConduit(KPilotLink *, TodoConduit(KPilotLink *,

@ -66,7 +66,7 @@ public:
class VCalConduit : public VCalConduitBase class VCalConduit : public VCalConduitBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
VCalConduit(KPilotLink *, VCalConduit(KPilotLink *,

@ -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

@ -74,7 +74,7 @@ public:
class VCalConduitBase : public ConduitAction class VCalConduitBase : public ConduitAction
{ {
Q_OBJECT TQ_OBJECT
public: public:
VCalConduitBase(KPilotLink *, VCalConduitBase(KPilotLink *,

@ -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 *)));
} }

@ -37,7 +37,7 @@ class TQLineEdit;
class AddressEditor : public KDialogBase class AddressEditor : public KDialogBase
{ {
Q_OBJECT TQ_OBJECT

@ -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++;

@ -43,7 +43,7 @@ class PilotDatabase;
class AddressWidget : public PilotComponent class AddressWidget : public PilotComponent
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -72,13 +72,13 @@
extern "C" extern "C"
{ {
KDE_EXPORT TDECModule *create_kpilotconfig( TQWidget *parent, const char * ) TDE_EXPORT TDECModule *create_kpilotconfig( TQWidget *parent, const char * )
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
return new ConduitConfigWidget( parent, "kcmkpilotconfig" ); return new ConduitConfigWidget( parent, "kcmkpilotconfig" );
} }
KDE_EXPORT ConfigWizard *create_wizard(TQWidget *parent, int m) TDE_EXPORT ConfigWizard *create_wizard(TQWidget *parent, int m)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
return new ConfigWizard(parent,"Wizard", m); return new ConfigWizard(parent,"Wizard", m);
@ -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);
@ -596,7 +596,7 @@ void ConduitConfigWidget::loadAndConfigure(TQListViewItem *p) // ,bool exec)
TQStringList a; TQStringList a;
a.append(CSL1("modal")); a.append(CSL1("modal"));
o = f->create(TQT_TQOBJECT(fStack), 0L, "ConduitConfigBase", a); o = f->create(fStack, 0L, "ConduitConfigBase", a);
if (!o) if (!o)
{ {
@ -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;
} }
} }

@ -44,7 +44,7 @@ class ConduitConfig;
class ConduitConfigWidgetBase : public TDECModule class ConduitConfigWidgetBase : public TDECModule
{ {
Q_OBJECT TQ_OBJECT
public: public:
ConduitConfigWidgetBase(TQWidget *p=0L,const char *n=0L); ConduitConfigWidgetBase(TQWidget *p=0L,const char *n=0L);
@ -59,7 +59,7 @@ public:
class ConduitConfigWidget : public ConduitConfigWidgetBase class ConduitConfigWidget : public ConduitConfigWidgetBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
ConduitConfigWidget(TQWidget *, ConduitConfigWidget(TQWidget *,

@ -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()

@ -38,7 +38,7 @@ class TDEListView;
class DatebookWidget : public PilotComponent class DatebookWidget : public PilotComponent
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -34,7 +34,7 @@ class TQWidget;
class DBAppInfoEditor : public KDialogBase class DBAppInfoEditor : public KDialogBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
DBAppInfoEditor(char*appInfoData, int l, TQWidget *parent = 0); DBAppInfoEditor(char*appInfoData, int l, TQWidget *parent = 0);

@ -37,7 +37,7 @@ struct DBInfo;
*/ */
class DBFlagsEditor : public KDialogBase class DBFlagsEditor : public KDialogBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
DBFlagsEditor(DBInfo*dbinfo=0L, TQWidget *parent = 0); DBFlagsEditor(DBInfo*dbinfo=0L, TQWidget *parent = 0);

@ -140,7 +140,7 @@ void DBRecordEditor::initWidgets()
fFlagsGroup = new TQButtonGroup( fWidget, "fFlagsGroup" ); fFlagsGroup = new TQButtonGroup( fWidget, "fFlagsGroup" );
fFlagsGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, fFlagsGroup->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5,
(TQSizePolicy::SizeType)4, 0, 0, fFlagsGroup->sizePolicy().hasHeightForWidth() ) ); (TQSizePolicy::SizeType)4, 0, 0, fFlagsGroup->sizePolicy().hasHeightForWidth() ) );
fFlagsGroup->setColumnLayout(0, Qt::Vertical ); fFlagsGroup->setColumnLayout(0, TQt::Vertical );
fFlagsGroup->layout()->setSpacing( 6 ); fFlagsGroup->layout()->setSpacing( 6 );
fFlagsGroup->layout()->setMargin( 11 ); fFlagsGroup->layout()->setMargin( 11 );
fFlagsGroupLayout = new TQGridLayout( fFlagsGroup->layout() ); fFlagsGroupLayout = new TQGridLayout( fFlagsGroup->layout() );

@ -53,7 +53,7 @@ class PilotRecord;
*/ */
class DBRecordEditor : public KDialogBase class DBRecordEditor : public KDialogBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
DBRecordEditor(PilotRecord*r=0L, int n=-1, TQWidget *parent = 0); DBRecordEditor(PilotRecord*r=0L, int n=-1, TQWidget *parent = 0);

@ -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()

@ -36,7 +36,7 @@ class KPilotDBSelectionWidget;
class KPilotDBSelectionDialog : public KDialogBase class KPilotDBSelectionDialog : public KDialogBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
KPilotDBSelectionDialog(TQStringList &selectedDBs, TQStringList &deviceDBs, KPilotDBSelectionDialog(TQStringList &selectedDBs, TQStringList &deviceDBs,

@ -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*)));
} }

@ -42,7 +42,7 @@ class TDEListView;
class GenericDBWidget : public PilotComponent class GenericDBWidget : public PilotComponent
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -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()));
} }
@ -145,7 +145,7 @@ bool FileInstallWidget::eventFilter(TQObject *watched, TQEvent *event)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
if(TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(fIconView->viewport())) if(watched == fIconView->viewport())
{ {
if(event->type() == TQEvent::DragEnter) { if(event->type() == TQEvent::DragEnter) {
dragEnterEvent(static_cast<TQDragEnterEvent*>(event)); dragEnterEvent(static_cast<TQDragEnterEvent*>(event));
@ -159,7 +159,7 @@ bool FileInstallWidget::eventFilter(TQObject *watched, TQEvent *event)
} }
if(event->type() == TQEvent::MouseButtonPress) { if(event->type() == TQEvent::MouseButtonPress) {
contextMenu(TQT_TQMOUSEEVENT(event)); contextMenu(static_cast<TQMouseEvent*>(event));
} }
} }
@ -272,7 +272,7 @@ void FileInstallWidget::contextMenu(TQMouseEvent *event)
{ {
FUNCTIONSETUP; FUNCTIONSETUP;
if(event->button() == Qt::LeftButton) if(event->button() == TQt::LeftButton)
return; return;
TQIconViewItem *item; TQIconViewItem *item;

@ -44,7 +44,7 @@ class FileInstaller;
class FileInstallWidget : public PilotComponent class FileInstallWidget : public PilotComponent
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -41,7 +41,7 @@ class TQString;
class FileInstaller : public TQObject class FileInstaller : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
FileInstaller(); FileInstaller();

@ -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;

@ -51,7 +51,7 @@ protected:
class BackupAction : public SyncAction class BackupAction : public SyncAction
{ {
Q_OBJECT TQ_OBJECT
public: public:
@ -117,7 +117,7 @@ private:
class FileInstallAction : public SyncAction class FileInstallAction : public SyncAction
{ {
Q_OBJECT TQ_OBJECT
public: public:
FileInstallAction(KPilotLink *, FileInstallAction(KPilotLink *,
@ -145,7 +145,7 @@ private:
class RestoreAction : public SyncAction class RestoreAction : public SyncAction
{ {
Q_OBJECT TQ_OBJECT
public: public:
RestoreAction(KPilotLink *,TQWidget *w=0L); RestoreAction(KPilotLink *,TQWidget *w=0L);

@ -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()

@ -35,7 +35,7 @@
class InternalEditorAction : public SyncAction class InternalEditorAction : public SyncAction
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -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* ) ),
TQT_TQOBJECT(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()),
TQT_TQOBJECT(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,
TQT_TQOBJECT(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,
TQT_TQOBJECT(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,
TQT_TQOBJECT(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,
TQT_TQOBJECT(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,
TQT_TQOBJECT(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,
TQT_TQOBJECT(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,
TQT_TQOBJECT(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(TQT_TQOBJECT(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(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureKeys()), (void) KStdAction::keyBindings(this, TQ_SLOT(optionsConfigureKeys()),
actionCollection()); actionCollection());
(void) KStdAction::configureToolbars(TQT_TQOBJECT(this), TQT_SLOT(optionsConfigureToolbars()), (void) KStdAction::configureToolbars(this, TQ_SLOT(optionsConfigureToolbars()),
actionCollection()); actionCollection());
(void) KStdAction::preferences(TQT_TQOBJECT(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,
TQT_TQOBJECT(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,
TQT_TQOBJECT(p), TQT_SLOT(slotShowComponent()), p, TQ_SLOT(slotShowComponent()),
actionCollection(), actionname); actionCollection(), actionname);
pt->setExclusiveGroup(CSL1("view_menu")); pt->setExclusiveGroup(CSL1("view_menu"));
connect(TQT_TQOBJECT(p), TQT_SIGNAL(showComponent(PilotComponent *)), connect(p, TQ_SIGNAL(showComponent(PilotComponent *)),
TQT_TQOBJECT(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()), TQT_TQOBJECT(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"));

@ -49,7 +49,7 @@ class LogWidget;
class KPilotInstaller : public TDEMainWindow, public KPilotDCOP class KPilotInstaller : public TDEMainWindow, public KPilotDCOP
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -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");

@ -52,7 +52,7 @@ protected:
class DeviceConfigPage : public ConfigPage class DeviceConfigPage : public ConfigPage
{ {
Q_OBJECT TQ_OBJECT
public: public:
DeviceConfigPage( TQWidget *, const char * ); DeviceConfigPage( TQWidget *, const char * );
@ -75,7 +75,7 @@ private:
} ; } ;
class KDE_EXPORT SyncConfigPage : public ConfigPage class TDE_EXPORT SyncConfigPage : public ConfigPage
{ {
public: public:
SyncConfigPage( TQWidget *, const char * ); SyncConfigPage( TQWidget *, const char * );
@ -90,7 +90,7 @@ private:
class BackupConfigPage : public ConfigPage class BackupConfigPage : public ConfigPage
{ {
Q_OBJECT TQ_OBJECT
public: public:
BackupConfigPage( TQWidget *, const char * ); BackupConfigPage( TQWidget *, const char * );

@ -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() );

@ -36,7 +36,7 @@ class ConfigWizard_base3;
class ConfigWizard : public KWizard class ConfigWizard : public KWizard
{ {
Q_OBJECT TQ_OBJECT
public: public:
enum Mode { InDialog=0, Standalone=1 } ; enum Mode { InDialog=0, Standalone=1 } ;

@ -98,7 +98,7 @@ ProbeDialog::ProbeDialog(TQWidget *parent, const char *n) :
fInfoText->setAlignment( TQLabel::WordBreak ); fInfoText->setAlignment( TQLabel::WordBreak );
fStatusGroup = new TQGroupBox( i18n("Status"), mainWidget, "fStatusGroup" ); fStatusGroup = new TQGroupBox( i18n("Status"), mainWidget, "fStatusGroup" );
fStatusGroup->setColumnLayout(0, Qt::Vertical ); fStatusGroup->setColumnLayout(0, TQt::Vertical );
fStatusGroupLayout = new TQGridLayout( fStatusGroup->layout() ); fStatusGroupLayout = new TQGridLayout( fStatusGroup->layout() );
fStatus = new TQLabel( i18n("Autodetection not yet started..."), fStatusGroup, "fStatus" ); fStatus = new TQLabel( i18n("Autodetection not yet started..."), fStatusGroup, "fStatus" );
@ -112,7 +112,7 @@ ProbeDialog::ProbeDialog(TQWidget *parent, const char *n) :
fResultsGroup = new TQGroupBox( i18n( "Detected Values" ), mainWidget, "fResultsGroup" ); fResultsGroup = new TQGroupBox( i18n( "Detected Values" ), mainWidget, "fResultsGroup" );
fResultsGroup->setEnabled( FALSE ); fResultsGroup->setEnabled( FALSE );
fResultsGroup->setColumnLayout(0, Qt::Vertical ); fResultsGroup->setColumnLayout(0, TQt::Vertical );
fResultsGroupLayout = new TQGridLayout( fResultsGroup->layout() ); fResultsGroupLayout = new TQGridLayout( fResultsGroup->layout() );
fResultsGroupLayout->setAlignment( TQt::AlignTop ); fResultsGroupLayout->setAlignment( TQt::AlignTop );
@ -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()
{ {

@ -45,7 +45,7 @@ typedef TQMap<TQString, KPilotDeviceLink*> PilotLinkMap;
class ProbeDialog : public KDialogBase class ProbeDialog : public KDialogBase
{ {
Q_OBJECT TQ_OBJECT
public: public:
ProbeDialog(TQWidget *p=0L,const char *n=0L); ProbeDialog(TQWidget *p=0L,const char *n=0L);

@ -63,7 +63,7 @@ class TQStringList;
class ListCategorizer : public TDEListView class ListCategorizer : public TDEListView
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -68,7 +68,7 @@ LogFile::LogFile() : DCOPObject("LogIface"), TQObject(), fOutfile(0L), fSyncing(
} }
fSyncing = true; fSyncing = true;
fLogStream.setDevice(TQT_TQIODEVICE(fOutfile)); fLogStream.setDevice(fOutfile);
fLogStream<<(CSL1("KPilot HotSync log, %1").arg(TQDateTime::currentDateTime().toString()))<<endl<<endl<<endl; fLogStream<<(CSL1("KPilot HotSync log, %1").arg(TQDateTime::currentDateTime().toString()))<<endl<<endl<<endl;
fLogStream<<(CSL1("Version: KPilot %1").arg(TQString::fromLatin1(KPILOT_VERSION)))<<endl; fLogStream<<(CSL1("Version: KPilot %1").arg(TQString::fromLatin1(KPILOT_VERSION)))<<endl;

@ -38,7 +38,7 @@ class TQTextStream;
class LogFile : public TQObject, public LoggerDCOP class LogFile : public TQObject, public LoggerDCOP
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -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);

@ -39,7 +39,7 @@ class KProgress;
class LogWidget : public PilotComponent , public LoggerDCOP class LogWidget : public PilotComponent , public LoggerDCOP
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -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."));
} }

@ -41,7 +41,7 @@ class PilotListItem;
class MemoWidget : public PilotComponent class MemoWidget : public PilotComponent
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -40,7 +40,7 @@ class TQString;
class PilotComponent : public TQWidget class PilotComponent : public TQWidget
{ {
Q_OBJECT TQ_OBJECT
friend class KPilotInstaller; friend class KPilotInstaller;

@ -119,14 +119,14 @@ PilotDaemonTray::PilotDaemonTray(PilotDaemon * p) :
switch (e->button()) switch (e->button())
{ {
case Qt::RightButton: case TQt::RightButton:
{ {
TDEPopupMenu *menu = contextMenu(); TDEPopupMenu *menu = contextMenu();
contextMenuAboutToShow(menu); contextMenuAboutToShow(menu);
menu->popup(e->globalPos()); menu->popup(e->globalPos());
} }
break; break;
case Qt::LeftButton: case TQt::LeftButton:
if (daemon) daemon->slotRunKPilot(); if (daemon) daemon->slotRunKPilot();
break; break;
default: default:
@ -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;

@ -53,7 +53,7 @@ class KPilotDeviceLink;
class PilotDaemonTray : public KSystemTray class PilotDaemonTray : public KSystemTray
{ {
Q_OBJECT TQ_OBJECT
friend class PilotDaemon; friend class PilotDaemon;
@ -84,7 +84,7 @@ protected slots:
void slotShowNotListening(); void slotShowNotListening();
void slotBusyTimer(); void slotBusyTimer();
// "Regular" QT actions // "Regular" TQt actions
// //
// //
virtual void mousePressEvent(TQMouseEvent* e); virtual void mousePressEvent(TQMouseEvent* e);
@ -127,7 +127,7 @@ private:
class PilotDaemon : public TQObject, virtual public PilotDaemonDCOP class PilotDaemon : public TQObject, virtual public PilotDaemonDCOP
{ {
Q_OBJECT TQ_OBJECT
// The tray must be our friend so that we can let it stop the daemon. // The tray must be our friend so that we can let it stop the daemon.

@ -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 *)));
} }

@ -42,7 +42,7 @@ class TodoEditorBase;
class TodoEditor : public KDialogBase class TodoEditor : public KDialogBase
{ {
Q_OBJECT TQ_OBJECT

@ -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++;

@ -40,7 +40,7 @@ class TQTextView;
class TodoListView : public TDEListView class TodoListView : public TDEListView
{ {
Q_OBJECT TQ_OBJECT
public: public:
TodoListView(TQWidget * parent = 0, const char * name = 0 ):TDEListView(parent, name){}; TodoListView(TQWidget * parent = 0, const char * name = 0 ):TDEListView(parent, name){};
@ -66,7 +66,7 @@ public:
class TodoWidget : public PilotComponent class TodoWidget : public PilotComponent
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -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()));
} }

@ -54,9 +54,9 @@
* actions in the queue in sequence. * actions in the queue in sequence.
* *
*/ */
class KDE_EXPORT ActionQueue : public SyncAction class TDE_EXPORT ActionQueue : public SyncAction
{ {
Q_OBJECT TQ_OBJECT
public: public:
/** /**

@ -42,7 +42,7 @@
* It is added automatically to a ActionQueue by queueInit() in order * It is added automatically to a ActionQueue by queueInit() in order
* to inform the user of the sync. * to inform the user of the sync.
*/ */
class KDE_EXPORT WelcomeAction : public SyncAction class TDE_EXPORT WelcomeAction : public SyncAction
{ {
public: public:
/** Constructor. */ /** Constructor. */
@ -58,7 +58,7 @@ protected:
* in cases when the hotsync starts while KPilot is busy configuring * in cases when the hotsync starts while KPilot is busy configuring
* something and can't be interrupted. * something and can't be interrupted.
*/ */
class KDE_EXPORT SorryAction : public SyncAction class TDE_EXPORT SorryAction : public SyncAction
{ {
public: public:
/** /**
@ -84,7 +84,7 @@ protected:
* device that the HotSync is over, it should be the last * device that the HotSync is over, it should be the last
* action executed. * action executed.
*/ */
class KDE_EXPORT CleanupAction : public SyncAction class TDE_EXPORT CleanupAction : public SyncAction
{ {
public: public:
/** Constructor. */ /** Constructor. */
@ -100,7 +100,7 @@ protected:
* and not do anything spectacular. It lists all the databases * and not do anything spectacular. It lists all the databases
* on the handheld in the sync log. * on the handheld in the sync log.
*/ */
class KDE_EXPORT TestLink : public SyncAction class TDE_EXPORT TestLink : public SyncAction
{ {
public: public:
/** Constructor. */ /** Constructor. */

@ -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;

@ -69,12 +69,12 @@ enum DeviceCustomEvents {
* handheld devices, which communicate with the PC * handheld devices, which communicate with the PC
* using DLP / SLP via the pilot-link library. * using DLP / SLP via the pilot-link library.
*/ */
class KDE_EXPORT KPilotDeviceLink : public KPilotLink class TDE_EXPORT KPilotDeviceLink : public KPilotLink
{ {
friend class PilotSerialDatabase; friend class PilotSerialDatabase;
friend class DeviceCommThread; friend class DeviceCommThread;
Q_OBJECT TQ_OBJECT
public: public:

@ -215,7 +215,7 @@ class DeviceCommThread : public TQObject, public TQThread
{ {
friend class KPilotDeviceLink; friend class KPilotDeviceLink;
Q_OBJECT TQ_OBJECT
public: public:

@ -168,9 +168,9 @@ class PilotDatabase;
* with a non-zero timeout and that timeout has elapsed. The * with a non-zero timeout and that timeout has elapsed. The
* tickler is stopped before timeout is emitted. * tickler is stopped before timeout is emitted.
*/ */
class KDE_EXPORT KPilotLink : public TQObject class TDE_EXPORT KPilotLink : public TQObject
{ {
Q_OBJECT TQ_OBJECT
friend class SyncAction; friend class SyncAction;
public: public:

@ -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
{ {

@ -40,9 +40,9 @@
* Implementation of the device link for file-system backed (ie. local, fake) * Implementation of the device link for file-system backed (ie. local, fake)
* devices. Uses a directory specified in the reset() call to serve databases. * devices. Uses a directory specified in the reset() call to serve databases.
*/ */
class KDE_EXPORT KPilotLocalLink : public KPilotLink class TDE_EXPORT KPilotLocalLink : public KPilotLink
{ {
Q_OBJECT TQ_OBJECT
public: public:
KPilotLocalLink( TQObject *parent=0L, const char *name=0L ); KPilotLocalLink( TQObject *parent=0L, const char *name=0L );

@ -67,9 +67,9 @@ inline std::ostream& operator <<(std::ostream &o, const TQCString &s)
#define DEBUG (1) #define DEBUG (1)
#endif #endif
extern KDE_EXPORT int debug_level; extern TDE_EXPORT int debug_level;
class KDE_EXPORT KPilotDepthCount class TDE_EXPORT KPilotDepthCount
{ {
public: public:
KPilotDepthCount(int, int level, const char *s); KPilotDepthCount(int, int level, const char *s);
@ -147,12 +147,12 @@ TQString rtExpand(const TQString &s, TQt::TextFormat richText);
/** /**
* Convert a struct tm from the pilot-link package to a TQDateTime * Convert a struct tm from the pilot-link package to a TQDateTime
*/ */
KDE_EXPORT TQDateTime readTm(const struct tm &t); TDE_EXPORT TQDateTime readTm(const struct tm &t);
/** /**
* Convert a TQDateTime to a struct tm for use with the pilot-link package * Convert a TQDateTime to a struct tm for use with the pilot-link package
*/ */
KDE_EXPORT struct tm writeTm(const TQDateTime &dt); TDE_EXPORT struct tm writeTm(const TQDateTime &dt);
KDE_EXPORT struct tm writeTm(const TQDate &dt); TDE_EXPORT struct tm writeTm(const TQDate &dt);
// Some layout macros // Some layout macros

@ -60,7 +60,7 @@ class PilotCategoryInfo; // ... and category information
* as mapping user-visible strings from UTF8 (KDE side) to * as mapping user-visible strings from UTF8 (KDE side) to
* the encoding used on the handheld. * the encoding used on the handheld.
*/ */
namespace Pilot KDE_EXPORT namespace Pilot TDE_EXPORT
{ {
/** Maximum size of an AppInfo block, taken roughly from the pilot-link source. */ /** Maximum size of an AppInfo block, taken roughly from the pilot-link source. */
static const int MAX_APPINFO_SIZE=8192; static const int MAX_APPINFO_SIZE=8192;

@ -59,7 +59,7 @@ typedef PilotAppInfo<
* A phone slot value may be invalid. If so, operations on it will * A phone slot value may be invalid. If so, operations on it will
* fail (yielding invalid again) and isValid() will return @c false. * fail (yielding invalid again) and isValid() will return @c false.
*/ */
class KDE_EXPORT PhoneSlot class TDE_EXPORT PhoneSlot
{ {
friend class PilotAddress; friend class PilotAddress;
protected: protected:
@ -125,7 +125,7 @@ private:
} ; } ;
class KDE_EXPORT PilotAddressInfo : public PilotAddressInfo_ class TDE_EXPORT PilotAddressInfo : public PilotAddressInfo_
{ {
public: public:
PilotAddressInfo(PilotDatabase *d) : PilotAddressInfo_(d) PilotAddressInfo(PilotDatabase *d) : PilotAddressInfo_(d)
@ -187,7 +187,7 @@ public:
* this order is kept. In other languages, main can replaced with * this order is kept. In other languages, main can replaced with
* Corporation. * Corporation.
*/ */
class KDE_EXPORT PilotAddress : public PilotRecordBase class TDE_EXPORT PilotAddress : public PilotRecordBase
{ {
public: public:
PilotAddress(PilotRecord *rec = 0L); PilotAddress(PilotRecord *rec = 0L);

@ -47,7 +47,7 @@
* *
* This class encapsulates the basic category table manipulations. * This class encapsulates the basic category table manipulations.
*/ */
class KDE_EXPORT PilotAppInfoBase class TDE_EXPORT PilotAppInfoBase
{ {
protected: protected:
/** Initialize class members after reading header, to alias data elsewhere. /** Initialize class members after reading header, to alias data elsewhere.

@ -47,7 +47,7 @@
* PilotDatabase methods when finished with them! * PilotDatabase methods when finished with them!
*/ */
class KDE_EXPORT PilotDatabase class TDE_EXPORT PilotDatabase
{ {
public: public:
PilotDatabase(const TQString &name = TQString()); PilotDatabase(const TQString &name = TQString());

@ -174,7 +174,7 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
text += ps; text += ps;
TQDateTime dt(readTm(getEventStart())); TQDateTime dt(readTm(getEventStart()));
TQString startDate(dt.toString(Qt::LocalDate)); TQString startDate(dt.toString(TQt::LocalDate));
text+=par; text+=par;
text+=i18n("Start date: %1").arg(startDate); text+=i18n("Start date: %1").arg(startDate);
text+=ps; text+=ps;
@ -188,7 +188,7 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
else else
{ {
dt=readTm(getEventEnd()); dt=readTm(getEventEnd());
TQString endDate(dt.toString(Qt::LocalDate)); TQString endDate(dt.toString(TQt::LocalDate));
text+=par; text+=par;
text+=i18n("End date: %1").arg(endDate); text+=i18n("End date: %1").arg(endDate);
text+=ps; text+=ps;
@ -237,7 +237,7 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
else else
{ {
dt = readTm(getRepeatEnd()).date(); dt = readTm(getRepeatEnd()).date();
text+=i18n("Until %1").arg(dt.toString(Qt::LocalDate)); text+=i18n("Until %1").arg(dt.toString(TQt::LocalDate));
} }
text+=br; text+=br;
@ -264,7 +264,7 @@ TQString PilotDateEntry::getTextRepresentation(TQt::TextFormat richText)
for (int i = 0; i < getExceptionCount(); i++) for (int i = 0; i < getExceptionCount(); i++)
{ {
TQDate exdt=readTm(getExceptions()[i]).date(); TQDate exdt=readTm(getExceptions()[i]).date();
text+=exdt.toString(Qt::LocalDate); text+=exdt.toString(TQt::LocalDate);
text+=br; text+=br;
} }
text+=ps; text+=ps;

@ -69,7 +69,7 @@ public:
}; };
/** This class is a wrapper for pilot-link's datebook entries (struct Appointment). */ /** This class is a wrapper for pilot-link's datebook entries (struct Appointment). */
class KDE_EXPORT PilotDateEntry : public PilotRecordBase class TDE_EXPORT PilotDateEntry : public PilotRecordBase
{ {
public: public:
/** Constructor. Zeroes out the appointment. */ /** Constructor. Zeroes out the appointment. */
@ -91,7 +91,7 @@ public:
PilotDateEntry& operator=(const PilotDateEntry &e); PilotDateEntry& operator=(const PilotDateEntry &e);
/** Create a textual representation (human-readable) of this appointment. /** Create a textual representation (human-readable) of this appointment.
* If @p richText is true, then the text representation uses qt style * If @p richText is true, then the text representation uses tqt style
* tags as well. * tags as well.
*/ */
TQString getTextRepresentation(TQt::TextFormat richText); TQString getTextRepresentation(TQt::TextFormat richText);

@ -40,7 +40,7 @@
* PilotLocalDatabase represents databases in the same binary format * PilotLocalDatabase represents databases in the same binary format
* as on the handheld but which are stored on local disk. * as on the handheld but which are stored on local disk.
*/ */
class KDE_EXPORT PilotLocalDatabase : public PilotDatabase class TDE_EXPORT PilotLocalDatabase : public PilotDatabase
{ {
public: public:
/** /**

@ -36,7 +36,7 @@
#include "pilotRecord.h" #include "pilotRecord.h"
#include "pilotAppInfo.h" #include "pilotAppInfo.h"
class KDE_EXPORT PilotMemo : public PilotRecordBase class TDE_EXPORT PilotMemo : public PilotRecordBase
{ {
public: public:
/** /**

@ -45,7 +45,7 @@
* a common base class collecting methods to manipulate those * a common base class collecting methods to manipulate those
* common characteristics. * common characteristics.
*/ */
class KDE_EXPORT PilotRecordBase class TDE_EXPORT PilotRecordBase
{ {
public: public:
/** Constructor. Initialize the characteristics to the /** Constructor. Initialize the characteristics to the
@ -232,7 +232,7 @@ private:
* This binary blob only exposes the data via the data() and size() functions, * This binary blob only exposes the data via the data() and size() functions,
* and also exposes the common characteristics of all entries. * and also exposes the common characteristics of all entries.
*/ */
class KDE_EXPORT PilotRecord : public PilotRecordBase class TDE_EXPORT PilotRecord : public PilotRecordBase
{ {
public: public:
/** Constructor. Using the given @p data and @p length, create /** Constructor. Using the given @p data and @p length, create
@ -241,7 +241,7 @@ public:
* *
* This constructor makes a copy of the data buffer (and owns that buffer). * This constructor makes a copy of the data buffer (and owns that buffer).
*/ */
PilotRecord(void* data, int length, int attrib, int cat, recordid_t uid) KDE_DEPRECATED; PilotRecord(void* data, int length, int attrib, int cat, recordid_t uid) TDE_DEPRECATED;
/** Constructor. Using the given buffer @p buf (which carries its /** Constructor. Using the given buffer @p buf (which carries its
* own data and length), create a record. Otherwise much like the * own data and length), create a record. Otherwise much like the

@ -45,7 +45,7 @@ class KPilotDeviceLink;
* PilotSerialDatabase represents databases stored on the handheld * PilotSerialDatabase represents databases stored on the handheld
* and accessed through the SLP / DLP protocol. * and accessed through the SLP / DLP protocol.
*/ */
class KDE_EXPORT PilotSerialDatabase : public PilotDatabase class TDE_EXPORT PilotSerialDatabase : public PilotDatabase
{ {
friend class KPilotDeviceLink; friend class KPilotDeviceLink;
protected: protected:

@ -138,7 +138,7 @@ TQString PilotTodoEntry::getTextRepresentation(TQt::TextFormat richText)
if (!getIndefinite()) if (!getIndefinite())
{ {
TQDate dt(readTm(getDueDate()).date()); TQDate dt(readTm(getDueDate()).date());
TQString dueDate(dt.toString(Qt::LocalDate)); TQString dueDate(dt.toString(TQt::LocalDate));
text+=par; text+=par;
text+=i18n("Due date: %1").arg(dueDate); text+=i18n("Due date: %1").arg(dueDate);
text+=ps; text+=ps;

@ -46,7 +46,7 @@
*/ */
/** A decoded ToDo item. */ /** A decoded ToDo item. */
class KDE_EXPORT PilotTodoEntry : public PilotRecordBase class TDE_EXPORT PilotTodoEntry : public PilotRecordBase
{ {
public: public:
/** Create an empty ToDo item. All attributes are 0. */ /** Create an empty ToDo item. All attributes are 0. */
@ -70,7 +70,7 @@ public:
} }
/** Return a string for the ToDo item. If @param richText is true, then /** Return a string for the ToDo item. If @param richText is true, then
* use qt style markup to make the string clearer when displayed. * use tqt style markup to make the string clearer when displayed.
*/ */
TQString getTextRepresentation(TQt::TextFormat richText); TQString getTextRepresentation(TQt::TextFormat richText);

@ -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;
} }

@ -75,9 +75,9 @@ namespace Pilot
* seems a little foolish. * seems a little foolish.
* *
*/ */
class KDE_EXPORT ConduitConfigBase : public TQObject class TDE_EXPORT ConduitConfigBase : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:
/** /**
@ -192,7 +192,7 @@ signals:
* by the conduit and offer rollback functionality if we think the * by the conduit and offer rollback functionality if we think the
* conduit has behaved improperly. * conduit has behaved improperly.
*/ */
class KDE_EXPORT CUDCounter class TDE_EXPORT CUDCounter
{ {
public: public:
/** Create new counter initialized to 0, and be told what /** Create new counter initialized to 0, and be told what
@ -258,9 +258,9 @@ private:
* conduit can read/write metadata and local settings. * conduit can read/write metadata and local settings.
*/ */
class KDE_EXPORT ConduitAction : public SyncAction class TDE_EXPORT ConduitAction : public SyncAction
{ {
Q_OBJECT TQ_OBJECT
public: public:
@ -368,7 +368,7 @@ private:
*/ */
class ConduitProxy : public ConduitAction class ConduitProxy : public ConduitAction
{ {
Q_OBJECT TQ_OBJECT
public: public:
@ -388,7 +388,7 @@ protected:
} ; } ;
/** A namespace containing only static helper methods. */ /** A namespace containing only static helper methods. */
namespace PluginUtility KDE_EXPORT namespace PluginUtility TDE_EXPORT
{ {
/** Searches the argument list for --foo=bar and returns bar, TQString() if not found. /** Searches the argument list for --foo=bar and returns bar, TQString() if not found.
* Don't include the -- in the argname. */ * Don't include the -- in the argname. */
@ -420,7 +420,7 @@ namespace PluginUtility KDE_EXPORT
* <pre> * <pre>
* class KPilotPlugin : public KLibFactory * class KPilotPlugin : public KLibFactory
* { * {
* Q_OBJECT * TQ_OBJECT
* *
* public: * public:
@ -446,7 +446,7 @@ namespace PluginUtility KDE_EXPORT
* protected: * protected:
* virtual TQObject* createObject( TQObject* parent = 0, * virtual TQObject* createObject( TQObject* parent = 0,
* const char* name = 0, * const char* name = 0,
* const char* classname = TQOBJECT_OBJECT_NAME_STRING, * const char* classname = "TQObject",
* const TQStringList &args = TQStringList() ); * const TQStringList &args = TQStringList() );
* </pre> * </pre>
* *

@ -55,7 +55,7 @@ protected:
virtual TQObject *createObject( virtual TQObject *createObject(
TQObject* parent = 0, TQObject* parent = 0,
const char* name = 0, const char* name = 0,
const char* classname = TQOBJECT_OBJECT_NAME_STRING, const char* classname = "TQObject",
const TQStringList &args = TQStringList() ) const TQStringList &args = TQStringList() )
{ {
if (qstrcmp(classname,"ConduitConfigBase")==0) if (qstrcmp(classname,"ConduitConfigBase")==0)

@ -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() ) );
} }

@ -55,7 +55,7 @@ class KPilotDeviceLink;
class RecordConduitBase : public ConduitAction class RecordConduitBase : public ConduitAction
{ {
Q_OBJECT TQ_OBJECT
public: public:
/** Constructor. The TQStringList @p a sets flags for the ConduitAction. /** Constructor. The TQStringList @p a sets flags for the ConduitAction.

@ -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);
} }

@ -47,9 +47,9 @@ class TQTimer;
class KPilotUser; class KPilotUser;
class SyncAction; class SyncAction;
class KDE_EXPORT SyncAction : public TQObject class TDE_EXPORT SyncAction : public TQObject
{ {
Q_OBJECT TQ_OBJECT
public: public:

@ -1,26 +1,26 @@
# SOME DESCRIPTIVE TITLE. # SOME DESCRIPTIVE TITLE.
# This file is put in the public domain. # This file is put in the public domain.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # Michele Calgaro <michele.calgaro@yahoo.it>, 2024.
#
#, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-11-30 10:29+0100\n" "POT-Creation-Date: 2022-11-30 10:29+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2024-01-22 06:06+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: Michele Calgaro <michele.calgaro@yahoo.it>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: Italian <https://mirror.git.trinitydesktop.org/weblate/"
"projects/applications/kpilot-desktop-files/it/>\n"
"Language: it\n" "Language: it\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n"
#. Name #. Name
#: kpilot/kpilot.desktop:2 #: kpilot/kpilot.desktop:2
#, fuzzy
msgid "KPilot" msgid "KPilot"
msgstr "Demone KPilot" msgstr "KPilot"
#. GenericName #. GenericName
#: kpilot/kpilot.desktop:4 #: kpilot/kpilot.desktop:4
@ -61,12 +61,12 @@ msgstr "Rubrica degli indirizzi"
#: conduits/abbrowserconduit/abbrowser_conduit.desktop:4 #: conduits/abbrowserconduit/abbrowser_conduit.desktop:4
msgid "This conduit syncs the handheld addressbook with TDE's addressbook." msgid "This conduit syncs the handheld addressbook with TDE's addressbook."
msgstr "" msgstr ""
"Questo condotto sincronizza il tuo palmare con la rubrica indirizzi di TDE" "Questo condotto sincronizza il tuo palmare con la rubrica indirizzi di TDE."
#. Name #. Name
#: conduits/docconduit/doc_conduit.desktop:2 #: conduits/docconduit/doc_conduit.desktop:2
msgid "Palm DOC" msgid "Palm DOC"
msgstr "" msgstr "Palm DOC"
#. Comment #. Comment
#: conduits/docconduit/doc_conduit.desktop:4 #: conduits/docconduit/doc_conduit.desktop:4
@ -76,7 +76,7 @@ msgstr "Aggiunge file di testo al tuo Pilot, adatti per lettori DOC."
#. Name #. Name
#: conduits/docconduit/kpalmdoc.desktop:2 #: conduits/docconduit/kpalmdoc.desktop:2
msgid "KPalmDOC" msgid "KPalmDOC"
msgstr "" msgstr "KPalmDOC"
#. GenericName #. GenericName
#: conduits/docconduit/kpalmdoc.desktop:4 #: conduits/docconduit/kpalmdoc.desktop:4
@ -125,7 +125,7 @@ msgstr ""
#. Name #. Name
#: conduits/notepadconduit/notepad-conduit.desktop:2 #: conduits/notepadconduit/notepad-conduit.desktop:2
msgid "NotePad" msgid "NotePad"
msgstr "" msgstr "NotePad"
#. Comment #. Comment
#: conduits/notepadconduit/notepad-conduit.desktop:4 #: conduits/notepadconduit/notepad-conduit.desktop:4
@ -135,7 +135,7 @@ msgstr "Questo conduit archivia i disegni NotePad in una cartella locale."
#. Name #. Name
#: conduits/null/null-conduit.desktop:2 #: conduits/null/null-conduit.desktop:2
msgid "NULL" msgid "NULL"
msgstr "" msgstr "NULL"
#. Comment #. Comment
#: conduits/null/null-conduit.desktop:4 #: conduits/null/null-conduit.desktop:4
@ -178,7 +178,8 @@ msgstr "Sincronizzazione temporale"
#: conduits/timeconduit/time_conduit.desktop:4 #: conduits/timeconduit/time_conduit.desktop:4
msgid "This conduit sets the time on your handheld from the PC clock." msgid "This conduit sets the time on your handheld from the PC clock."
msgstr "" msgstr ""
"Questo conduit imposta l'ora sul tuo palmare prendendola dall'orologio del PC" "Questo conduit imposta l'ora sul tuo palmare prendendola dall'orologio del "
"PC."
#. Name #. Name
#: conduits/vcalconduit/todo-conduit.desktop:2 #: conduits/vcalconduit/todo-conduit.desktop:2

@ -1,26 +1,27 @@
# SOME DESCRIPTIVE TITLE. # SOME DESCRIPTIVE TITLE.
# This file is put in the public domain. # This file is put in the public domain.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. # Andrei Stepanov <adem4ik@gmail.com>, 2024.
#
#, fuzzy
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2022-11-30 10:29+0100\n" "POT-Creation-Date: 2022-11-30 10:29+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: 2024-04-21 17:50+0000\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: Andrei Stepanov <adem4ik@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: Russian <https://mirror.git.trinitydesktop.org/weblate/"
"projects/applications/kpilot-desktop-files/ru/>\n"
"Language: ru\n" "Language: ru\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 4.17\n"
#. Name #. Name
#: kpilot/kpilot.desktop:2 #: kpilot/kpilot.desktop:2
#, fuzzy
msgid "KPilot" msgid "KPilot"
msgstr "Служба синхронизации КПК" msgstr "KPilot"
#. GenericName #. GenericName
#: kpilot/kpilot.desktop:4 #: kpilot/kpilot.desktop:4
@ -50,7 +51,7 @@ msgstr "Канал KPilot"
#. Name #. Name
#: kpilot/kpilotdaemon.desktop:2 #: kpilot/kpilotdaemon.desktop:2
msgid "KPilotDaemon" msgid "KPilotDaemon"
msgstr "Служба синхронизации КПК" msgstr "KPilotDaemon"
#. Name #. Name
#: conduits/abbrowserconduit/abbrowser_conduit.desktop:2 #: conduits/abbrowserconduit/abbrowser_conduit.desktop:2
@ -65,7 +66,7 @@ msgstr "Канал синхронизации адресных книг КПК
#. Name #. Name
#: conduits/docconduit/doc_conduit.desktop:2 #: conduits/docconduit/doc_conduit.desktop:2
msgid "Palm DOC" msgid "Palm DOC"
msgstr "" msgstr "Palm DOC"
#. Comment #. Comment
#: conduits/docconduit/doc_conduit.desktop:4 #: conduits/docconduit/doc_conduit.desktop:4
@ -75,7 +76,7 @@ msgstr "Перенос текстовых файлов на КПК."
#. Name #. Name
#: conduits/docconduit/kpalmdoc.desktop:2 #: conduits/docconduit/kpalmdoc.desktop:2
msgid "KPalmDOC" msgid "KPalmDOC"
msgstr "" msgstr "KPalmDOC"
#. GenericName #. GenericName
#: conduits/docconduit/kpalmdoc.desktop:4 #: conduits/docconduit/kpalmdoc.desktop:4
@ -120,7 +121,7 @@ msgstr "Канал синхронизации заметок КПК и TDE."
#. Name #. Name
#: conduits/notepadconduit/notepad-conduit.desktop:2 #: conduits/notepadconduit/notepad-conduit.desktop:2
msgid "NotePad" msgid "NotePad"
msgstr "" msgstr "NotePad"
#. Comment #. Comment
#: conduits/notepadconduit/notepad-conduit.desktop:4 #: conduits/notepadconduit/notepad-conduit.desktop:4
@ -130,7 +131,7 @@ msgstr "Канал создания резервных копий примеча
#. Name #. Name
#: conduits/null/null-conduit.desktop:2 #: conduits/null/null-conduit.desktop:2
msgid "NULL" msgid "NULL"
msgstr "" msgstr "NULL"
#. Comment #. Comment
#: conduits/null/null-conduit.desktop:4 #: conduits/null/null-conduit.desktop:4

@ -5,13 +5,13 @@
# Oleg Batalov <olegbatalov@mail.ru>, 2004. # Oleg Batalov <olegbatalov@mail.ru>, 2004.
# Олег Баталов <olegbatalov@mail.ru>, 2004. # Олег Баталов <olegbatalov@mail.ru>, 2004.
# Gregory Mokhin <mok@kde.ru>, 2004. # Gregory Mokhin <mok@kde.ru>, 2004.
# # Andrei Stepanov <adem4ik@gmail.com>, 2023, 2024.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: kpilot\n" "Project-Id-Version: kpilot\n"
"POT-Creation-Date: 2021-07-07 18:32+0000\n" "POT-Creation-Date: 2021-07-07 18:32+0000\n"
"PO-Revision-Date: 2020-01-04 14:07+0000\n" "PO-Revision-Date: 2024-05-06 04:00+0000\n"
"Last-Translator: Serg Bormant <bormant@mail.ru>\n" "Last-Translator: Andrei Stepanov <adem4ik@gmail.com>\n"
"Language-Team: Russian <https://mirror.git.trinitydesktop.org/weblate/" "Language-Team: Russian <https://mirror.git.trinitydesktop.org/weblate/"
"projects/applications/kpilot/ru/>\n" "projects/applications/kpilot/ru/>\n"
"Language: ru\n" "Language: ru\n"
@ -20,7 +20,7 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
"X-Generator: Weblate 3.10\n" "X-Generator: Weblate 4.17\n"
#. Instead of a literal translation, add your name to the end of the list (separated by a comma). #. Instead of a literal translation, add your name to the end of the list (separated by a comma).
msgid "" msgid ""
@ -767,7 +767,7 @@ msgstr "Настройки канала заметок"
#: conduits/notepadconduit/notepad-conduit.cpp:59 #: conduits/notepadconduit/notepad-conduit.cpp:59
#: conduits/notepadconduit/notepad-factory.cpp:89 #: conduits/notepadconduit/notepad-factory.cpp:89
msgid "Notepad" msgid "Notepad"
msgstr "Примечание " msgstr "Блокнот"
#: conduits/notepadconduit/notepad-conduit.cpp:79 #: conduits/notepadconduit/notepad-conduit.cpp:79
#: conduits/sysinfoconduit/sysinfo-conduit.cpp:591 #: conduits/sysinfoconduit/sysinfo-conduit.cpp:591
@ -2703,11 +2703,11 @@ msgstr ""
#: kpilot/kpilotProbeDialog.cpp:100 #: kpilot/kpilotProbeDialog.cpp:100
msgid "Status" msgid "Status"
msgstr "Статус" msgstr "Состояние"
#: kpilot/kpilotProbeDialog.cpp:104 #: kpilot/kpilotProbeDialog.cpp:104
msgid "Autodetection not yet started..." msgid "Autodetection not yet started..."
msgstr "Автоопределение ещё не начато..." msgstr "Автоопределение ещё не начато"
#: kpilot/kpilotProbeDialog.cpp:113 #: kpilot/kpilotProbeDialog.cpp:113
msgid "Detected Values" msgid "Detected Values"
@ -2766,7 +2766,7 @@ msgstr "Найдено подключенное к %1 устройство"
#: kpilot/kpilotProbeDialog.cpp:338 #: kpilot/kpilotProbeDialog.cpp:338
msgid "Disconnected from all devices" msgid "Disconnected from all devices"
msgstr "Отключен он всех устройств" msgstr "Отключён от всех устройств"
#: kpilot/kroupware.cpp:126 #: kpilot/kroupware.cpp:126
msgid "Syncing to-dos with KMail" msgid "Syncing to-dos with KMail"
@ -2995,7 +2995,7 @@ msgstr "Открыть текстовый файл и добавить его в
#: kpilot/memoWidget.cpp:269 #: kpilot/memoWidget.cpp:269
msgid "<qt><i>Import is disabled by the 'internal editors' setting.</i></qt>" msgid "<qt><i>Import is disabled by the 'internal editors' setting.</i></qt>"
msgstr "<qt><i>Импорт отключен настройками внутренних редакторов.</i></qt>" msgstr "<qt><i>Импорт отключён настройками внутренних редакторов.</i></qt>"
#: kpilot/memoWidget.cpp:272 #: kpilot/memoWidget.cpp:272
msgid "Export Memo..." msgid "Export Memo..."
@ -3079,9 +3079,9 @@ msgid ""
"not sync when screensaver is active' box in the HotSync page of the " "not sync when screensaver is active' box in the HotSync page of the "
"configuration dialog." "configuration dialog."
msgstr "" msgstr ""
"Синхронизация отключена поскольку KPilot не может определить состояние " "Синхронизация отключена, поскольку KPilot не может определить состояние "
"хранителя экрана. Вы можете отключить этот параметр безопасности, выключив " "хранителя экрана. Вы можете отключить этот параметр безопасности, выключив "
"'Синхронизация отключена на время блокирования экрана' на вкладке " "«Синхронизация отключена на время блокирования экрана» на вкладке "
"синхронизации диалога настройки." "синхронизации диалога настройки."
#: kpilot/pilotDaemon.cpp:1165 kpilot/pilotDaemon.cpp:1166 #: kpilot/pilotDaemon.cpp:1165 kpilot/pilotDaemon.cpp:1166
@ -3333,19 +3333,19 @@ msgstr "Повторение: каждые %1 %2"
#: lib/pilotDateEntry.cpp:222 #: lib/pilotDateEntry.cpp:222
msgid "day(s)" msgid "day(s)"
msgstr "день(дней)" msgstr "дн."
#: lib/pilotDateEntry.cpp:223 #: lib/pilotDateEntry.cpp:223
msgid "week(s)" msgid "week(s)"
msgstr "неделю(недель)" msgstr "нед."
#: lib/pilotDateEntry.cpp:225 #: lib/pilotDateEntry.cpp:225
msgid "month(s)" msgid "month(s)"
msgstr "месяц(ев)" msgstr "мес."
#: lib/pilotDateEntry.cpp:226 #: lib/pilotDateEntry.cpp:226
msgid "year(s)" msgid "year(s)"
msgstr "год(лет)" msgstr "года (лет)"
#: lib/pilotDateEntry.cpp:235 #: lib/pilotDateEntry.cpp:235
msgid "Repeats indefinitely" msgid "Repeats indefinitely"
@ -4027,7 +4027,7 @@ msgstr "Дата рождения"
#: conduits/abbrowserconduit/kaddressbookConduit.ui:598 #: conduits/abbrowserconduit/kaddressbookConduit.ui:598
#, no-c-format #, no-c-format
msgid "URL" msgid "URL"
msgstr "Ссылка Интернета" msgstr "Ссылка"
#: conduits/abbrowserconduit/kaddressbookConduit.ui:495 #: conduits/abbrowserconduit/kaddressbookConduit.ui:495
#, no-c-format #, no-c-format

Loading…
Cancel
Save