summaryrefslogtreecommitdiffstats
path: root/korganizer/komailclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'korganizer/komailclient.cpp')
-rw-r--r--korganizer/komailclient.cpp106
1 files changed, 53 insertions, 53 deletions
diff --git a/korganizer/komailclient.cpp b/korganizer/komailclient.cpp
index c9e021979..946331fde 100644
--- a/korganizer/komailclient.cpp
+++ b/korganizer/komailclient.cpp
@@ -51,16 +51,16 @@ KOMailClient::~KOMailClient()
{
}
-bool KOMailClient::mailAttendees(IncidenceBase *incidence,const QString &attachment)
+bool KOMailClient::mailAttendees(IncidenceBase *incidence,const TQString &attachment)
{
Attendee::List attendees = incidence->attendees();
if (attendees.count() == 0) return false;
- const QString from = incidence->organizer().fullName();
- const QString organizerEmail = incidence->organizer().email();
- QStringList toList;
+ const TQString from = incidence->organizer().fullName();
+ const TQString organizerEmail = incidence->organizer().email();
+ TQStringList toList;
for(uint i=0; i<attendees.count();++i) {
- const QString email = (*attendees.at(i))->email();
+ const TQString email = (*attendees.at(i))->email();
// In case we (as one of our identities) are the organizer we are sending this
// mail. We could also have added ourselves as an attendee, in which case we
// don't want to send ourselves a notification mail.
@@ -70,9 +70,9 @@ bool KOMailClient::mailAttendees(IncidenceBase *incidence,const QString &attachm
if( toList.count() == 0 )
// Not really to be called a groupware meeting, eh
return false;
- QString to = toList.join( ", " );
+ TQString to = toList.join( ", " );
- QString subject;
+ TQString subject;
if(incidence->type()!="FreeBusy") {
Incidence *inc = static_cast<Incidence *>(incidence);
subject = inc->summary();
@@ -80,20 +80,20 @@ bool KOMailClient::mailAttendees(IncidenceBase *incidence,const QString &attachm
subject = "Free Busy Object";
}
- QString body = IncidenceFormatter::mailBodyString(incidence);
+ TQString body = IncidenceFormatter::mailBodyString(incidence);
bool bcc = KOPrefs::instance()->mBcc;
return send(from,to,subject,body,bcc,attachment);
}
-bool KOMailClient::mailOrganizer(IncidenceBase *incidence,const QString &attachment, const QString &sub)
+bool KOMailClient::mailOrganizer(IncidenceBase *incidence,const TQString &attachment, const TQString &sub)
{
- QString to = incidence->organizer().fullName();
+ TQString to = incidence->organizer().fullName();
- QString from = KOPrefs::instance()->email();
+ TQString from = KOPrefs::instance()->email();
- QString subject = sub;
+ TQString subject = sub;
if(incidence->type()!="FreeBusy") {
Incidence *inc = static_cast<Incidence *>(incidence);
if ( subject.isEmpty() )
@@ -102,33 +102,33 @@ bool KOMailClient::mailOrganizer(IncidenceBase *incidence,const QString &attachm
subject = "Free Busy Message";
}
- QString body = IncidenceFormatter::mailBodyString(incidence);
+ TQString body = IncidenceFormatter::mailBodyString(incidence);
bool bcc = KOPrefs::instance()->mBcc;
return send(from,to,subject,body,bcc,attachment);
}
-bool KOMailClient::mailTo(IncidenceBase *incidence,const QString &recipients,
- const QString &attachment)
+bool KOMailClient::mailTo(IncidenceBase *incidence,const TQString &recipients,
+ const TQString &attachment)
{
- QString from = KOPrefs::instance()->email();
- QString subject;
+ TQString from = KOPrefs::instance()->email();
+ TQString subject;
if(incidence->type()!="FreeBusy") {
Incidence *inc = static_cast<Incidence *>(incidence);
subject = inc->summary();
} else {
subject = "Free Busy Message";
}
- QString body = IncidenceFormatter::mailBodyString(incidence);
+ TQString body = IncidenceFormatter::mailBodyString(incidence);
bool bcc = KOPrefs::instance()->mBcc;
kdDebug () << "KOMailClient::mailTo " << recipients << endl;
return send(from,recipients,subject,body,bcc,attachment);
}
-bool KOMailClient::send(const QString &from,const QString &to,
- const QString &subject,const QString &body,bool bcc,
- const QString &attachment)
+bool KOMailClient::send(const TQString &from,const TQString &to,
+ const TQString &subject,const TQString &body,bool bcc,
+ const TQString &attachment)
{
kdDebug(5850) << "KOMailClient::sendMail():\nFrom: " << from << "\nTo: " << to
<< "\nSubject: " << subject << "\nBody: \n" << body
@@ -137,18 +137,18 @@ bool KOMailClient::send(const QString &from,const QString &to,
if (KOPrefs::instance()->mMailClient == KOPrefs::MailClientSendmail) {
bool needHeaders = true;
- QString command = KStandardDirs::findExe(QString::fromLatin1("sendmail"),
- QString::fromLatin1("/sbin:/usr/sbin:/usr/lib"));
- if (!command.isNull()) command += QString::fromLatin1(" -oi -t");
+ TQString command = KStandardDirs::findExe(TQString::fromLatin1("sendmail"),
+ TQString::fromLatin1("/sbin:/usr/sbin:/usr/lib"));
+ if (!command.isNull()) command += TQString::fromLatin1(" -oi -t");
else {
- command = KStandardDirs::findExe(QString::fromLatin1("mail"));
+ command = KStandardDirs::findExe(TQString::fromLatin1("mail"));
if (command.isNull()) return false; // give up
- command.append(QString::fromLatin1(" -s "));
+ command.append(TQString::fromLatin1(" -s "));
command.append(KProcess::quote(subject));
if (bcc) {
- command.append(QString::fromLatin1(" -b "));
+ command.append(TQString::fromLatin1(" -b "));
command.append(KProcess::quote(from));
}
@@ -165,14 +165,14 @@ bool KOMailClient::send(const QString &from,const QString &to,
return false;
}
- QString textComplete;
+ TQString textComplete;
if (needHeaders)
{
- textComplete += QString::fromLatin1("From: ") + from + '\n';
- textComplete += QString::fromLatin1("To: ") + to + '\n';
- if (bcc) textComplete += QString::fromLatin1("Bcc: ") + from + '\n';
- textComplete += QString::fromLatin1("Subject: ") + subject + '\n';
- textComplete += QString::fromLatin1("X-Mailer: KOrganizer") + korgVersion + '\n';
+ textComplete += TQString::fromLatin1("From: ") + from + '\n';
+ textComplete += TQString::fromLatin1("To: ") + to + '\n';
+ if (bcc) textComplete += TQString::fromLatin1("Bcc: ") + from + '\n';
+ textComplete += TQString::fromLatin1("Subject: ") + subject + '\n';
+ textComplete += TQString::fromLatin1("X-Mailer: KOrganizer") + korgVersion + '\n';
}
textComplete += '\n'; // end of headers
textComplete += body;
@@ -193,7 +193,7 @@ bool KOMailClient::send(const QString &from,const QString &to,
if (attachment.isEmpty()) {
if (!kMailOpenComposer(to,"",bcc ? from : "",subject,body,0,KURL())) return false;
} else {
- QString meth;
+ TQString meth;
int idx = attachment.find("METHOD");
if (idx>=0) {
idx = attachment.find(':',idx)+1;
@@ -211,8 +211,8 @@ bool KOMailClient::send(const QString &from,const QString &to,
return true;
}
-int KOMailClient::kMailOpenComposer(const QString& arg0,const QString& arg1,
- const QString& arg2,const QString& arg3,const QString& arg4,int arg5,
+int KOMailClient::kMailOpenComposer(const TQString& arg0,const TQString& arg1,
+ const TQString& arg2,const TQString& arg3,const TQString& arg4,int arg5,
const KURL& arg6)
{
//kdDebug(5850) << "KOMailClient::kMailOpenComposer( "
@@ -220,9 +220,9 @@ int KOMailClient::kMailOpenComposer(const QString& arg0,const QString& arg1,
// << arg4 << " , " << arg5 << " , " << arg6 << " )" << endl;
int result = 0;
- QByteArray data, replyData;
- QCString replyType;
- QDataStream arg( data, IO_WriteOnly );
+ TQByteArray data, replyData;
+ TQCString replyType;
+ TQDataStream arg( data, IO_WriteOnly );
arg << arg0;
arg << arg1;
arg << arg2;
@@ -233,9 +233,9 @@ int KOMailClient::kMailOpenComposer(const QString& arg0,const QString& arg1,
#if KDE_IS_VERSION( 3, 2, 90 )
kapp->updateRemoteUserTimestamp( "kmail" );
#endif
- if (kapp->dcopClient()->call("kmail","KMailIface","openComposer(QString,QString,QString,QString,QString,int,KURL)", data, replyType, replyData ) ) {
+ if (kapp->dcopClient()->call("kmail","KMailIface","openComposer(TQString,TQString,TQString,TQString,TQString,int,KURL)", data, replyType, replyData ) ) {
if ( replyType == "int" ) {
- QDataStream _reply_stream( replyData, IO_ReadOnly );
+ TQDataStream _reply_stream( replyData, IO_ReadOnly );
_reply_stream >> result;
} else {
kdDebug(5850) << "kMailOpenComposer() call failed." << endl;
@@ -246,13 +246,13 @@ int KOMailClient::kMailOpenComposer(const QString& arg0,const QString& arg1,
return result;
}
-int KOMailClient::kMailOpenComposer( const QString& arg0, const QString& arg1,
- const QString& arg2, const QString& arg3,
- const QString& arg4, int arg5, const QString& arg6,
- const QCString& arg7, const QCString& arg8,
- const QCString& arg9, const QCString& arg10,
- const QCString& arg11, const QString& arg12,
- const QCString& arg13, const QCString& arg14 )
+int KOMailClient::kMailOpenComposer( const TQString& arg0, const TQString& arg1,
+ const TQString& arg2, const TQString& arg3,
+ const TQString& arg4, int arg5, const TQString& arg6,
+ const TQCString& arg7, const TQCString& arg8,
+ const TQCString& arg9, const TQCString& arg10,
+ const TQCString& arg11, const TQString& arg12,
+ const TQCString& arg13, const TQCString& arg14 )
{
//kdDebug(5850) << "KOMailClient::kMailOpenComposer( "
// << arg0 << " , " << arg1 << arg2 << " , " << arg3
@@ -263,9 +263,9 @@ int KOMailClient::kMailOpenComposer( const QString& arg0, const QString& arg1,
int result = 0;
- QByteArray data, replyData;
- QCString replyType;
- QDataStream arg( data, IO_WriteOnly );
+ TQByteArray data, replyData;
+ TQCString replyType;
+ TQDataStream arg( data, IO_WriteOnly );
arg << arg0;
arg << arg1;
arg << arg2;
@@ -285,9 +285,9 @@ int KOMailClient::kMailOpenComposer( const QString& arg0, const QString& arg1,
kapp->updateRemoteUserTimestamp("kmail");
#endif
if ( kapp->dcopClient()->call("kmail","KMailIface",
- "openComposer(QString,QString,QString,QString,QString,int,QString,QCString,QCString,QCString,QCString,QCString,QString,QCString,QCString)", data, replyType, replyData ) ) {
+ "openComposer(TQString,TQString,TQString,TQString,TQString,int,TQString,TQCString,TQCString,TQCString,TQCString,TQCString,TQString,TQCString,TQCString)", data, replyType, replyData ) ) {
if ( replyType == "int" ) {
- QDataStream _reply_stream( replyData, IO_ReadOnly );
+ TQDataStream _reply_stream( replyData, IO_ReadOnly );
_reply_stream >> result;
} else {
kdDebug(5850) << "kMailOpenComposer() call failed." << endl;