summaryrefslogtreecommitdiffstats
path: root/kpilot/conduits/popmail/popmail-conduit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kpilot/conduits/popmail/popmail-conduit.cc')
-rw-r--r--kpilot/conduits/popmail/popmail-conduit.cc48
1 files changed, 24 insertions, 24 deletions
diff --git a/kpilot/conduits/popmail/popmail-conduit.cc b/kpilot/conduits/popmail/popmail-conduit.cc
index 47315edaa..8f51545cf 100644
--- a/kpilot/conduits/popmail/popmail-conduit.cc
+++ b/kpilot/conduits/popmail/popmail-conduit.cc
@@ -41,8 +41,8 @@ unsigned long version_conduit_popmail = Pilot::PLUGIN_API;
}
-#include <qsocket.h>
-#include <qregexp.h>
+#include <tqsocket.h>
+#include <tqregexp.h>
#include <sys/types.h>
@@ -60,9 +60,9 @@ unsigned long version_conduit_popmail = Pilot::PLUGIN_API;
#endif
#include <pi-mail.h>
-#include <qdir.h>
-#include <qtextstream.h>
-#include <qtextcodec.h>
+#include <tqdir.h>
+#include <tqtextstream.h>
+#include <tqtextcodec.h>
#include <kapplication.h>
#include <kmessagebox.h>
@@ -78,11 +78,11 @@ unsigned long version_conduit_popmail = Pilot::PLUGIN_API;
#include "popmailSettings.h"
#include "setupDialog.h"
-static QString DATE_FORMAT("ddd, d MMM yyyy hh:mm:ss");
+static TQString DATE_FORMAT("ddd, d MMM yyyy hh:mm:ss");
PopMailConduit::PopMailConduit(KPilotLink *d,
const char *n,
- const QStringList &l) :
+ const TQStringList &l) :
ConduitAction(d,n,l)
{
FUNCTIONSETUP;
@@ -157,7 +157,7 @@ int PopMailConduit::sendPendingMail(int mode)
}
-QString PopMailConduit::getKMailOutbox() const
+TQString PopMailConduit::getKMailOutbox() const
{
FUNCTIONSETUP;
@@ -165,7 +165,7 @@ QString PopMailConduit::getKMailOutbox() const
KSimpleConfig c(CSL1("kmailrc"),true);
c.setGroup("General");
- QString outbox = c.readEntry("outboxFolder");
+ TQString outbox = c.readEntry("outboxFolder");
if (outbox.isEmpty())
{
outbox = MailConduitSettings::outboxFolder();
@@ -184,7 +184,7 @@ int PopMailConduit::sendViaKMail()
{
FUNCTIONSETUP;
int count=0;
- QString kmailOutboxName = getKMailOutbox();
+ TQString kmailOutboxName = getKMailOutbox();
DCOPClient *dcopptr = KApplication::kApplication()->dcopClient();
if (!dcopptr)
@@ -252,15 +252,15 @@ int PopMailConduit::sendViaKMail()
writeMessageToFile(sendf, theMail);
- QByteArray data,returnValue;
- QCString returnType;
- QDataStream arg(data,IO_WriteOnly);
+ TQByteArray data,returnValue;
+ TQCString returnType;
+ TQDataStream arg(data,IO_WriteOnly);
arg << kmailOutboxName << t.name() << CSL1("N") ;
if (!dcopptr->call("kmail",
"KMailIface",
- "dcopAddMessage(QString,QString,QString)",
+ "dcopAddMessage(TQString,TQString,TQString)",
data,
returnType,
returnValue,
@@ -302,9 +302,9 @@ void PopMailConduit::writeMessageToFile(FILE* sendf, struct Mail& theMail)
{
FUNCTIONSETUP;
- QTextStream mailPipe(sendf, IO_WriteOnly);
+ TQTextStream mailPipe(sendf, IO_WriteOnly);
- QString fromAddress = MailConduitSettings::emailAddress();
+ TQString fromAddress = MailConduitSettings::emailAddress();
mailPipe << "From: " << fromAddress << "\r\n";
mailPipe << "To: " << theMail.to << "\r\n";
if(theMail.cc)
@@ -319,13 +319,13 @@ void PopMailConduit::writeMessageToFile(FILE* sendf, struct Mail& theMail)
// if our struct indicates that it's dated, then use the date it
// holds. otherwise, provide current date. either way, we need to
// have a date...
- QDateTime date = QDateTime::currentDateTime();
+ TQDateTime date = TQDateTime::currentDateTime();
if (theMail.dated)
{
date = readTm(theMail.date);
}
- QString dateString = date.toString(DATE_FORMAT);
+ TQString dateString = date.toString(DATE_FORMAT);
mailPipe << "Date: " << dateString << "\r\n";
@@ -343,16 +343,16 @@ void PopMailConduit::writeMessageToFile(FILE* sendf, struct Mail& theMail)
}
//insert the real signature file from disk
- QString signature = MailConduitSettings::signature();
+ TQString signature = MailConduitSettings::signature();
if(!signature.isEmpty())
{
DEBUGKPILOT << fname << ": Reading signature" << endl;
- QFile f(signature);
+ TQFile f(signature);
if ( f.open(IO_ReadOnly) )
{ // file opened successfully
mailPipe << "-- \r\n";
- QTextStream t( &f ); // use a text stream
+ TQTextStream t( &f ); // use a text stream
while ( !t.eof() )
{ // until end of file...
mailPipe << t.readLine() << "\r\n";
@@ -370,15 +370,15 @@ void PopMailConduit::writeMessageToFile(FILE* sendf, struct Mail& theMail)
{
FUNCTIONSETUP;
- QString outbox = getKMailOutbox();
+ TQString outbox = getKMailOutbox();
DEBUGKPILOT << fname
<< ": KMail's outbox is "
<< outbox
<< endl;
- QDateTime date = QDateTime::currentDateTime();
- QString dateString = date.toString(DATE_FORMAT);
+ TQDateTime date = TQDateTime::currentDateTime();
+ TQString dateString = date.toString(DATE_FORMAT);
DEBUGKPILOT << fname << ": Date format example: [" << dateString
<< "]" << endl;