Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/15/head
Michele Calgaro 8 months ago
parent f452adff94
commit 8ea0f2c182
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -403,7 +403,7 @@ class MALWidgetSetup : public ConduitConfig
{
TQ_OBJECT
public:
MALWidgetSetup(QWidget *,const char *,const QStringList &);
MALWidgetSetup(TQWidget *,const char *,const QStringList &);
virtual ~MALWidgetSetup() {};
virtual void readSettings();
protected:
@ -417,7 +417,7 @@ private:
This class implements the dialog box itself, and our dialog template
will be inserted into this dialog by the constructor:
{\footnotesize\begin{verbatim}
MALWidgetSetup::MALWidgetSetup(QWidget *w, const char *n,
MALWidgetSetup::MALWidgetSetup(TQWidget *w, const char *n,
const QStringList & a) :
ConduitConfig(w,n,a)
{
@ -584,7 +584,7 @@ All conduits are subclasses of \class{SyncAction}, which provides the following
environment will deal with \code{syncDone()}.
\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
\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
@ -596,9 +596,9 @@ In addition to these functions the class also has some signals you can emit to d
\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 logMessage(const QString \&)} ... 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 logProgress(const QString \&,int)} ... Adds a log message and sets the progress bar to the given percentage.
\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 TQString \&)} ... Adds an error message to KPilot's log
\item \code{void logProgress(const TQString \&,int)} ... Adds a log message and sets the progress bar to the given percentage.
\end{itemize}
@ -611,9 +611,9 @@ In addition to \class{SyncAction}'s methods it adds the following methods:
the handheld in regular intervals
\item \code{void stopTickle()} ... stop the timer
\item\code{int questionYesNo(const QString \&question ,
const QString \&caption = QString::null,
const QString \&key = QString::null,
\item\code{int questionYesNo(const TQString \&question ,
const TQString \&caption = TQString::null,
const TQString \&key = TQString::null,
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.
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.
\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
the local file path.
\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.
If deleteFile is set true or left out, the local file is deleted after successful installation.
\item
@ -744,7 +744,7 @@ database to not dirty.
from Palm Pilot database
\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.
\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
return the full path.
\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:
\begin{itemize}
\item\code{PilotSerialDatabase(int linksocket, const char* dbName)} ... linksocket
\item\code{PilotLocalDatabase( const QString\& path, const QString\& name)}
\item\code{PilotLocalDatabase(const QString \&name)} ... open database by name only
\item\code{PilotLocalDatabase( const TQString\& path, const TQString\& name)}
\item\code{PilotLocalDatabase(const TQString \&name)} ... open database by name only
(no explicit path). The path \file{\$TDEHOME/share/apps/kpilot/DBBackup/PalmUserName/}
is set by KPilot automatically.
\end{itemize}
@ -976,7 +976,7 @@ int malconduit_logf(const char *format, ...) {
return rval;
}
void MALConduit::printLogMessage(QString msg) {
void MALConduit::printLogMessage(TQString msg) {
FUNCTIONSETUP;
emit logMessage(msg);
}
@ -1052,8 +1052,8 @@ void DOCConduit::syncNextDB() {
return;
}
QString docfilename=constructDOCFileName(dbinfo.name);
QString pdbfilename=constructPDBFileName(dbinfo.name);
TQString docfilename=constructDOCFileName(dbinfo.name);
TQString pdbfilename=constructPDBFileName(dbinfo.name);
docSyncInfo syncInfo(dbinfo.name, docfilename, pdbfilename, eSyncNone);
syncInfo.dbinfo=dbinfo;
@ -1093,12 +1093,12 @@ void DOCConduit::syncNextDOC() {
return;
}
QString fn=(*dociterator);
TQString fn=(*dociterator);
QDir dr(fDOCDir);
QFileInfo fl(dr, fn );
QString docfilename=fl.absFilePath();
QString pdbfilename;
TQString docfilename=fl.absFilePath();
TQString pdbfilename;
dociterator++;
DBInfo dbinfo;
@ -1146,16 +1146,16 @@ void DOCConduit::checkPDBFiles() {
return;
}
QString fn=(*dociterator);
TQString fn=(*dociterator);
QDir dr(fPDBDir);
QFileInfo fl(dr, fn );
QString pdbfilename=fl.absFilePath();
TQString pdbfilename=fl.absFilePath();
dociterator++;
// 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.
QString dbname=fl.baseName(TRUE).left(30);
TQString dbname=fl.baseName(TRUE).left(30);
if (!fDBNames.contains(dbname) && !fDBListSynced.contains(dbname)) {
if (fHandle->installFiles(pdbfilename )) {
DBInfo dbinfo;
@ -1290,7 +1290,7 @@ bool DOCConduit::doSync(docSyncInfo &sinfo) {
if (!QFile::remove(sinfo.docfilename)) {
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")){
bmkfilename.remove(bmkfilename.length()-4, 4);
}
@ -1331,8 +1331,8 @@ bool DOCConduit::doSync(docSyncInfo &sinfo) {
if (database && database->isOpen()) {
DOCConverter docconverter;
connect(&docconverter, SIGNAL(logError(const QString &)), SIGNAL(logError(const QString &)));
connect(&docconverter, SIGNAL(logMessage(const QString &)), SIGNAL(logMessage(const QString &)));
connect(&docconverter, SIGNAL(logError(const TQString &)), SIGNAL(logError(const TQString &)));
connect(&docconverter, SIGNAL(logMessage(const TQString &)), SIGNAL(logMessage(const TQString &)));
docconverter.setDOCpath(fDOCDir, sinfo.docfilename);
docconverter.setPDB(database);
@ -1357,7 +1357,7 @@ bool DOCConduit::doSync(docSyncInfo &sinfo) {
QFile docfile(docconverter.docFilename());
if (docfile.open(IO_ReadOnly)) {
docmd5.update(docfile);
QString thisDigest(docmd5.hexDigest().data());
TQString thisDigest(docmd5.hexDigest().data());
fConfig->writeEntry(docconverter.docFilename(), thisDigest);
fConfig->sync();
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));
if (!res)
emit logError(i18n("Conversion of PalmDOC \"%1\" failed.").arg(sinfo.dbinfo.name));
// disconnect(&docconverter, SIGNAL(logError(const QString &)), SIGNAL(logError(const QString &)));
// disconnect(&docconverter, SIGNAL(logMessage(const QString &)), SIGNAL(logMessage(const QString &)));
// disconnect(&docconverter, SIGNAL(logError(const TQString &)), SIGNAL(logError(const TQString &)));
// disconnect(&docconverter, SIGNAL(logMessage(const TQString &)), SIGNAL(logMessage(const TQString &)));
// KPILOT_DELETE(database);
}
else

@ -51,7 +51,7 @@
<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="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:Operation>
<UML:Attribute visibility="private" xmi.id="29" value="" type="TQString" name="_DEFAULT_MEMODIR" />

Loading…
Cancel
Save