summaryrefslogtreecommitdiff
path: root/noncore/unsupported/mailit/emailclient.cpp
Side-by-side diff
Diffstat (limited to 'noncore/unsupported/mailit/emailclient.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/unsupported/mailit/emailclient.cpp322
1 files changed, 161 insertions, 161 deletions
diff --git a/noncore/unsupported/mailit/emailclient.cpp b/noncore/unsupported/mailit/emailclient.cpp
index 90664bb..8359acf 100644
--- a/noncore/unsupported/mailit/emailclient.cpp
+++ b/noncore/unsupported/mailit/emailclient.cpp
@@ -43,8 +43,8 @@ MailAccount* AccountList::dupl(MailAccount *in)
EmailClient::EmailClient( QWidget* parent, const char* name, WFlags fl )
: QMainWindow( parent, name, fl )
-{
+{
emailHandler = new EmailHandler();
addressList = new AddressList();
-
+
sending = FALSE;
receiving = FALSE;
@@ -53,19 +53,19 @@ EmailClient::EmailClient( QWidget* parent, const char* name, WFlags fl )
accountIdCount = 1;
allAccounts = FALSE;
-
+
init();
-
-
-
+
+
+
connect(emailHandler, SIGNAL(mailSent()), this, SLOT(mailSent()) );
-
+
connect(emailHandler, SIGNAL(smtpError(int,const QString &)), this,
SLOT(smtpError(int,const QString &)) );
connect(emailHandler, SIGNAL(popError(int,const QString &)), this,
SLOT(popError(int,const QString &)) );
-
+
connect(inboxView, SIGNAL(doubleClicked(QListViewItem *)), this, SLOT(inboxItemSelected()) );
connect(outboxView, SIGNAL(doubleClicked(QListViewItem *)), this, SLOT(outboxItemSelected()) );
-
+
connect(inboxView, SIGNAL(pressed(QListViewItem *)), this, SLOT(inboxItemPressed()) );
connect(inboxView, SIGNAL(clicked(QListViewItem *)), this, SLOT(inboxItemReleased()) );
@@ -75,18 +75,18 @@ EmailClient::EmailClient( QWidget* parent, const char* name, WFlags fl )
connect(emailHandler, SIGNAL(mailTransfered(int)), this,
SLOT(allMailArrived(int)) );
-
+
mailconf = new Config("mailit");
//In case Synchronize is not defined in settings.txt
readSettings();
-
+
updateAccounts();
-
+
lineShift = "\n";
readMail();
lineShift = "\r\n";
-
+
mailboxView->setCurrentTab(0); //ensure that inbox has focus
-
+
/*channel = new QCopChannel( "QPE/Application/mailit", this );
connect( channel, SIGNAL(received(const QCString&, const QByteArray&)),
@@ -105,8 +105,8 @@ EmailClient::~EmailClient()
saveMail(getPath(FALSE) + "outbox.txt", outboxView);
saveSettings();
-
+
mailconf->write();
delete mailconf;
-
+
}
@@ -114,7 +114,7 @@ void EmailClient::init()
{
initStatusBar(this);
-
+
setToolBarsMovable(FALSE);
-
+
bar = new QToolBar(this);
QWhatsThis::add(bar,tr("Main operation toolbar"));
@@ -128,5 +128,5 @@ void EmailClient::init()
QPopupMenu *configure = new QPopupMenu(mb);
mb->insertItem( tr( "Accounts" ), configure);
-
+
selectAccountMenu = new QPopupMenu(mb);
editAccountMenu = new QPopupMenu(mb);
@@ -143,5 +143,5 @@ void EmailClient::init()
getMailButton->setPopup(selectAccountMenu);
-
+
sendMailButton = new QAction(tr("Send mail"), Resource::loadPixmap("mailit/sendqueue"), QString::null, 0, this, 0);
connect(sendMailButton, SIGNAL(activated()), this, SLOT(sendQuedMail()) );
@@ -149,5 +149,5 @@ void EmailClient::init()
sendMailButton->addTo(mail);
sendMailButton->setWhatsThis("Send mail queued in the outbox");
-
+
composeButton = new QAction(tr("Compose"), Resource::loadPixmap("new"), QString::null, 0, this, 0);
connect(composeButton, SIGNAL(activated()), this, SLOT(compose()) );
@@ -155,5 +155,5 @@ void EmailClient::init()
composeButton->addTo(mail);
composeButton->setWhatsThis("Compose a new mail");
-
+
cancelButton = new QAction(tr("Cancel transfer"), Resource::loadPixmap("close"), QString::null, 0, this, 0);
connect(cancelButton, SIGNAL(activated()), this, SLOT(cancel()) );
@@ -162,11 +162,11 @@ void EmailClient::init()
cancelButton->setEnabled(FALSE);
cancelButton->setWhatsThis("Stop the currently active mail transfer");
-
-
+
+
deleteButton = new QAction( tr( "Delete" ), Resource::loadPixmap( "trash" ), QString::null, 0, this, 0 );
connect( deleteButton, SIGNAL( activated() ), this, SLOT( deleteItem() ) );
deleteButton->addTo(bar);
deleteButton->setWhatsThis("Remove the currently selected eMail(s)");
-
+
mailboxView = new OTabWidget( this, "mailboxView" );
@@ -206,7 +206,7 @@ void EmailClient::init()
grid_3->addWidget( outboxView, 0, 0 );
mailboxView->addTab( widget_2,"mailit/outbox", tr( "Outbox" ) );
-
+
setCentralWidget(mailboxView);
-
+
}
@@ -215,5 +215,5 @@ void EmailClient::initStatusBar(QWidget* parent)
statusBar = new QStatusBar(parent);
statusBar->setSizeGripEnabled(FALSE);
-
+
status1Label = new QLabel( tr("Idle"), statusBar);
status2Label = new QLabel("", statusBar);
@@ -222,5 +222,5 @@ void EmailClient::initStatusBar(QWidget* parent)
connect(emailHandler, SIGNAL(updateSmtpStatus(const QString &)),
status2Label, SLOT(setText(const QString &)) );
-
+
progressBar = new QProgressBar(statusBar);
@@ -261,10 +261,10 @@ void EmailClient::enqueMail(const Email &mail)
return;
}
-
+
if (accountList.count() > 0) {
currentAccount = accountList.first();
qWarning("using account " + currentAccount->name);
}
-
+
Email addMail = mail;
addMail.from = currentAccount->name;
@@ -272,7 +272,7 @@ void EmailClient::enqueMail(const Email &mail)
addMail.rawMail.prepend("From: \"" + addMail.from + "\" <" + addMail.fromMail + ">\n");
item = new EmailListItem(outboxView, addMail, false);
-
+
mailboxView->setCurrentTab(1);
-
+
}
@@ -282,5 +282,5 @@ void EmailClient::sendQuedMail()
if (accountList.count() == 0) {
- QMessageBox::warning(qApp->activeWindow(), "No account selected", "You must create an account", "OK\n");
+ QMessageBox::warning(qApp->activeWindow(), tr("No account selected"), tr("You must create an account"), "OK\n");
return;
}
@@ -314,5 +314,5 @@ void EmailClient::mailSent()
sending = FALSE;
sendMailButton->setEnabled(TRUE);
-
+
quedMessages.clear();
outboxView->clear(); //should be moved to an sentBox
@@ -320,13 +320,13 @@ void EmailClient::mailSent()
void EmailClient::getNewMail() {
-
+
if (accountList.count() == 0) {
- QMessageBox::warning(qApp->activeWindow(),"No account selected",
- "You must create an account", "OK\n");
+ QMessageBox::warning(qApp->activeWindow(),tr("No account selected"),
+ tr("You must create an account"), "OK\n");
return;
}
-
+
setMailAccount();
-
+
receiving = TRUE;
previewingMail = TRUE;
@@ -334,8 +334,8 @@ void EmailClient::getNewMail() {
cancelButton->setEnabled(TRUE);
selectAccountMenu->setEnabled(FALSE);
-
+
status1Label->setText(currentAccount->accountName + " headers");
progressBar->reset();
-
+
//get any previous mails not downloaded and add to queue
/*mailDownloadList.clear();
@@ -349,7 +349,7 @@ void EmailClient::getNewMail() {
item = (EmailListItem *) item->nextSibling();
}*/
-
+
emailHandler->getMailHeaders();
-
+
}
@@ -358,5 +358,5 @@ void EmailClient::getAllNewMail()
allAccounts = TRUE;
currentAccount = accountList.first();
- getNewMail();
+ getNewMail();
}
@@ -368,55 +368,55 @@ void EmailClient::mailArrived(const Email &mail, bool fromDisk)
emailHandler->parse( mail.rawMail, lineShift, &newMail);
mailconf->setGroup(newMail.id);
-
- if (fromDisk)
+
+ if (fromDisk)
{
-
+
newMail.downloaded = mailconf->readBoolEntry("downloaded");
newMail.size = mailconf->readNumEntry("size");
newMail.serverId = mailconf->readNumEntry("serverid");
newMail.fromAccountId = mailconf->readNumEntry("fromaccountid");
- }
- else
+ }
+ else
{ //mail arrived from server
-
+
newMail.serverId = mail.serverId;
newMail.size = mail.size;
newMail.downloaded = mail.downloaded;
-
+
newMail.fromAccountId = emailHandler->getAccount()->id;
mailconf->writeEntry("fromaccountid", newMail.fromAccountId);
}
-
+
//add if read or not
newMail.read = mailconf->readBoolEntry("mailread");
-
+
//check if new mail
if ( (thisMailId = mailconf->readNumEntry("internalmailid", -1)) == -1) {
thisMailId = mailIdCount;
mailIdCount++;
-
+
//set server count, so that if the user aborts, the new
//header is not reloaded
if ((currentAccount)&&(currentAccount->synchronize))
currentAccount->lastServerMailCount++;
-
+
mailconf->writeEntry("internalmailid", thisMailId);
mailconf->writeEntry("downloaded", newMail.downloaded);
mailconf->writeEntry("size", (int) newMail.size);
mailconf->writeEntry("serverid", newMail.serverId);
-
+
//addressList->addContact(newMail.fromMail, newMail.from);
}
-
+
mailconf->writeEntry("downloaded", newMail.downloaded);
-
+
QString stringMailId;
stringMailId.setNum(thisMailId);
//see if any attatchments needs to be stored
-
+
for ( ePtr=newMail.files.first(); ePtr != 0; ePtr=newMail.files.next() ) {
QString stringId;
stringId.setNum(ePtr->id);
-
+
int id = mailconf->readNumEntry("enclosureid_" + stringId);
if (id != ePtr->id) { //new entry
@@ -427,5 +427,5 @@ void EmailClient::mailArrived(const Email &mail, bool fromDisk)
mailconf->writeEntry("saved_" + stringId, ePtr->saved);
mailconf->writeEntry("installed_" + stringId, FALSE);
-
+
ePtr->name = stringMailId + "_" + stringId;
ePtr->path = getPath(TRUE);
@@ -445,16 +445,16 @@ void EmailClient::mailArrived(const Email &mail, bool fromDisk)
ePtr->name = mailconf->readEntry("filename_" + stringId);
ePtr->path = mailconf->readEntry("path_" + stringId);
- }
+ }
}
}
bool found=false;
-
- if (!fromDisk)
+
+ if (!fromDisk)
{
-
+
Email *mailPtr;
item = (EmailListItem *) inboxView->firstChild();
- while ((item != NULL)&&(!found))
+ while ((item != NULL)&&(!found))
{
mailPtr = item->getMail();
@@ -473,10 +473,10 @@ void EmailClient::mailArrived(const Email &mail, bool fromDisk)
// {
// item->setPixmap(0, Resource::loadPixmap("mailit/attach"));
-// }
+// }
/*if (!newMail.downloaded)
mailDownloadList.sizeInsert(newMail.serverId, newMail.size);*/
-
+
mailboxView->setCurrentTab(0);
-
+
}
@@ -496,10 +496,10 @@ void EmailClient::allMailArrived(int /*count*/)
selectAccountMenu->setEnabled(TRUE);
status1Label->setText("Idle");
-
+
progressBar->reset();
return;
}
//}
-
+
// all headers downloaded from server, start downloading remaining mails
previewingMail = FALSE;
@@ -507,5 +507,5 @@ void EmailClient::allMailArrived(int /*count*/)
progressBar->reset();
-
+
mailboxView->setCurrentTab(0);
}
@@ -522,5 +522,5 @@ void EmailClient::smtpError(int code, const QString & Msg)
{
QString temp;
-
+
if (code == ErrUnknownResponse) {
temp = tr("<qt>Unknown response from server</qt>");
@@ -534,5 +534,5 @@ void EmailClient::smtpError(int code, const QString & Msg)
temp = tr("<qt>socket packet error</qt>");
}
-
+
if (code != ErrCancel) {
QMessageBox::warning(qApp->activeWindow(), "Sending error", temp, "OK\n");
@@ -540,5 +540,5 @@ void EmailClient::smtpError(int code, const QString & Msg)
status2Label->setText("Aborted by user");
}
-
+
sending = FALSE;
sendMailButton->setEnabled(TRUE);
@@ -550,5 +550,5 @@ void EmailClient::popError(int code, const QString & Msg)
{
QString temp;
-
+
if (code == ErrUnknownResponse) {
temp = tr("<qt>Unknown response from server</qt>");
@@ -563,5 +563,5 @@ void EmailClient::popError(int code, const QString & Msg)
} else if (code == QSocket::ErrSocketRead) {
temp = tr("<qt>socket packet error</qt>");
- }
+ }
if (code != ErrCancel) {
@@ -571,5 +571,5 @@ void EmailClient::popError(int code, const QString & Msg)
status2Label->setText("Aborted by user");
}
-
+
receiving = FALSE;
getMailButton->setEnabled(TRUE);
@@ -581,5 +581,5 @@ void EmailClient::inboxItemSelected()
{
//killTimer(timerID);
-
+
item = (EmailListItem*) inboxView->selectedItem();
if (item != NULL) {
@@ -591,5 +591,5 @@ void EmailClient::outboxItemSelected()
{
//killTimer(timerID);
-
+
item = (EmailListItem*) outboxView->selectedItem();
if (item != NULL) {
@@ -606,10 +606,10 @@ void EmailClient::readMail()
QFile f(getPath(FALSE) + "inbox.txt");
-
+
if ( f.open(IO_ReadOnly) ) { // file opened successfully
QTextStream t( &f ); // use a text stream
s = t.read();
f.close();
-
+
start = 0;
del = "\n.\n";
@@ -618,5 +618,5 @@ void EmailClient::readMail()
if (stop == -1)
stop = s.length() - del.length();
-
+
mail.rawMail = s.mid(start, stop + del.length() - start );
start = stop + del.length();
@@ -624,5 +624,5 @@ void EmailClient::readMail()
}
}
-
+
QFile fo(getPath(FALSE) + "outbox.txt");
if ( fo.open(IO_ReadOnly) ) { // file opened successfully
@@ -630,5 +630,5 @@ void EmailClient::readMail()
s = t.read();
fo.close();
-
+
start = 0;
del = "\n.\n";
@@ -637,5 +637,5 @@ void EmailClient::readMail()
if (stop == -1)
stop = s.length() - del.length();
-
+
mail.rawMail = s.mid(start, stop + del.length() - start );
start = stop + del.length();
@@ -644,5 +644,5 @@ void EmailClient::readMail()
mail.received = false;
enqueMail(mail);
-
+
}
}
@@ -653,5 +653,5 @@ void EmailClient::saveMail(const QString &fileName, QListView *view)
QFile f(fileName);
Email *mail;
-
+
if (! f.open(IO_WriteOnly) ) {
qWarning("could not open file");
@@ -663,8 +663,8 @@ void EmailClient::saveMail(const QString &fileName, QListView *view)
mail = item->getMail();
t << mail->rawMail;
-
+
mailconf->setGroup(mail->id);
mailconf->writeEntry("mailread", mail->read);
-
+
item = (EmailListItem *) item->nextSibling();
}
@@ -677,17 +677,17 @@ QString EmailClient::getPath(bool enclosurePath)
QString basePath = "qtmail";
QString enclosures = "enclosures";
-
+
QDir dir = (QString(getenv("HOME")) + "/Applications/" + basePath);
if ( !dir.exists() )
dir.mkdir( dir.path() );
-
+
if (enclosurePath) {
dir = (QString(getenv("HOME")) + "/Applications/" + basePath + "/" + enclosures);
-
+
if ( !dir.exists() )
dir.mkdir( dir.path() );
-
+
return (dir.path() + "/");
-
+
}
return (dir.path() + "/");
@@ -697,11 +697,11 @@ void EmailClient::readSettings()
{
int y,acc_count;
-
+
mailconf->setGroup("mailitglobal");
acc_count=mailconf->readNumEntry("Accounts",0);
-
- for (int accountPos = 0;accountPos<acc_count ; accountPos++)
+
+ for (int accountPos = 0;accountPos<acc_count ; accountPos++)
{
- mailconf->setGroup("Account_"+QString::number(accountPos+1)); //Account numbers start at 1 ...
+ mailconf->setGroup("Account_"+QString::number(accountPos+1)); //Account numbers start at 1 ...
account.accountName = mailconf->readEntry("AccName","");
account.name = mailconf->readEntry("UserName","");
@@ -715,21 +715,21 @@ void EmailClient::readSettings()
account.lastServerMailCount = 0;
account.synchronize = FALSE;
-
+
account.synchronize = (mailconf->readEntry("Synchronize","No")=="Yes");
if (account.synchronize)
{
- mailconf->readNumEntry("LASTSERVERMAILCOUNT",0);
+ mailconf->readNumEntry("LASTSERVERMAILCOUNT",0);
}
-
+
accountList.append(&account);
}
-
+
mailconf->setGroup("mailitglobal");
-
- if ( (y = mailconf->readNumEntry("mailidcount", -1)) != -1)
+
+ if ( (y = mailconf->readNumEntry("mailidcount", -1)) != -1)
{
mailIdCount = y;
}
- if ( (y = mailconf->readNumEntry("accountidcount", -1)) != -1)
+ if ( (y = mailconf->readNumEntry("accountidcount", -1)) != -1)
{
accountIdCount = y;
@@ -742,13 +742,13 @@ void EmailClient::saveSettings()
MailAccount *accountPtr;
-
- if (!mailconf)
+
+ if (!mailconf)
{
qWarning("could not save settings");
return;
}
-
+
for (accountPtr = accountList.first(); accountPtr != 0;
- accountPtr = accountList.next())
+ accountPtr = accountList.next())
{
mailconf->setGroup("Account_"+QString::number(++acc_count));
@@ -761,16 +761,16 @@ void EmailClient::saveSettings()
mailconf->writeEntry("SMTPServer",accountPtr->smtpServer);
mailconf->writeEntry("AccountId",accountPtr->id);
- if (accountPtr->synchronize)
+ if (accountPtr->synchronize)
{
mailconf->writeEntry("Synchronize","Yes");
mailconf->writeEntry("HeaderLimit",accountPtr->syncLimit);
mailconf->writeEntry("LastServerMailCount",accountPtr->lastServerMailCount);
- }
- else
+ }
+ else
{
mailconf->writeEntry("Synchronize", "No");
}
}
-
+
mailconf->setGroup("mailitglobal");
mailconf->writeEntry("Accounts",acc_count);
@@ -786,5 +786,5 @@ void EmailClient::selectAccount(int id)
getNewMail();
} else {
- emit newCaption("Mailit ! No account defined");
+ emit newCaption( tr("Mailit ! No account defined") );
}
}
@@ -793,5 +793,5 @@ void EmailClient::editAccount(int id)
{
MailAccount *newAccount;
-
+
editAccountView = new EditAccount(this, "account", TRUE);
if (id == newAccountId) { //new account
@@ -802,8 +802,8 @@ void EmailClient::editAccount(int id)
editAccountView->setAccount(newAccount, FALSE);
}
-
+
editAccountView->showMaximized();
editAccountView->exec();
-
+
if (editAccountView->result() == QDialog::Accepted) {
if (id == newAccountId) {
@@ -816,5 +816,5 @@ void EmailClient::editAccount(int id)
}
}
-
+
delete editAccountView;
}
@@ -824,10 +824,10 @@ void EmailClient::deleteAccount(int id)
MailAccount *newAccount;
QString message;
-
+
newAccount = accountList.at(id);
- message = "Delete account:\n" + newAccount->accountName;
+ message = tr("Delete account:\n") + newAccount->accountName;
switch( QMessageBox::warning( this, "Mailit", message,
"Yes", "No", 0, 0, 1 ) ) {
-
+
case 0: accountList.remove(id);
updateAccounts();
@@ -841,5 +841,5 @@ void EmailClient::updateAccounts()
{
MailAccount *accountPtr;
-
+
//rebuild menus, clear all first
editAccountMenu->clear();
@@ -847,12 +847,12 @@ void EmailClient::updateAccounts()
deleteAccountMenu->clear();
- newAccountId = editAccountMenu->insertItem("New", this,
+ newAccountId = editAccountMenu->insertItem( tr("New"), this,
SLOT(editAccount(int)) );
editAccountMenu->insertSeparator();
-
+
idCount = 0;
for (accountPtr = accountList.first(); accountPtr != 0;
accountPtr = accountList.next()) {
-
+
editAccountMenu->insertItem(accountPtr->accountName,
this, SLOT(editAccount(int)), 0, idCount);
@@ -869,9 +869,9 @@ void EmailClient::deleteMail(EmailListItem *mailItem, bool &inbox)
Email *mPtr;
Enclosure *ePtr;
-
- if (inbox)
+
+ if (inbox)
{
mPtr = mailItem->getMail();
-
+
//if mail is in queue for download, remove it from
//queue if possible
@@ -880,8 +880,8 @@ void EmailClient::deleteMail(EmailListItem *mailItem, bool &inbox)
mailDownloadList.remove(mPtr->serverId, mPtr->size);
}
-
+
mailconf->setGroup(mPtr->id);
mailconf->clearGroup();
-
+
//delete any temporary attatchemnts storing
for ( ePtr=mPtr->files.first(); ePtr != 0; ePtr=mPtr->files.next() ) {
@@ -891,6 +891,6 @@ void EmailClient::deleteMail(EmailListItem *mailItem, bool &inbox)
}
inboxView->takeItem(mailItem);
- }
- else
+ }
+ else
{
outboxView->takeItem(mailItem);
@@ -906,5 +906,5 @@ void EmailClient::setMailSize(int size)
void EmailClient::setTotalSize(int /*size*/)
{
-
+
}
@@ -924,16 +924,16 @@ void EmailClient::deleteItem()
bool inbox=mailboxView->currentTab()==0;
QListView* box;
-
+
EmailListItem* eli;
// int pos;
-
+
inbox ? box=inboxView : box=outboxView;
-
+
eli=(EmailListItem*)box->selectedItem();
-
+
if (eli)
{
box->setSelected(eli->itemBelow(),true); //select the previous item
-
+
deleteMail(eli,(bool&)inbox); //remove mail entry
}
@@ -953,19 +953,19 @@ void EmailClient::inboxItemReleased()
{
//killTimer(timerID);
-
-
+
+
QPopupMenu *action = new QPopupMenu(this);
-
+
int reply=0;
-
+
action->insertItem(tr( "Reply To" ),this,SLOT(reply()));
action->insertItem( tr( "Reply All" ),this,SLOT(replyAll()));
action->insertItem( tr( "Forward" ), this,SLOT(forward()));
action->insertItem( tr( "Remove Mail" ), this,SLOT(remove()));
-
+
action->exec(QCursor::pos());
-
+
if (action) delete action;
-
+
}*/
@@ -978,19 +978,19 @@ Email* EmailClient::getCurrentMail()
return NULL;
}
-
+
void EmailClient::download(Email* mail)
{
MailAccount* acc=0;
-
+
tempMailDownloadList.clear();
tempMailDownloadList.sizeInsert(mail->serverId, mail->size);
-
+
acc=accountList.at(mail->fromAccountId-1);
if (acc)
- {
+ {
emailHandler->setAccount(*acc);
emailHandler->getMailByList(&tempMailDownloadList);
}
- else
+ else
QMessageBox::warning(qApp->activeWindow(),
tr("No account associated"), tr("There is no active account \nassociated to this mail\n it can not be downloaded"), "Abort\n");
@@ -1003,7 +1003,7 @@ void EmailClient::receive(const QCString& /*msg*/, const QByteArray& /*data*/)
//QDialog qd(qApp->activeWindow(),"Getting mail",true);
QVBoxLayout *vbProg = new QVBoxLayout( &qd );
-
+
initStatusBar(&qd);
-
+
if (statusBar==0)
{
@@ -1019,21 +1019,21 @@ void EmailClient::receive(const QCString& /*msg*/, const QByteArray& /*data*/)
}
else if (msg=="compose()")
- {
+ {
QDialog qd(qApp->activeWindow(),"Getting mail",true);
-
+
WriteMail wm(&qd,"write new mail");
QVBoxLayout vbProg( &qd );
-
+
wm.showMaximized();
vbProg.addWidget(&wm);
-
+
qd.showMaximized();
-
+
emit composeRequested();
qd.exec();
-
+
QMessageBox::warning(qApp->activeWindow(),tr("Info"), tr("Info"), "OK\n");
}
-
+
else if (msg=="dialog()")
{