summaryrefslogtreecommitdiff
authoralwin <alwin>2004-10-26 19:23:23 (UTC)
committer alwin <alwin>2004-10-26 19:23:23 (UTC)
commitc95aeb8fd283fe9d2f220209e696726120857257 (patch) (side-by-side diff)
treee7ea89f2c7a74f30af99466eef07b279c5adf53a
parent8d8b23bff18b8afd42840ef1d4574ef3ea9f8cee (diff)
downloadopie-c95aeb8fd283fe9d2f220209e696726120857257.zip
opie-c95aeb8fd283fe9d2f220209e696726120857257.tar.gz
opie-c95aeb8fd283fe9d2f220209e696726120857257.tar.bz2
commented out useless example code (forgot it)
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/net/mail/opiemail.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/net/mail/opiemail.cpp b/noncore/net/mail/opiemail.cpp
index 5654476..2bbc8f1 100644
--- a/noncore/net/mail/opiemail.cpp
+++ b/noncore/net/mail/opiemail.cpp
@@ -80,65 +80,65 @@ void ValueExplode::splitit()
m_LastParsed.append(tkeyvalues(m_Command,""));
return;
}
int pos,pos2,startpos;
startpos = 0;
iLine = m_Command;
while ( (pos = iLine.find(mDelemiter,startpos))!=-1) {
pos2 = iLine.find(m2Delemiter,startpos);
if (pos2==-1||pos2>pos) {
m_LastParsed.append(tkeyvalues(iLine.mid(startpos,pos-startpos),""));
} else {
m_LastParsed.append(tkeyvalues(iLine.mid(startpos,pos2-startpos),iLine.mid(pos2+1,pos-pos2-1)));
}
startpos = pos+1;
}
if (startpos<iLine.length()) {
pos2 = iLine.find(m2Delemiter,startpos);
if (pos2==-1) {
m_LastParsed.append(tkeyvalues(iLine.mid(startpos),""));
} else {
m_LastParsed.append(tkeyvalues(iLine.mid(startpos,pos2-startpos),iLine.mid(pos2+1)));
}
}
}
OpieMail::OpieMail( QWidget *parent, const char *name, WFlags )
: MainWindow( parent, name, WStyle_ContextHelp )
{
setup_signalblocking();
settings = new Settings();
folderView->populate( settings->getAccounts() );
-#if 1
+#if 0
tvaluelist s = ValueExplode("a=1&b=holladiewaldfee&c=3&d=&e=3450");
for (int i = 0; i < s.count();++i) {
odebug<<"Key: " << s[i].key << " Value: " << s[i].data << oendl;
}
#endif
}
OpieMail::~OpieMail()
{
if (settings) delete settings;
}
void OpieMail::setup_signalblocking()
{
/* for networking we must block SIGPIPE and Co. */
struct sigaction blocking_action,temp_action;
blocking_action.sa_handler = SIG_IGN;
sigemptyset(&(blocking_action.sa_mask));
blocking_action.sa_flags = 0;
sigaction(SIGPIPE,&blocking_action,&temp_action);
}
void OpieMail::appMessage(const QCString &msg, const QByteArray &data)
{
// copied from old mail2
if (msg == "writeMail(QString,QString)")
{
QDataStream stream(data,IO_ReadOnly);
QString name, email;
stream >> name >> email;
// removing the whitespaces at beginning and end is needed!
slotwriteMail(name.stripWhiteSpace(),email.stripWhiteSpace());