From eddc5184f5be6a067b077d18e240a1fe982bbcf4 Mon Sep 17 00:00:00 2001 From: alwin Date: Mon, 08 Mar 2004 01:00:18 +0000 Subject: type of mail account will be defined by a enum not with string - comparing strings all the time makes no sense. --- (limited to 'noncore/net/mail/libmailwrapper/settings.h') diff --git a/noncore/net/mail/libmailwrapper/settings.h b/noncore/net/mail/libmailwrapper/settings.h index 1feedbf..27e2823 100644 --- a/noncore/net/mail/libmailwrapper/settings.h +++ b/noncore/net/mail/libmailwrapper/settings.h @@ -1,6 +1,8 @@ #ifndef SETTINGS_H #define SETTINGS_H +#include "maildefines.h" + #include #include @@ -14,7 +16,7 @@ public: void remove(); void setAccountName( QString name ) { accountName = name; } const QString&getAccountName()const{ return accountName; } - const QString&getType()const{ return type; } + MAILLIB::ATYPE getType()const{ return type; } void setServer(const QString&str){ server = str; } const QString&getServer()const{ return server; } @@ -41,12 +43,13 @@ public: virtual QString getFileName() { return accountName; } virtual void read() { qDebug( "base reading..." ); } virtual void save() { qDebug( "base saving..." ); } - + protected: - QString accountName, type, server, port, user, password; + QString accountName, server, port, user, password; bool ssl; int connectionType; bool offline; + MAILLIB::ATYPE type; }; class IMAPaccount : public Account -- cgit v0.9.0.2