summaryrefslogtreecommitdiff
path: root/noncore/net/mail
authorar <ar>2004-05-31 13:04:55 (UTC)
committer ar <ar>2004-05-31 13:04:55 (UTC)
commit27b09fe4f930b96e82cea9fb0eb1a9b87f7ec062 (patch) (side-by-side diff)
tree5b850ee6ad8b8a48b6c49f4a6ce10e75caf234e5 /noncore/net/mail
parent5bd7c2eee656e8f30635921f15770bd4a43da9e6 (diff)
downloadopie-27b09fe4f930b96e82cea9fb0eb1a9b87f7ec062.zip
opie-27b09fe4f930b96e82cea9fb0eb1a9b87f7ec062.tar.gz
opie-27b09fe4f930b96e82cea9fb0eb1a9b87f7ec062.tar.bz2
- convert qDebug to odebug
Diffstat (limited to 'noncore/net/mail') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/libmailwrapper/settings.h42
1 files changed, 23 insertions, 19 deletions
diff --git a/noncore/net/mail/libmailwrapper/settings.h b/noncore/net/mail/libmailwrapper/settings.h
index 27e2823..bf27b97 100644
--- a/noncore/net/mail/libmailwrapper/settings.h
+++ b/noncore/net/mail/libmailwrapper/settings.h
@@ -3,12 +3,16 @@
#include "maildefines.h"
+/* OPIE */
+#include <opie2/odebug.h>
+
+/* QT */
#include <qobject.h>
#include <qlist.h>
-class Account
+class Account
{
-
+
public:
Account();
virtual ~Account() {}
@@ -17,33 +21,33 @@ public:
void setAccountName( QString name ) { accountName = name; }
const QString&getAccountName()const{ return accountName; }
MAILLIB::ATYPE getType()const{ return type; }
-
+
void setServer(const QString&str){ server = str; }
const QString&getServer()const{ return server; }
-
+
void setPort(const QString&str) { port = str; }
const QString&getPort()const{ return port; }
-
+
void setUser(const QString&str){ user = str; }
const QString&getUser()const{ return user; }
-
+
void setPassword(const QString&str) { password = str; }
const QString&getPassword()const { return password; }
-
+
void setSSL( bool b ) { ssl = b; }
bool getSSL() { return ssl; }
-
+
void setConnectionType( int x ) { connectionType = x; }
int ConnectionType() { return connectionType; }
-
+
void setOffline(bool b) {offline = b;}
bool getOffline()const{return offline;}
virtual QString getFileName() { return accountName; }
- virtual void read() { qDebug( "base reading..." ); }
- virtual void save() { qDebug( "base saving..." ); }
-
+ virtual void read() { odebug << "base reading..." << oendl; }
+ virtual void save() { odebug << "base saving..." << oendl; }
+
protected:
QString accountName, server, port, user, password;
bool ssl;
@@ -54,7 +58,7 @@ protected:
class IMAPaccount : public Account
{
-
+
public:
IMAPaccount();
IMAPaccount( QString filename );
@@ -75,7 +79,7 @@ private:
class POP3account : public Account
{
-
+
public:
POP3account();
POP3account( QString filename );
@@ -88,12 +92,12 @@ public:
private:
QString file;
-
+
};
class SMTPaccount : public Account
{
-
+
public:
SMTPaccount();
SMTPaccount( QString filename );
@@ -115,7 +119,7 @@ private:
class NNTPaccount : public Account
{
-
+
public:
NNTPaccount();
NNTPaccount( QString filename );
@@ -130,7 +134,7 @@ public:
bool getLogin() { return login; }
void setGroups( QStringList list ) { subscribedGroups = list; }
- QStringList getGroups() { return subscribedGroups; }
+ QStringList getGroups() { return subscribedGroups; }
private:
QString file;
@@ -155,7 +159,7 @@ public:
private:
void updateAccounts();
QList<Account> accounts;
-
+
};
#endif