From 4624a73cd100f860371fb01facea442737e9336e Mon Sep 17 00:00:00 2001 From: groucho Date: Mon, 14 Apr 2003 08:22:55 +0000 Subject: - Buttonlayout changed in attach dialog - Removed file access for address list (reduces size) - Added header size sping box for accounts - mailit shows an icon in the message list if attachments are present - Added translations in pro file - Removed resource.* references in header files, uses qpe/resource.h instead --- (limited to 'noncore/net/mailit/emailclient.cpp') diff --git a/noncore/net/mailit/emailclient.cpp b/noncore/net/mailit/emailclient.cpp index 2943986..6612541 100644 --- a/noncore/net/mailit/emailclient.cpp +++ b/noncore/net/mailit/emailclient.cpp @@ -23,7 +23,7 @@ #include #include #include -#include "resource.h" +#include #include "emailclient.h" QCollection::Item AccountList::newItem(QCollection::Item d) @@ -41,7 +41,7 @@ EmailClient::EmailClient( QWidget* parent, const char* name, WFlags fl ) : QMainWindow( parent, name, fl ) { emailHandler = new EmailHandler(); - addressList = new AddressList( getPath(FALSE) + "mail_adr"); + addressList = new AddressList(); sending = FALSE; receiving = FALSE; @@ -671,6 +671,12 @@ void EmailClient::readSettings() } } } + + if ( (pos = p->find("SYNCLIMIT",':', accountPos, TRUE)) != -1) { + account.syncLimit = p->getString(& ++pos, 'z', TRUE).toInt(); + } + + accountList.append(&account); } delete p; @@ -716,6 +722,8 @@ void EmailClient::saveSettings() } else { t << "Synchronize: No\n"; } + t << "SyncLimit: "; + t << accountPtr->syncLimit << "\n"; t << "accountEnd;\n"; } f.close(); -- cgit v0.9.0.2