Diffstat (limited to 'kmicromail/libmailwrapper/settings.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kmicromail/libmailwrapper/settings.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kmicromail/libmailwrapper/settings.cpp b/kmicromail/libmailwrapper/settings.cpp index bdb2a25..b0a539e 100644 --- a/kmicromail/libmailwrapper/settings.cpp +++ b/kmicromail/libmailwrapper/settings.cpp @@ -25,13 +25,13 @@ Settings::Settings() } void Settings::checkDirectory() { qDebug("Settings::checkDirectory() "); return; - locateLocal("data", "kmicromail" ); + locateLocal("data", "kopiemail" ); /* if ( !QDir( (QString) getenv( "HOME" ) + "/Applications/opiemail/" ).exists() ) { system( "mkdir -p $HOME/Applications/opiemail" ); qDebug("$HOME/Applications/opiemail created "); } */ @@ -53,13 +53,13 @@ void Settings::delAccount( Account *account ) account->remove(); } void Settings::updateAccounts() { accounts.clear(); - QDir dir( locateLocal("data", "kmicromail" ) ); + QDir dir( locateLocal("data", "kopiemail" ) ); QStringList::Iterator it; QStringList imap = dir.entryList( "imap-*" ); for ( it = imap.begin(); it != imap.end(); it++ ) { IMAPaccount *account = new IMAPaccount( (*it).replace(0, 5, "") ); accounts.append( account ); @@ -145,13 +145,13 @@ IMAPaccount::IMAPaccount( QString filename ) QString IMAPaccount::getUniqueFileName() { int num = 0; QString unique; - QDir dir( locateLocal("data", "kmicromail" ) ); + QDir dir( locateLocal("data", "kopiemail" ) ); QStringList imap = dir.entryList( "imap-*" ); do { unique.setNum( num++ ); } while ( imap.contains( "imap-" + unique ) > 0 ); @@ -200,13 +200,13 @@ void IMAPaccount::save() delete conf; } QString IMAPaccount::getFileName() { - return locateLocal("data", "kmicromail" ) +"/imap-" + file; + return locateLocal("data", "kopiemail" ) +"/imap-" + file; } POP3account::POP3account() : Account() { file = POP3account::getUniqueFileName(); @@ -230,13 +230,13 @@ POP3account::POP3account( QString filename ) QString POP3account::getUniqueFileName() { int num = 0; QString unique; - QDir dir( locateLocal("data", "kmicromail" ) ); + QDir dir( locateLocal("data", "kopiemail" ) ); QStringList imap = dir.entryList( "pop3-*" ); do { unique.setNum( num++ ); } while ( imap.contains( "pop3-" + unique ) > 0 ); @@ -276,13 +276,13 @@ void POP3account::save() delete conf; } QString POP3account::getFileName() { - return locateLocal("data", "kmicromail" ) +"/pop3-" + file; + return locateLocal("data", "kopiemail" ) +"/pop3-" + file; } SMTPaccount::SMTPaccount() : Account() { file = SMTPaccount::getUniqueFileName(); @@ -311,13 +311,13 @@ SMTPaccount::SMTPaccount( QString filename ) QString SMTPaccount::getUniqueFileName() { int num = 0; QString unique; - QDir dir( locateLocal("data", "kmicromail" ) ); + QDir dir( locateLocal("data", "kopiemail" ) ); QStringList imap = dir.entryList( "smtp-*" ); do { unique.setNum( num++ ); } while ( imap.contains( "smtp-" + unique ) > 0 ); @@ -357,13 +357,13 @@ void SMTPaccount::save() delete conf; } QString SMTPaccount::getFileName() { - return locateLocal("data", "kmicromail" ) +"/smtp-" + file; + return locateLocal("data", "kopiemail" ) +"/smtp-" + file; } NNTPaccount::NNTPaccount() : Account() { file = NNTPaccount::getUniqueFileName(); @@ -387,13 +387,13 @@ NNTPaccount::NNTPaccount( QString filename ) QString NNTPaccount::getUniqueFileName() { int num = 0; QString unique; - QDir dir( locateLocal("data", "kmicromail" ) ); + QDir dir( locateLocal("data", "kopiemail" ) ); QStringList imap = dir.entryList( "nntp-*" ); do { unique.setNum( num++ ); } while ( imap.contains( "nntp-" + unique ) > 0 ); @@ -433,8 +433,8 @@ void NNTPaccount::save() delete conf; } QString NNTPaccount::getFileName() { - return locateLocal("data", "kmicromail" ) +"/nntp-" + file; + return locateLocal("data", "kopiemail" ) +"/nntp-" + file; } |